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

misc(ui): image/asset tab tooltips, icon to rename board, getting started text #7067

Merged
merged 3 commits into from
Oct 8, 2024

Conversation

maryhipp
Copy link
Collaborator

@maryhipp maryhipp commented Oct 8, 2024

Summary

Misc UI:

  • add tooltips to image/assets tab in gallery to explain what each is
  • add an icon to boards on hover to more easily rename the board without knowing to right-click
  • add info re prompt templates to getting started text on viewer

Related Issues / Discussions

QA Instructions

Merge Plan

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)

@github-actions github-actions bot added the frontend PRs that change frontend files label Oct 8, 2024
@maryhipp maryhipp merged commit 3b9d1e8 into main Oct 8, 2024
14 checks passed
@maryhipp maryhipp deleted the maryhipp/misc-ux branch October 8, 2024 19:46
Comment on lines +92 to +100
{isHovering && (
<IconButton
aria-label="edit name"
icon={<PiPencilBold />}
size="sm"
variant="ghost"
onClick={isEditing.setTrue}
/>
)}
Copy link
Collaborator

@psychedelicious psychedelicious Oct 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this needed? You can click the board title to edit it. Maybe the trigger to edit a board title should be a single click instead, would that not serve the need better than adding more buttons?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this introduces a race condition (ish) where the icon doesn't disappear.

Screen.Recording.2024-10-09.at.6.55.56.am.mov

Copy link
Collaborator

@psychedelicious psychedelicious Oct 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I think there's just a typo in the PR description - mentions right-click but it actually means double-click, all good. I'll tidy up the minor issues I've mentioned in a followup or you can if you want

>
{localTitle}
</Text>
<Flex alignItems="center" gap={1} onMouseOver={handleMouseOver} onMouseOut={handleMouseOut}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This gap is a bit too small.

image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<Flex alignItems="center" gap={1} onMouseOver={handleMouseOver} onMouseOut={handleMouseOut}>
<Flex alignItems="center" gap={3} onMouseOver={handleMouseOver} onMouseOut={handleMouseOut}>

Comment on lines +93 to +99
<IconButton
aria-label="edit name"
icon={<PiPencilBold />}
size="sm"
variant="ghost"
onClick={isEditing.setTrue}
/>
Copy link
Collaborator

@psychedelicious psychedelicious Oct 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

variant="link" with alignSelf="stretch" looks better here (and no need to change the gap bc its kinda built-in to the button)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend PRs that change frontend files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants