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

UI Hotfixes + Tweaks #106

Merged
merged 4 commits into from
Oct 21, 2024
Merged

UI Hotfixes + Tweaks #106

merged 4 commits into from
Oct 21, 2024

Conversation

inFocus7
Copy link
Contributor

@inFocus7 inFocus7 commented Oct 21, 2024

Thanks to Nick, validated on gg portal main branch build following the instructions to kill 4000 and run the make ui command.

  • updated endpoint for metadata updates. in the backend we use a single endpoint for upserts.
  • updated admin subscription modal to not disable the toggling of subscription status.
  • updated unit to be specific fields (""HOUR" "DAY" , etc.)

need to verify creating new subscription doesn't break ui when no rate limit is set (that UNKNOWN works as expected)

Screen.Recording.2024-10-21.at.3.05.36.PM.mov

BOT NOTES:
resolves https://github.com/solo-io/solo-projects/issues/7038

@inFocus7 inFocus7 added the work in progress This pr is still being worked on label Oct 21, 2024
@solo-changelog-bot
Copy link

Issues linked to changelog:
https://github.com/solo-io/solo-projects/issues/7038

Comment on lines +195 to +199
onChange={(value: RateLimitUnit | null) => {
if (!!value) {
setUnit(value);
}
}}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This was mostly a readability change. In the UI codebase (both here and GME), we try to be explicit when checking variable truthiness by converting it to a boolean first, like this (!!value is the same as Boolean(value)).

Copy link
Collaborator

@Charlesthebird Charlesthebird left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, great updates! 🎉

@Charlesthebird Charlesthebird merged commit 6619837 into gg-portal-1.18-features Oct 21, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
work in progress This pr is still being worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants