Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update references to org public profile -> gallery #2330

Merged
merged 15 commits into from
Jan 27, 2025
8 changes: 4 additions & 4 deletions frontend/docs/docs/user-guide/org-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ Settings that apply to the entire organization are found in the **Settings** pag

Your org name appears throughout the web application and in email notifications. Choose a display name for your org that's unique and memorable, like the name of your company, organization, or personal project.

The org URL is where you and other org members will go to view the dashboard, configure org settings, and manage all other org-related activities. If your org is [visible to the public](#visibility), changing this will also update the URL to your org's public page.
The org URL is where you and other org members will go to view the dashboard, configure org settings, and manage all other org-related activities. If your org has a [public collections gallery](#public-collections-gallery) enabled, changing this will also update the URL to the gallery.

Org name and URLs are unique to each Browsertrix instance (for example, on `app.browsertrix.com`) and you may be prompted to change the org name or URL if either are already in use by another org.

??? info "What information will be visible to the public?"
All org information is private until you make the org visible. Once your org is made visible to the public, the org name, description, and website will appear on the org's public page. You can preview how information appears to the public by visiting the **Public Page URL** in **Visibility** settings.
All org information is private until you make the org visible. Once your org is made visible to the public, the org name, description, and website will appear on the org's public page. You can preview how information appears to the public by clicking **View as public**.
SuaYoo marked this conversation as resolved.
Show resolved Hide resolved

### Visibility
### Public Collections Gallery

Make you org visible to public to share your org. Once enabled, anyone on the internet with a link to your org's public page will be able to view general information like the org name, description, website, and public collections.
Enable a homepage for your public collections to easily share all public collections in your org. Once enabled, anyone on the internet with a link to your org's public collections gallery will be able to browse public collections and view general information like the org name, description, and website.

## Billing

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export class CollectionMetadataDialog extends BtrixElement {
<btrix-alert variant="warning" class="mt-2">
${org.enablePublicProfile
? msg(
"This collection will be visible on the org's public page, even without archived items. You may want to set visibility to 'Unlisted' until archived items have been added.",
"This collection will be visible in the org public collection gallery, even without archived items. You may want to set visibility to 'Unlisted' until archived items have been added.",
)
: html`
${alerts.orgNotPublicWarning}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/features/collections/collections-grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class CollectionsGrid extends BtrixElement {
href=${`/${RouteNamespace.PublicOrgs}/${this.orgSlugState}/collections/${collection.slug}`}
>
<sl-icon slot="prefix" name="globe2"></sl-icon>
${msg("Visit Public Page")}
${msg("Visit Public Collections Gallery")}
</btrix-menu-item-link>
</sl-menu>
</btrix-overflow-dropdown>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class SelectCollectionAccess extends BtrixElement {
[CollectionAccess.Public]: {
label: msg("Public"),
icon: "globe2",
detail: msg("Anyone can view on the org's public page"),
detail: msg("Anyone can view from the org public collections gallery"),
},
};

Expand Down
6 changes: 3 additions & 3 deletions frontend/src/pages/org/dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ export class Dashboard extends BtrixElement {
>
<sl-icon slot="prefix" name="globe2"></sl-icon>
${this.org?.enablePublicProfile
? msg("Visit Public Page")
: msg("Preview Public Page")}
? msg("Visit Public Collections Gallery")
: msg("Preview Public Collections Gallery")}
</btrix-menu-item-link>
${when(this.org, (org) =>
org.enablePublicProfile
Expand All @@ -330,7 +330,7 @@ export class Dashboard extends BtrixElement {
}}
>
<sl-icon name="copy" slot="prefix"></sl-icon>
${msg("Copy Link to Public Page")}
${msg("Copy Link to Gallery")}
SuaYoo marked this conversation as resolved.
Show resolved Hide resolved
</sl-menu-item>
`
: this.appState.isAdmin
Expand Down
14 changes: 8 additions & 6 deletions frontend/src/pages/org/settings/components/visibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class OrgSettingsVisibility extends BtrixElement {
[
html`
<label for="orgVisibility" class="form-label text-xs">
${msg("Visibility")}
${msg("Gallery Visibility")}
</label>
<div>
<sl-switch
Expand All @@ -34,19 +34,19 @@ export class OrgSettingsVisibility extends BtrixElement {
?checked=${this.org?.enablePublicProfile}
?disabled=${!this.org}
>
${msg("Allow anyone to view org")}
${msg("Enable gallery of public collections")}
</sl-switch>
</div>
`,
msg(
"If enabled, anyone on the Internet will be able to view general org information and browse this org's public collections.",
"If enabled, anyone on the Internet will be able to browse this org's public collections and view general org information.",
),
],
[
html`
<div class="mb-2">
<btrix-copy-field
label=${msg("Public Page URL")}
label=${msg("Gallery URL")}
SuaYoo marked this conversation as resolved.
Show resolved Hide resolved
value=${`${orgBaseUrl}/${RouteNamespace.PublicOrgs}/${this.orgSlugState}`}
.monostyle=${false}
></btrix-copy-field>
Expand All @@ -66,7 +66,9 @@ export class OrgSettingsVisibility extends BtrixElement {
];

return html`
<h2 class="mb-2 mt-7 text-lg font-medium">${msg("Visibility")}</h2>
<h2 class="mb-2 mt-7 text-lg font-medium">
${msg("Public Collections Gallery")}
</h2>

<section class="rounded-lg border">
<div class="p-5">${columns(cols)}</div>
Expand Down Expand Up @@ -107,7 +109,7 @@ export class OrgSettingsVisibility extends BtrixElement {
);

this.notify.toast({
message: msg("Updated org visibility."),
message: msg("Updated public collections gallery visibility."),
variant: "success",
icon: "check2-circle",
id: UPDATED_STATUS_TOAST_ID,
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/org/settings/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ export class OrgSettings extends BtrixElement {
this.org,
(org) =>
org.enablePublicProfile
? msg("View public org page")
: msg("Preview how your org looks to the public"),
? msg("View as public")
: msg("Preview how information appears to the public"),
() => html` <sl-skeleton class="w-36"></sl-skeleton> `,
)}
</btrix-link>
Expand Down
6 changes: 4 additions & 2 deletions frontend/src/pages/public/org.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,13 @@ export class PublicOrg extends BtrixElement {
<sl-alert variant="primary" open>
<sl-icon slot="icon" name="eye-fill"></sl-icon>
<strong class="font-semibold">
${msg("This is a private preview of your org's public page")}
${msg(
"This is a private preview of the public collections gallery",
)}
</strong>
<p>
${msg(
"Update your org's visibility settings to make this page visible to anyone on the internet.",
"Update your org's public collections gallery settings to make this page visible to anyone on the internet.",
)}
${this.appState.isAdmin
? html`
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/strings/collections/alerts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { msg } from "@lit/localize";

export const alerts = {
orgNotPublicWarning: msg(
"This org isn't visible to the public yet. To make the org and this collection public, update the org's visibility settings.",
"This doesn't have a public collections gallery enabled yet. To make this collection and basic org information public, update the org's gallery visibility setting.",
),
};
Loading