1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-27 11:02:16 +01:00
unleash.unleash/frontend/src/openapi/models/changeRequestSearchItemSchemaOneOfFourCreatedBy.ts
Thomas Heartman feed9ea3c9
chore: show avatars in cross-project change requests table. (#10838)
Updates the CR table cell to show the avatar (again). This applies both
to the project-based table and the global table.

Also adds a truncator to the created by cell, to avoid weird name
stacking.

Because the truncator already has a popup functionality on truncation,
we disable it for the avatars.

To make it compile, I've manually updated the types based on the
schemas. I'll regenerate them at a later date. The fields that were
marked as nullable are typically not nullable (although often they may
not be required) in our schemas, so I'll take it out for now. If we find
that we *are* returning null there, it still shouldn't cause any
problems for the UI, so it's a low risk fix that can be done later if
necessary.

Before:
<img width="1816" height="157" alt="image"
src="https://github.com/user-attachments/assets/37f0b742-4113-45ed-a867-f62913bcf99f"
/>

<img width="1255" height="126" alt="image"
src="https://github.com/user-attachments/assets/786ba01d-1e16-4b4f-b34a-d1157571b9be"
/>


After:
<img width="1789" height="146" alt="image"
src="https://github.com/user-attachments/assets/2a838804-89c5-42c8-a43c-64c1b93c4e01"
/>
<img width="1320" height="72" alt="image"
src="https://github.com/user-attachments/assets/b04ca1d1-8334-40b4-bfba-46d803dd1cda"
/>
2025-10-23 07:44:11 +00:00

22 lines
414 B
TypeScript

/**
* Generated by Orval
* Do not edit manually.
* See `gen:api` script in package.json
*/
/**
* User who created the change request.
*/
export type ChangeRequestSearchItemSchemaOneOfFourCreatedBy = {
/** Unique identifier of the user. */
id: number;
/**
* Avatar image URL for the user.
*/
imageUrl?: string;
/**
* Username of the user.
*/
username?: string;
};