-
Notifications
You must be signed in to change notification settings - Fork 75
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
refactor: new image parsing on CustomizedImageList
#2795
refactor: new image parsing on CustomizedImageList
#2795
Conversation
Your org requires the Graphite merge queue for merging into mainAdd the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @agatha197 and the rest of your teammates on Graphite |
e8e082a
to
43f8c1e
Compare
a64342c
to
78211b2
Compare
43f8c1e
to
2dce71b
Compare
78211b2
to
65a5ec2
Compare
2dce71b
to
1c211d1
Compare
65a5ec2
to
ac0a741
Compare
1c211d1
to
ae05d34
Compare
ac0a741
to
dd1a9de
Compare
ae05d34
to
f2eee29
Compare
dd1a9de
to
922f935
Compare
f2eee29
to
5e111e7
Compare
922f935
to
696f989
Compare
5e111e7
to
feed2ae
Compare
696f989
to
d1f8e39
Compare
7326f14
to
298dd8a
Compare
c0d1d04
to
22293b5
Compare
298dd8a
to
3fb6857
Compare
22293b5
to
7bdbead
Compare
f926e05
to
2784315
Compare
7bdbead
to
c1490e8
Compare
2784315
to
d8a869b
Compare
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.
LGTM
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.
LGTM
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.
LGTM
d8a869b
to
0458203
Compare
c1490e8
to
e42e855
Compare
0458203
to
5530bee
Compare
Merge activity
|
e42e855
to
4db0daa
Compare
5530bee
to
6667520
Compare
**Changes:** Adds search functionality and enhanced display features to the customized image list, including: - New search bar with real-time filtering - Refresh button to reload image data - Copy button for full image paths - Text highlighting for search matches - New columns for base image name, version, and tags when extended image info is supported - Improved table loading states using transitions **Minimum required manager version:** 24.09.1 **How to test:** > endpoint: 10.100.64.15 1. Checkout core branch to `topic/10-22-feature_add_info_field_to_gql_image_schema` 2. Visit My Environments page. **What to check:** - [ ] Check the data is valid. - [ ] Since 24.09.1: Full image path, Registry, Architecture, Namespace, Base image name, Version, Tags, Digest, Control. - [ ] Before 24.09.1: Full image path, Registry, Architecture, Name, Language, Version, Base, Constraints, Digest, Control. - [ ] All data is highlightable by searching images. - [ ] Sortable data works fine. **Requirements to check during review:** - Search functionality filters across all relevant fields - Text highlighting properly emphasizes search terms - Copy button correctly copies the full image path - Table displays appropriate columns based on extended image info support - Loading states show correctly during search and refresh operations The changes improve the user experience by making image information more accessible and searchable while maintaining backwards compatibility with existing functionality. ![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/2HueYSdFvL8pOB5mgrUQ/c2eb081a-87d3-4eb0-8e9b-dfa76796b7ef.png)
## What to check I just separated MyEnvironmentPage into two components, moving the Card component to `MyEnvironmentPage`. Thus, you don't need to check the detailed logic of CustomizedImageList. To see the improved codes for CustomizedImageList, please refer #2795. --- **Changes:** Refactored the customized image list functionality by: - Extracting image list logic from MyEnvironmentPage into a new CustomizedImageList component - Simplified MyEnvironmentPage to use tabs and the new component - Added proper type definitions and GraphQL query/mutation handling - Implemented sorting, filtering, and column customization features - Added copy functionality for image names - Included delete confirmation dialogs with proper error handling **Checklist:** - [ ] Documentation - [x] Minimum required manager version: 24.09.1 (based on GraphQL schema changes) - [ ] Test cases needed: - Column customization persistence - Image deletion workflow - Sorting functionality across all columns - Copy image name feature The changes improve code organization and maintainability while preserving all existing functionality for managing customized container images.
4db0daa
to
b61f9b6
Compare
6667520
to
3dd9cf0
Compare
**Changes:** Refactored image handling similar to #2785 and #2795 for versions before 24.12. Before 24.12, most data parsing is handled on the frontend. Key changes: - Consolidated separate tag components (BaseImageTags, ConstraintTags, LangTags) into a single ImageTags component - Simplified image metadata extraction by using string operations instead of complex parsing - Removed redundant language column and consolidated information into Tags column - Added new getTags utility function to consistently parse and format image tag information - Updated image search functionality to search through tag keys and values **Impact:** - Cleaner, more consistent display of image metadata in the UI - More maintainable code structure for handling image tags - Improved search capabilities across image metadata **Screenshots:** ![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/2HueYSdFvL8pOB5mgrUQ/483e263b-88bc-4d5e-8a22-d3e219695f76.png) **What to check:** Data parsing is the same as 24.12. **Checklist:** - [ ] Mention to the original issue - [ ] Documentation - [x] Minium required manager version: manager < 24.12 - [x] Specific setting for review: 10.100.64.15 - [x] Minimum requirements to check during review - [ ] Test case(s) to demonstrate the difference of before/after: will be handled in another stack
Changes:
Adds search functionality and enhanced display features to the customized image list, including:
Minimum required manager version: 24.09.1
How to test:
topic/10-22-feature_add_info_field_to_gql_image_schema
What to check:
Requirements to check during review:
The changes improve the user experience by making image information more accessible and searchable while maintaining backwards compatibility with existing functionality.