Skip to content

Use the server search field on iPhone, iPad, and Mac - #7

Merged
pirate merged 4 commits into
mainfrom
search/shared-server-field
Nov 23, 2026
Merged

pirate merged 4 commits into
mainfrom
search/shared-server-field

Conversation

@pirate

@pirate pirate commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Tapping Search archive in the sidebar opens the server's Snapshot search field with the keyboard focused. Opening Search from a filtered Snapshot list or grid keeps the same WebKit page, draft, and active filters. The server provides operator badges, scoped suggestions, and streamed results. The plain field on older servers still receives focus. ArchiveBox server change

Shortcuts and Spotlight send the query through the existing snapshots REST endpoint. The server can interpret operators such as deep: because the client no longer forces metadata-only search.

On an iPhone 17 Pro simulator running iOS 26.5, submitting tags:"solar-research" AND title:"Solar Panel Field Guide" returned one matching snapshot from four. The screenshots show the native field on main (683bf5b), then the editor and its result on this branch (042896a).

Sidebar field on main Operator field with keyboard Submitted query
Plain iPhone sidebar search field with its keyboard open Two query operators and title suggestions above the iPhone keyboard Solar Panel Field Guide returned as the single matching snapshot

Summary by cubic

The sidebar's native search field is replaced with a button that opens and focuses the server's own Snapshot search editor on iPhone, iPad, Mac, and web.

  • The server supplies autocomplete, operator suggestions, badge editing, and streamed results; older servers with the plain Django input still receive focus.
  • Returning to search when the Snapshots list is displayed reuses that page's authenticated session, draft, and current folder, tag, domain, or filter selections.
  • Removed the hardcoded search_mode=meta from the REST search path and client API so the connected server interprets operators like deep:.
  • Each focus request is consumed once the page is ready, so a later tap can retry if the field was unavailable.

Written for commit 042896a. Summary will update on new commits.

View guided diff Turn on auto-fix

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All reported issues were addressed across 5 files

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread UITests/ArchiveBoxUITests.swift Resolved
Comment thread App/MainView.swift Resolved
@pirate
pirate force-pushed the search/shared-server-field branch from 1b60b2c to 1906e36 Compare November 23, 2026 05:50

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All reported issues were addressed across 2 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread App/MainView.swift Resolved
Comment thread App/MainView.swift Resolved
Comment thread App/MainView.swift Resolved
Comment thread UITests/ArchiveBoxUITests.swift Resolved
Comment thread UITests/ArchiveBoxUITests.swift Resolved
@pirate
pirate merged commit e4c5595 into main Nov 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant