Skip to content

Remove the vault unlock actions and hide the lock action for disabled spaces - #3404

Merged
AlexAndBear merged 1 commit into
mainfrom
vault-actions-on-disabled-space
Sep 18, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
vault-actions-on-disabled-space

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

Description

Entering a locked vault already routes to the scheme's unlock UI via the router guard (setupVaultUnlockGuard), so the separate Unlock space / Unlock vault context actions only duplicated that path - They are removed entirely: unlocking now happens by navigating into the space or folder.

What remains is the lock action, which is now hidden for disabled spaces. A disabled space cannot be entered, so offering to lock its vault led nowhere.

Related Issue

No issue was filed for this.

  • Fixes n/a

How Has This Been Tested?

  • test environment: unit tests via pnpm test:unit --run packages/web-app-files
  • test case 1: the unlock actions and their extension registrations are gone; their tests were removed with them
  • test case 2: the lock action is hidden for a disabled vault space, and still visible for an enabled, unlocked one
  • test case 3: the lock actions stay hidden for an empty selection and for a multi-selection, without throwing
  • test case 4: the existing lock cases (no vault, vault folders only, redirect out of a freshly locked vault, sibling-prefix guard) are unchanged
  • test case 5: pnpm check:types, pnpm lint and pnpm format:check pass; 760 tests in web-app-files pass

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear AlexAndBear self-assigned this Sep 18, 2026
@github-project-automation github-project-automation Bot moved this to Qualification in OpenCloud Team Board Sep 18, 2026
@AlexAndBear AlexAndBear moved this from Qualification to In Progress in OpenCloud Team Board Sep 18, 2026
@AlexAndBear
AlexAndBear force-pushed the vault-actions-on-disabled-space branch from fb93b99 to a913018 Compare September 18, 2026 06:31
@AlexAndBear AlexAndBear changed the title Hide vault lock and unlock actions for disabled spaces Remove the vault unlock actions and hide the lock action for disabled spaces Sep 18, 2026
Entering a locked vault already routes to the scheme's unlock UI through
the router guard, so the separate "Unlock space" and "Unlock vault"
context actions only duplicated that path and had to be kept in sync with
it. Both are gone; unlocking happens by navigating in.

What remains is the lock action, which is now hidden for disabled spaces:
a disabled space cannot be entered, so offering to lock its vault led
nowhere. The guard runs after the selection check, otherwise an empty
selection would dereference an undefined space.
@AlexAndBear
AlexAndBear force-pushed the vault-actions-on-disabled-space branch from a913018 to ec98451 Compare September 18, 2026 06:33

@kulmann kulmann left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice!
One additional thing that contextually fits in here, but I can also open a separate issue: I noticed that an unlocked space doesn't get auto-locked when disabling the space. Want me to open another issue for it?

@AlexAndBear

Copy link
Copy Markdown
Member Author

Nice! One additional thing that contextually fits in here, but I can also open a separate issue: I noticed that an unlocked space doesn't get auto-locked when disabling the space. Want me to open another issue for it?

yes please

@AlexAndBear
AlexAndBear merged commit d001351 into main Sep 18, 2026
31 checks passed
@AlexAndBear
AlexAndBear deleted the vault-actions-on-disabled-space branch September 18, 2026 07:44
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenCloud Team Board Sep 18, 2026
@openclouders openclouders mentioned this pull request Sep 18, 2026
1 task
@kulmann

kulmann commented Sep 18, 2026

Copy link
Copy Markdown
Member

yes please

#3407

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants