-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: session launcher image parsing (#2800)
**Changes:** This PR enhances the image selection UI to support extended image information in the session launcher, providing more detailed and structured image metadata display. Key updates: - Adds support for displaying base image name, version, architecture and tags in a more organized format - Introduces tag aliasing functionality to show more user-friendly tag names - Updates the image selection interface to show customized image tags with distinct styling - Adds translations for "Tags" across all supported languages **Minimum required manager version:** 24.09.1 **Review Requirements:** 1. Verify extended image info display works when backend supports 'extended-image-info' feature 2. Check tag aliasing correctly translates technical tags to user-friendly names 3. Confirm customized image tags are properly highlighted with cyan color 4. Validate all translations for "Tags" appear correctly across languages **Test Cases:** 1. Select an image with extended info: - Should show base image name, version, architecture and tags - Tags should display with proper aliasing 2. Select a customized image: - Should show customized tag with cyan highlighting - Should display proper customized image name from labels 3. Test with extended-image-info feature disabled: - Should fallback to legacy image info display format 4. Test the image of `Environments & Resource allocation` page and `Confirm and Launch` page has the same value. **Screenshots:** ![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/2HueYSdFvL8pOB5mgrUQ/52252102-9e0c-4640-aec1-6a9349595984.png)
- Loading branch information
Showing
27 changed files
with
345 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,6 +145,9 @@ describe('useBackendAIImageMetaData', () => { | |
value: 'NVIDIA CORPORATION <[email protected]>', | ||
}, | ||
], | ||
base_image_name: undefined, | ||
tags: undefined, | ||
version: undefined, | ||
}) || '', | ||
); | ||
expect(key).toBe('training'); | ||
|
Oops, something went wrong.