Repository navigation
Conversation
The phone's top-bar graph selector only switched graphs: it had no Create
New Graph, and its edit and delete buttons appeared only on hover, which
touch screens never send. A person on a phone could not make, rename or
delete a graph at all (journeys made theirs through the API).
- The phone selector now asks Workspace, which owns the graph dialogs, to
create, edit or delete through window events (lib/graphRequests.ts),
like its New work item button already does.
- On touch screens (hover: none) the edit and delete buttons always show,
with larger tap targets and accessible names ("Edit Ideas").
- enterWorkspace creates the journey's graph through the selector on every
device, so phone journeys use the real dialog instead of the API.
- UI Fit gains graph-list and graph-create screens on every device.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🧪 Comprehensive Test Suite
Full-stack smoke gate runs in the CI workflow. |
Member
Author
|
Independent review (babf3f8)
Checked, no problem found
Findings
🤖 Generated with Claude Code |
…on a tap Review of #288: - Create, Edit and Delete graph dialogs render in document.body. Inside the layout's z-20 content wrapper the phone top bar and bottom nav (z-30) drew over them and took their taps (the trap CreateWorkItemModal hit in #86). - Edit and Delete graph dialogs get role=dialog, a name and a focus trap (useModalA11y), like Create. - A locked button (another user's Welcome) explains itself on a tap too, fading after 2.5 s, on its left when the right edge is near, and to screen readers (aria-describedby). - Touch action buttons are 44 x 44 px. - UI Fit gains graph-edit and graph-delete screens on every device. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Thanks. All four findings are addressed in 42d7d0c:
GraphSelector and graphRequests tests pass 9/9. 🤖 Generated with Claude Code |
🧪 Comprehensive Test Suite
Full-stack smoke gate runs in the CI workflow. |
The Edit and Delete graph dialogs now use useModalA11y, and the unit tests that render DeleteGraphModal (jsdom) have neither API. Without them the dialog is still positioned on window resize and treated as not compact, which also covers older browsers. Web unit tests: 692/692. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
🧪 Comprehensive Test Suite
Full-stack smoke gate runs in the CI workflow. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
On a phone you couldn't create, rename or delete a graph. The phone's top-bar graph selector (
graph-selector-mobile) only switched between graphs:The journeys worked around this by creating their phone graph through the API (noted in #281).
Changes
Workspace, which owns the graph dialogs, to create, edit or delete. It does this with window events (lib/graphRequests.ts), the same way its "New work item" button already does. The phone top bar only renders on the workspace route, so a request always has a listener.@media (hover: none)):enterWorkspacecreates the journey's graph through the visible selector on every device, so phone journeys use the real dialog. This replaces fix: relationship editor follows the saved relationship through type changes and flips (#262) #281's API workaround.graph-listandgraph-createscreens on every device.Tests
graphRequests.test.ts: requests reach the workspace, stop once it unmounts, and an edit or delete with no graph is ignored.GraphSelector.test.tsx: the phone selector's Edit, Delete and Create reach the workspace with the picked graph.tscis clean, and the lint counts match dev's.[@media(hover:none)]variants.🤖 Generated with Claude Code