From aa6429049e289630ea45c75e8216165a497740ee Mon Sep 17 00:00:00 2001 From: sua yoo Date: Wed, 29 May 2024 13:40:56 -0700 Subject: [PATCH] Display name of user who last updated browser profile (#1834) - Shows browser profile last modified or created by name, if available - Moves backed-up status to browser profile subsection header - Moves "Last Updated" column to last and displays user name on hover, to match archived items list view - Updates browser profile docs --- docs/user-guide/browser-profiles.md | 6 +-- .../src/pages/org/browser-profiles-detail.ts | 49 ++++++++++++------- .../src/pages/org/browser-profiles-list.ts | 41 +++++++++------- 3 files changed, 57 insertions(+), 39 deletions(-) diff --git a/docs/user-guide/browser-profiles.md b/docs/user-guide/browser-profiles.md index 914179fa..b3e55475 100644 --- a/docs/user-guide/browser-profiles.md +++ b/docs/user-guide/browser-profiles.md @@ -1,6 +1,6 @@ # Browser Profiles -Browser Profiles are saved instances of a web browsing session that can be reused to crawl websites as they were configured, with any cookies, saved login sessions, or browser settings. Using a pre-configured profile also means that content that can only be viewed by logged in users can be archived, without archiving the actual login credentials. +Browser profiles are saved instances of a web browsing session that can be reused to crawl websites as they were configured, with any cookies, saved login sessions, or browser settings. Using a pre-configured profile also means that content that can only be viewed by logged in users can be archived, without archiving the actual login credentials. !!! tip "Best practice: Create and use web archiving-specific accounts for crawling with browser profiles" @@ -47,8 +47,8 @@ Browser profiles don't just affect websites! Any of Brave's settings (available Sometimes websites will log users out or expire cookies or login sessions after a period of time. In these cases, when crawling the browser profile can still be loaded but may not behave as it did when it was initially set up. -To update the profile, go to the profile's details page and press the _Edit Browser Profile_ button to load and interact with the sites that need to be re-configured. When finished, press the _Save Browser Profile_ button to return to the profile's details page. +To update the profile, go to the profile's details page and press the _Configure Browser Profile_ button to load and interact with the sites that need to be re-configured. When finished, press the _Save Browser Profile_ button to return to the profile's details page. Profiles are automatically backed up on save if replica storage locations are configured. ### Editing Browser Profile Metadata -To edit a browser profile's name and description, select _Edit Name and Description_ from the actions menu on the profile's details page. +To edit a browser profile's name and description, select _Edit Metadata_ from the actions menu on the profile's details page. diff --git a/frontend/src/pages/org/browser-profiles-detail.ts b/frontend/src/pages/org/browser-profiles-detail.ts index 3e76139a..6e06cb14 100644 --- a/frontend/src/pages/org/browser-profiles-detail.ts +++ b/frontend/src/pages/org/browser-profiles-detail.ts @@ -132,21 +132,6 @@ export class BrowserProfilesDetail extends TailwindElement {
- -
- ${isBackedUp - ? html` - ${msg("Backed Up")}` - : html` - ${msg("Not Backed Up")}`} -
-
${this.profile ? this.profile.crawlerChannel @@ -189,14 +174,42 @@ export class BrowserProfilesDetail extends TailwindElement { >` : nothing} + ${ + // NOTE older profiles may not have "modified/created by" data + this.profile?.modifiedByName || this.profile?.createdByName + ? html` + + ${this.profile.modifiedByName || this.profile.createdByName} + + ` + : nothing + }
-

- ${msg("Browser Profile")} -

+
+ + + +

+ ${msg("Browser Profile")} +

+
+ ${when(this.isCrawler, () => this.browserId || this.isBrowserLoading ? html` diff --git a/frontend/src/pages/org/browser-profiles-list.ts b/frontend/src/pages/org/browser-profiles-list.ts index 5ee3d33b..1503db63 100644 --- a/frontend/src/pages/org/browser-profiles-list.ts +++ b/frontend/src/pages/org/browser-profiles-list.ts @@ -89,10 +89,10 @@ export class BrowserProfilesList extends LiteElement { ${msg("Name")} - ${msg("Last Updated")} + ${msg("Visited URLs")} - ${msg("Visited URLs")} + ${msg("Last Updated")} ${msg("Row Actions")} @@ -160,22 +160,6 @@ export class BrowserProfilesList extends LiteElement { ${data.name} - - - ${data.origins[0]}${data.origins.length > 1 ? html`` : nothing} + + + + + ${this.renderActions(data)}