Skip to content

fix: contact action bug and add crypto action button#14

Merged
sirily11 merged 2 commits intomainfrom
bug
Mar 14, 2026
Merged

fix: contact action bug and add crypto action button#14
sirily11 merged 2 commits intomainfrom
bug

Conversation

@sirily11
Copy link
Copy Markdown
Contributor

  • Fix auto close sheet when click import button in add contact sheet
  • Add crypto wallet action

Copilot AI review requested due to automatic review settings March 14, 2026 15:13
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
rxnote Ready Ready Preview, Comment Mar 14, 2026 3:13pm

Request Review

@sirily11 sirily11 enabled auto-merge (squash) March 14, 2026 15:13
@autopilot-project-manager autopilot-project-manager bot added bug Something isn't working enhancement New feature or request labels Mar 14, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes contact picker dismissing parent sheets by presenting from root window, and adds a new crypto wallet action type.

Changes:

  • Refactored CNContactPickerViewController presentation to avoid dismissing parent sheets
  • Added CryptoWalletActionSchema and corresponding UI (form, button, network detection)
  • Changed title TextField to single-line with .submitLabel(.done)

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
backend/lib/schemas/openapi-overrides.json Added crypto-wallet to action discriminator
backend/lib/schemas/notes.ts Added CryptoWalletActionSchema zod schema
TypeAliases.swift Added CryptoWalletAction typealias
accessibility.swift Added UI test accessibility helpers for crypto wallet
RxNoteNoteCrudTests.swift Added UI tests for contact import and crypto wallet actions
WiFiActionButton.swift Added timeout logic for WiFi connection and WiFiConnectionError enum
TextNoteEditorContent.swift Single-line title field, crypto wallet action label/button
NoteEditorView.swift Switched to .contactPicker modifier
CryptoWalletActionButton.swift New crypto wallet button with copy/deep-link functionality
ContactPickerViewControllerRepresentable.swift Refactored to present picker from root window
ActionEditorView.swift Added crypto wallet form, validation, save/load logic
project.pbxproj Added new file reference

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

if (32...44).contains(trimmed.count),
trimmed.allSatisfy({ $0.isLetter || $0.isNumber }),
!trimmed.contains("0"), !trimmed.contains("O"),
!trimmed.contains("I"), !trimmed.contains("l") {

// Bitcoin Cash: starts with bitcoincash: or q/p
if trimmed.lowercased().hasPrefix("bitcoincash:") ||
(trimmed.hasPrefix("q") || trimmed.hasPrefix("p")) && trimmed.count == 42 {

private func autoDetectNetwork(from address: String) {
let detected = WalletNetwork.detect(from: address)
if detected != .unknown && cryptoWalletNetwork.isEmpty {
Comment on lines +62 to 64
private struct AssociatedKeys {
static var coordinator = "contactPickerCoordinator"
}
@sirily11 sirily11 merged commit c1d1254 into main Mar 14, 2026
8 checks passed
@sirily11 sirily11 deleted the bug branch March 14, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants