Files
headquarter/openspec/changes/mobile-edit-default-bottom-actions/change.md
T
Developer 23fc0a6b82 feat: mobile edit-as-default with sticky save/delete actions
- Update MobileEditView to render Save and optional Delete in a
  sticky bottom action bar; header now shows Cancel + title only.
- Make ConfigProfilesMobileView open edit view on profile tap.
- Make ToolWorkshopMobileView open edit view on tool type tap.
- Wire delete into MobileEditView for existing profiles and tool
  types.
- Stay on edit view after saving an existing item; create flow
  returns to list as before.
- Update ToolWorkshopPage cancel to return to list.
- Add mobile-edit-actions and mobile-edit-delete CSS.

Quality gates: npm run typecheck, npm run lint, npm test -- --run (87 passed)

Refs: openspec/changes/mobile-edit-default-bottom-actions
2026-06-13 22:29:15 +00:00

38 lines
1.6 KiB
Markdown

# Mobile Edit-as-Default with Sticky Bottom Actions
## Summary
On mobile, tapping a config profile or tool type now opens the edit view directly instead of the read-only detail view. Save and Delete actions are anchored to a sticky bottom action bar so they are always reachable while scrolling long forms.
## Motivation
The previous mobile flow required an extra tap (list → detail → edit) for every change. Power users on phones primarily want to edit, so the default view should be edit. The Save and Delete buttons were also at the top of long forms, forcing users to scroll back up to commit changes.
## Scope
- Config Profiles mobile view (`ConfigProfilesMobileView`).
- Tool Workshop mobile view (`ToolWorkshopMobileView`).
- Shared `MobileEditView` component.
- Mobile edit-view CSS (`utilities.css`).
## Acceptance Criteria
- [x] Tapping a config profile opens the edit form.
- [x] Tapping a tool type opens the edit form.
- [x] Create flows still open the edit form and return to the list after save.
- [x] Edit flows stay on the edit form after a successful save and show a success message.
- [x] Delete is available in the edit view for existing items.
- [x] Save and Delete buttons are sticky at the bottom of the viewport on mobile.
- [x] Detail and preview views remain reachable from edit where already wired.
## Non-Goals
- Changing desktop behavior or layout.
- Removing detail/preview views entirely.
- Altering the user profile page flow (it already uses `MobileEditView` and benefits from the sticky bar automatically).
## Related
- `openspec/changes/mobile-config-profiles-ui`
- `openspec/changes/mobile-tool-profile-ui`