-
Notifications
You must be signed in to change notification settings - Fork 2
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
App + Subscription Metadata Editing, and User creation on login #105
App + Subscription Metadata Editing, and User creation on login #105
Conversation
Issues linked to changelog: |
Signed-off-by: Nicholas Bucher <behappy54321@gmail.com>
Signed-off-by: Nicholas Bucher <behappy54321@gmail.com>
Signed-off-by: Nicholas Bucher <behappy54321@gmail.com>
Signed-off-by: Nicholas Bucher <behappy54321@gmail.com>
Signed-off-by: Nicholas Bucher <behappy54321@gmail.com>
… for admins + non-admins. Signed-off-by: Nicholas Bucher <behappy54321@gmail.com>
if (shallowEquals(newRateLimitInfo, initialRateLimitInfo)) { | ||
return; | ||
} | ||
(async () => { |
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.
Small nit that this section has a LOT of repeat that could be done as like toastObject(verb: string, metadataType:string)
or whatever
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.
Agreed - I can do that refactor in a follow up.
@@ -167,3 +167,19 @@ export const useInArea = (paths: string[]) => { | |||
}); | |||
}, [routerLocation.pathname, paths]); | |||
}; | |||
|
|||
export const shallowEquals = ( |
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.
Is this not out of the box in JS yet?
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.
It still isn't. Sigh
@@ -167,3 +167,19 @@ export const useInArea = (paths: string[]) => { | |||
}); | |||
}, [routerLocation.pathname, paths]); | |||
}; | |||
|
|||
export const shallowEquals = ( |
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.
It still isn't. Sigh
This PR includes:
This video shows the new login flow. I log in as the
admin_user
. This user does not have a record in the portal server DB, so the website sends a request to create the user and mutates the SWR key for/me
. The user info is then displayed correctly on the website.Screen.Recording.2024-09-25.at.4.27.32.PM.mov
This is a video of editing the rate limit and custom metadata as an admin user:
Screen.Recording.2024-09-27.at.2.41.02.PM.mov
Non admin users see this apps page and app details page view of the metadata.
There is a portal server bug with the subscriptions not returning the metadata, so when that is completed the metadata editor should work on the subscriptions as well, since it uses the same logic.
BOT NOTES: resolves https://github.com/solo-io/solo-projects/issues/6952 resolves https://github.com/solo-io/solo-projects/issues/6958