Skip to content

feat(hlx6): hide Cut and folder Rename in browse action bar for HLX6 sites#1070

Merged
mhaack merged 6 commits into
mainfrom
hlx6cut
Jul 6, 2026
Merged

feat(hlx6): hide Cut and folder Rename in browse action bar for HLX6 sites#1070
mhaack merged 6 commits into
mainfrom
hlx6cut

Conversation

@mhaack

@mhaack mhaack commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Closes #1038
Closes #1039

Two browse toolbar operations that are not supported for HLX6 sites are now hidden from the action bar UI:

  • Cut — hidden for all items on HLX6
  • Rename — hidden for folders on HLX6 (files can still be renamed)

How

da-list detects the HLX6 upgrade status via isHlx6(org, site) from NX's /utils/api.js (already used in the same component for delete handling). The result is stored as _isHlx6 state and passed down to <da-actionbar> as a property.

da-actionbar exposes two new computed getters:

  • _canCut_canWrite && !isHlx6
  • _canRename_canWrite, and additionally !isHlx6 when the selected item is a folder

Testing

7 new unit tests covering all combinations (HLX6/non-HLX6, file/folder, write/read-only). Full suite: 367 tests, 0 failures.

Test

mhaack added 5 commits July 1, 2026 15:51
- Add isHlx6 property to DaActionBar and _canCut getter
- Detect HLX6 in da-list getList() via NX api.js isHlx6()
- Pass _isHlx6 flag from da-list to da-actionbar
- Add unit tests for _canCut with/without HLX6

Closes #1039
Consistent with items/permissions/isFavorite — property-only binding,
no attribute observation needed.
- Add _canRename getter: false when isHlx6 and item is a folder (no ext)
- Files can still be renamed on HLX6
- Add 4 unit tests covering all cases
@aem-code-sync

aem-code-sync Bot commented Jul 1, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-sync branch
Commits

@mhaack mhaack changed the title feat: hide Cut and folder Rename in browse action bar for HLX6 sites feat(hlx6): hide Cut and folder Rename in browse action bar for HLX6 sites Jul 1, 2026
@mhaack

mhaack commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

@mhaack mhaack merged commit 5b850fa into main Jul 6, 2026
5 checks passed
@mhaack mhaack deleted the hlx6cut branch July 6, 2026 07:25
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.

Remove 'cut' operation from file browse UI Remove folder rename operation in browse UI

2 participants