-
Notifications
You must be signed in to change notification settings - Fork 0
Search: add editable pins menu #1631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
8dda7b5
feat(search): add editable pins menu
BigSimmo a9b2aae
Merge remote-tracking branch 'origin/main' into codex/editable-search…
BigSimmo 725bf67
Merge remote-tracking branch 'origin/main' into codex/editable-search…
cursoragent da3e1b7
Fix editable search pins menu regressions
cursoragent fbac540
Fix type scale token usage in pin menus
cursoragent 79b8f5f
Use design tokens in search pins menu
cursoragent cba943e
Gate pins universal search by command availability
cursoragent a52d71c
Merge remote-tracking branch 'origin/main' into codex/editable-search…
cursoragent 70fd5c0
Restore document drawer focus fallback
cursoragent e3998ab
Resolve pins menu review regressions
cursoragent 456d7a1
Cover pins sheet focus retarget
cursoragent 0ded37e
Stabilize pins sheet focus test
cursoragent 9de5586
Keep pins sheet mounted for focus restore
cursoragent ab66f36
Satisfy pins focus lint guards
cursoragent fffc6de
Fix pins menu focus callback wiring
cursoragent a8e92cc
Fix pins menu typecheck regression
cursoragent 30262ca
Refresh design sync sheet metadata
cursoragent 95032bc
Resolve remaining pins review feedback
cursoragent 1cd2254
Update search-pins-menu.tsx
BigSimmo df05249
fix(search): close remaining pins menu review defects
cursoragent 33d2ef2
Merge remote pins branch updates
cursoragent 193afe6
fix(search): clear merge conflict markers in pins sync
cursoragent 1b1fd89
Use sheet autofocus for first search pin
cursoragent 7f1ac06
docs(ledger): record pins menu review follow-up
cursoragent e3d57a2
Merge remote-tracking branch 'origin/codex/editable-search-pins' into…
cursoragent c59ec43
Merge remote-tracking branch 'origin/codex/editable-search-pins' into…
cursoragent 3c3a57e
fix(search): avoid setState-in-effect for command displayability
cursoragent d3f9a57
Fix command dropdown displayability state
cursoragent a0e2801
fix(search): resolve displayability merge and clear eager override
cursoragent 52112ef
docs(ledger): supersede pins review follow-up at tip
cursoragent 6d8a6af
Merge remote-tracking branch 'origin/main' into codex/editable-search…
cursoragent c464e99
Fix search pins review follow-ups
cursoragent fd445e8
fix(search): address new pins review findings
cursoragent 4c8fb09
fix(search): merge pins review follow-ups and stabilize tests
cursoragent c534fa2
Stabilize search pins fallback tests
cursoragent 88c6472
Merge remote-tracking branch 'origin/codex/editable-search-pins' into…
cursoragent cf8cb41
Fix dynamic sheet return focus
cursoragent 67f2c71
Merge origin/main into editable search pins
cursoragent 3022fcc
docs(ledger): supersede pins review record with decisive gate lines
cursoragent 867226a
Fix sheet return focus lint regression
cursoragent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
docs/superpowers/plans/2026-08-05-editable-pin-menu-mockups.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Search + Editable Pins Menu — Implementation Record | ||
|
|
||
| ## Goal | ||
|
|
||
| Perfect `/mockups/search-lens-menu` around editable app-destination pins while preserving the original visual direction. | ||
|
|
||
| ## Completed | ||
|
|
||
| - [x] Preserve the light attached fold-out and paired desktop/phone frames. | ||
| - [x] Replace editable search lenses with editable app-destination pins. | ||
| - [x] Add `Your pins` and a separate `Search in` section. | ||
| - [x] Keep Documents, global, and alternate-area search choices explicit. | ||
| - [x] Retain overlapping phone icon constellations with accessible labels. | ||
| - [x] Add a functional local `New pin` flow with editable name and destinations. | ||
| - [x] Add a functional Ward essentials edit flow. | ||
| - [x] Adapt the command deck to distinguish pins from search commands. | ||
| - [x] Adapt the inline builder into an inline pin bar. | ||
| - [x] Add focused DOM interaction coverage. | ||
| - [x] Verify 18 width/direction combinations, dialog containment, keyboard closing and focus restoration, reduced motion, forced colors, and console output. | ||
|
|
||
| ## Remaining production work | ||
|
|
||
| - [ ] Decide persistence, synchronization, permissions, and pin limits. | ||
| - [ ] Map mockup destinations to canonical production routes. | ||
| - [ ] Complete physical iPhone Safari and installed-PWA acceptance. | ||
| - [ ] Conduct clinical governance review before production search integration. |
63 changes: 63 additions & 0 deletions
63
docs/superpowers/specs/2026-08-05-editable-pin-menu-mockups-design.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| # Search + Editable Pins Menu — Final Mockup Direction | ||
|
|
||
| ## Preferred artifact | ||
|
|
||
| Route: `/mockups/search-lens-menu` | ||
|
|
||
| The preferred visual direction is the original light clinical search-menu study, refined around the corrected pin model. It preserves its attached fold-out, deliberate page scrim, compact overlapping icons, and paired desktop/phone treatments. | ||
|
|
||
| ## Product model | ||
|
|
||
| A **pin** is a user-named collection of useful destinations from anywhere in the app. It is not a search scope, filter, or saved query. | ||
|
|
||
| Example pins: | ||
|
|
||
| - Ward essentials: Documents, Medications, Forms. | ||
| - My quick tools: Clinical tools, Services, Differentials. | ||
|
|
||
| Users can create a pin, edit its name, add or remove destinations, and recognise its contents through the first three overlapping destination icons. | ||
|
|
||
| Search remains explicit and separate: | ||
|
|
||
| - Search Documents — current mode. | ||
| - Search all clinical areas — global search. | ||
| - Choose another search area — explicit alternate scope. | ||
|
|
||
| Opening or selecting a pin never silently changes the composer’s search scope. | ||
|
|
||
| ## Direction 1 — Attached pin fold-out | ||
|
|
||
| Recommended. | ||
|
|
||
| - Opens from the composer `+` button. | ||
| - Shows `Your pins` first. | ||
| - Shows `Search in` as a separate section below. | ||
| - Includes useful actions without confusing them with either pins or search scope. | ||
| - Desktop/tablet use an attached panel with a subdued scrim. | ||
| - Phone uses a contained bottom sheet above the visible composer. | ||
|
|
||
| ## Direction 2 — Pins and search command deck | ||
|
|
||
| - Presents pins and search commands in one power-user workspace. | ||
| - The navigation rail clearly labels both object types. | ||
| - Selecting a pin previews its app destinations. | ||
| - Selecting a search command runs the current query in that area. | ||
|
|
||
| ## Direction 3 — Inline pin bar | ||
|
|
||
| - Pin destinations become removable chips directly above the composer. | ||
| - The Documents search scope remains visible and stable beneath the pin. | ||
| - Editing uses a compact destination picker on desktop and phone. | ||
|
|
||
| ## Accessibility and responsive rules | ||
|
|
||
| - Minimum 48 px primary touch targets. | ||
| - Icon constellations expose full destination labels to assistive technology. | ||
| - Escape closes panels and restores focus to the composer trigger. | ||
| - Panels own internal scrolling and remain within device frames. | ||
| - Reduced-motion and forced-colors modes remain usable. | ||
| - Validate 320, 390, 639, 768, 1440, and 1920 px. | ||
|
|
||
| ## Boundaries | ||
|
|
||
| This remains a local design-scratch artifact. It does not persist pins, call APIs or providers, alter production navigation/search, change retrieval ranking, or deploy anything. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import { PinnedPlusMenuMockupsPage } from "@/components/pinned-plus-menu-mockups"; | ||
|
|
||
| export default function Page() { | ||
| return <PinnedPlusMenuMockupsPage />; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| import { SearchLensMenuMockupsPage } from "@/components/search-lens-menu-mockups"; | ||
|
|
||
| export default function SearchLensMenuMockupRoute() { | ||
| return <SearchLensMenuMockupsPage />; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.