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(frontend): admin ui changes #2716

Merged
merged 2 commits into from May 14, 2024
Merged

feat(frontend): admin ui changes #2716

merged 2 commits into from May 14, 2024

Conversation

njlie
Copy link
Contributor

@njlie njlie commented May 9, 2024

Changes proposed in this pull request

  • Updated the Admin UI with the following:
    • Changed Webhook to Webhook Data.
    • Swapped Asset and Peer tabs.
    • Added tooltips to Peer section with links to documentation.

Context

Fixes #2681.

Checklist

  • Related issues linked using fixes #number
  • Tests added/updated
  • Documentation added
  • Make sure that all checks pass
  • Bruno collection updated

@github-actions github-actions bot added the pkg: frontend Changes in the frontend package. label May 9, 2024
Copy link

netlify bot commented May 9, 2024

Deploy Preview for brilliant-pasca-3e80ec canceled.

Name Link
🔨 Latest commit 48805ed
🔍 Latest deploy log https://app.netlify.com/sites/brilliant-pasca-3e80ec/deploys/66423db115d77500085c5fa0

Comment on lines 127 to 130
<a
className='tooltip'
href='https://rafiki.dev/concepts/interledger-protocol/peering/'
>
Copy link
Contributor

Choose a reason for hiding this comment

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

This would apply to all these links:

Should it open in a new tab? user likely wants to resume whatever they were doing here after visiting this site for more context.

Copy link
Contributor

@BlairCurrey BlairCurrey left a comment

Choose a reason for hiding this comment

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

Non-blocking, just some food for thought.

From the task I was expecting a tooltip more like this. Perhaps in an info icon like in this example. As opposed to descriptions under the field. I guess I can see a case for that too though, if we wanted the extra information to be more prominent. An info icon tooltip would be a bit less busy though IMO and keep the error message closer to the input as well. How it currently looks, for context:

image

Comment on lines 5 to 8
a.tooltip {
color: revert;
text-decoration: revert;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

My understanding is this restores some original styling for a links that tailwind strips out.

This seems like a good way to do it. We've handled this differently elsewhere (a bunch of tailwind utility classnames) but I think what you've done here is simpler and easier to use.

If it makes sense to you, please merge this PR which standardizes on this method: #2719. I also renamed the class to default-link and updated reference since it would apply to more than tooltips.

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks for the review, merged in

Copy link
Contributor

@BlairCurrey BlairCurrey left a comment

Choose a reason for hiding this comment

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

Looks good to me. Remaining comments aren't really blocking.

@@ -38,6 +39,9 @@ export const Input = forwardRef<HTMLInputElement, InputProps>(
{...props}
/>
</div>
{description ? (
<div className='font-medium text-sm'>{description}</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<div className='font-medium text-sm'>{description}</div>
<div className='font-light italic mt-1 text-sm'>{description}</div>

maybe? to give a bit more visual separation

Screenshot 2024-05-13 at 19 09 39

@njlie njlie merged commit 604af14 into main May 14, 2024
42 checks passed
@njlie njlie deleted the nl/2681/admin-ui-changes branch May 14, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: frontend Changes in the frontend package.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Admin UI changes from workweek
3 participants