-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
UX improvements to browser profile editing & creating view #1815
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and works well! Just a couple little changes to request.
Co-authored-by: Emma Segal-Grossman <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks really great!! 2 tiny copy edits :)
</p> | ||
<div class="py-2 text-center"> | ||
<sl-button size="small" @click=${this.onClickReload}> | ||
<sl-icon slot="prefix" name="arrow-clockwise"></sl-icon> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would prefer to use "re-connect" instead of "reload" as the page isn't being reloaded and reloading can lead to data loss in other apps / contexts. Here it should continue the session, right?
<sl-icon slot="prefix" name="arrow-clockwise"></sl-icon> | |
${msg("Reconnect to Browser")} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, if the session has ended, it will need to reload the browser, which can lead to data loss, but that's the only thing we can do.
<btrix-alert variant="danger"> | ||
<p> | ||
${msg( | ||
`Interactive browser is offline. Waiting to reconnect...`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The other suggestions would be in-line with this copy, which is good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Title case buttons
Co-authored-by: Emma Segal-Grossman <[email protected]>
Co-authored-by: Henry Wilkinson <[email protected]>
Co-authored-by: Henry Wilkinson <[email protected]>
Co-authored-by: Henry Wilkinson <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, I think this is good to go!
Follow up to #1815 - Improved detection / responsiveness to unavailable browser - Disable Save buttons when browser disconnected / unavailable - Only add unload handler when browser is available - Consistency between new and edit views: new profile view also has cancel button with confirmation - Don't show cancel confirmation if browser is already unavailable. Various text tweaks for consistency / accuracy: - Save New Profile... to indicate new profile will be saved after dialog - Load new browser to indicate new browser will be created - Mention connection to browser is lost in disconnected message. Also: migrated to LiteElement -> TailwindElement for browser-profiles-new ------- Co-authored-by: emma <[email protected]>
Resolves #438
Changes
profile-browser
intoTailwindComponent
Manual testing
a. Fill form
b. Click "Configure Browser Profile". Verify "Interactive Browser" loads with website
c. Scroll up and down page. Verify "Finish Browsing" control bar is visible while interactive browser is visible
d. Open dev tools and switch to offline mode. Verify alert message is shown
e. Wait until screen turns gray and then switch back to online mode. Verify "Reload" button is shown
f. Click "Reload". Verify browser profile URL is reloaded
g. Click "Finish Browsing" and save. Verify profile saves as expected
Screenshots
Follow-ups
UX improvements to the browser profile detail layout and list view will be handled in #1816