From f6a4a1a8dd1ee3df6c09768faaa23218df27c30f Mon Sep 17 00:00:00 2001 From: emma Date: Tue, 28 Oct 2025 17:53:17 -0400 Subject: [PATCH] [wip] update collection sharing UI and copy button - updates the share collection component to add "name" and "size" attributes to the copy button for improved accessibility and styling - changes button text from "Copy Link" to "Copy Public Link" for clarity - modifies the collection detail page to make the access icon next to the collection title a clickable button that opens the sharing tab in the edit dialog - adds a dedicated share button to the header actions with a share icon that also opens the sharing tab --- .../features/collections/share-collection.ts | 4 +++- frontend/src/pages/org/collection-detail.ts | 24 +++++++++++++++---- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/frontend/src/features/collections/share-collection.ts b/frontend/src/features/collections/share-collection.ts index ce4bd340c3..04ea08264f 100644 --- a/frontend/src/features/collections/share-collection.ts +++ b/frontend/src/features/collections/share-collection.ts @@ -69,8 +69,10 @@ export class ShareCollection extends BtrixElement { return html`
this.shareLink} - content=${msg("Copy Link")} + content=${msg("Copy Public Link")} @click=${() => { void this.clipboardController.copy(this.shareLink); diff --git a/frontend/src/pages/org/collection-detail.ts b/frontend/src/pages/org/collection-detail.ts index f05a7af653..91cf9f2785 100644 --- a/frontend/src/pages/org/collection-detail.ts +++ b/frontend/src/pages/org/collection-detail.ts @@ -187,10 +187,15 @@ export class CollectionDetail extends BtrixElement { class="-mb-1 -ml-2 -mr-1 -mt-1 flex flex-none flex-col gap-2 self-start rounded-lg pb-1 pl-2 pr-1 pt-1 transition-colors has-[.addSummary:hover]:bg-primary-50 has-[sl-icon-button:hover]:bg-primary-50" >
- ${this.renderAccessIcon()}${pageTitle( - this.collection?.name, - tw`mb-2 h-6 w-60`, - )} + ${pageTitle(this.collection?.name, tw`mb-2 h-6 w-60`)} ${this.collection && html` + { + this.openDialogName = "edit"; + this.editTab = "sharing"; + }} + > + + +