mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-07 01:16:28 +02:00
This PR hooks up the actionable change request data to the counter in the UI. It: - creates a getter for the data. It only exposes data. We don't really care about error or loading for this (it's not an important piece of data), so we don't expose that just yet. - Adds orval-generated schema - Uses the hook in the UI. It also stwitches the previous "notification badge" for MUI's built-in badge. We already use that badge component for the event timeline, so I thought it would make sense to do it here too. Overall, the effect is pretty good, but there's a few kinks we might wanna work out. I'll make a follow-up for that (worked out in this PR after all)
17 lines
333 B
TypeScript
17 lines
333 B
TypeScript
/**
|
|
* Generated by Orval
|
|
* Do not edit manually.
|
|
* See `gen:api` script in package.json
|
|
*/
|
|
|
|
/**
|
|
* Data related to actionable change requests in a project.
|
|
*/
|
|
export interface ActionableChangeRequestsSchema {
|
|
/**
|
|
* The number of actionable change requests in the project.
|
|
* @minimum 0
|
|
*/
|
|
total: number;
|
|
}
|