Skip to content

QuickAccess: open the resource edit form in a separate window - #301

Open
bartkummel wants to merge 1 commit into
passbolt:masterfrom
bartkummel:feature/14934_QuickAccess-edit-resource
Open

bartkummel wants to merge 1 commit into
passbolt:masterfrom
bartkummel:feature/14934_QuickAccess-edit-resource

Conversation

@bartkummel

Copy link
Copy Markdown

QuickAccess: open the resource edit form in a separate window

This pull request is a (multiple allowed):

  • bug fix
  • change of existing behavior
  • new feature

Checklist

  • User stories are present (given, when, then format)
  • Unit tests are passing
  • Selenium tests are passing (not run)
  • Check style is not triggering new error or warning

Depends on the styleguide pull request: passbolt/passbolt_styleguide#63. This needs a styleguide release containing it before it can be merged.

Related community requests: 14934, 7589, 14824, 14869 / PB-55116.

User stories

  • Given I edit a resource in the QuickAccess toolbar popup, when I click on the "separate window" button, then the edit form opens in a separate window that stays open while I change the password on the website.
  • Given the edit form is in a separate window, when I use "use on this page" after saving, then it acts on the website tab I opened the QuickAccess from.
  • Given I use Safari, when the QuickAccess is displayed, then the separate window is not offered, and the background refuses to open one (see PB-49236).
  • Given I save a resource from the QuickAccess, when the save starts, then the permission snapshot (keyring synchronisation and permissions) is taken as in the vault.

What you did

File Change
controller/quickaccess/openEditResourceInDetachedModeController.js New controller: validates the resource id, refuses on Safari, opens the detached QuickAccess
event/quickAccessEvents.js New passbolt.quickaccess.open-edit-resource-in-detached-mode event
pagemod/quickAccessPagemod.js Registers PermissionEvents (read only) for the permission snapshot
webAccessibleResources/js/app/QuickAccess.js Passes the resourceId URL parameter to the QuickAccess application

The target tab is the opener tab when known, otherwise the active tab at the time of the click (the toolbar popup still has the focus, so it is the website), as PrepareResourceController does.

Tests: the controller (4 tests, including Safari and the no-tab case) and pagemod tests pass, ESLint is clean, and a Chromium MV3 development build compiles against the styleguide branch. Selenium tests were not run, and the feature was not tested manually in Firefox or Safari.

🤖 Generated with Claude Code

- Add the passbolt.quickaccess.open-edit-resource-in-detached-mode event to
  open the QuickAccess edit form of a resource in a separate window, which
  stays open while the user changes the password on the website. The window
  targets the tab the QuickAccess was opened from, or the active tab. It is
  refused on Safari, where the QuickAccess must stay attached to the toolbar.
- Pass the resource id from the URL to the QuickAccess application.
- Register the permission events on the QuickAccess so the edit form can take
  a permission snapshot before saving, as the vault does.

Requires the passbolt_styleguide changes of the same branch name.

Refs community.passbolt.com/t/14934

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@CLAassistant

CLAassistant commented Nov 19, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

2 participants