Skip to content

feat: Replace element save buttons with SaveButton and enforce permissions#470

Merged
paulgessinger merged 1 commit intomainfrom
fix/element-edit-perms
Feb 16, 2026
Merged

feat: Replace element save buttons with SaveButton and enforce permissions#470
paulgessinger merged 1 commit intomainfrom
fix/element-edit-perms

Conversation

@paulgessinger
Copy link
Owner

@paulgessinger paulgessinger commented Feb 15, 2026

Replace explicit Button calls with the reusable SaveButton component in
StoragePathEditView and DocumentTypeEditView. This centralizes the save
logic, improves consistency, and reduces duplication.

Add .disabled(!model.permissions.test(.change)) to the manager edit view
to prevent UI interaction when the user lacks change permissions.

Include a preview wrapper that uses NavigationStack and sets
navigationTitle, improving preview ergonomics.

Log an informational message when a disabled edit action is attempted,
helping developers identify unintended UI states.

Fixes #466

@paulgessinger paulgessinger added this to the v1.10 milestone Feb 15, 2026
@paulgessinger paulgessinger changed the title feat: replace manual save buttons with SaveButton and enforce permissions feat: Replace element save buttons with SaveButton and enforce permissions Feb 15, 2026
…ions

Replace explicit `Button` calls with the reusable `SaveButton` component in
`StoragePathEditView` and `DocumentTypeEditView`. This centralizes the save
logic, improves consistency, and reduces duplication.

Add `.disabled(!model.permissions.test(.change))` to the manager edit view
to prevent UI interaction when the user lacks change permissions.

Include a preview wrapper that uses `NavigationStack` and sets
`navigationTitle`, improving preview ergonomics.

Log an informational message when a disabled edit action is attempted,
helping developers identify unintended UI states.
@paulgessinger paulgessinger enabled auto-merge (squash) February 16, 2026 07:47
@paulgessinger paulgessinger merged commit 43bb66d into main Feb 16, 2026
8 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.

Storage Path editable without permissions

1 participant