Skip to content
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: MyEnvironmentPage into two components #2794

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

agatha197
Copy link
Contributor

@agatha197 agatha197 commented Oct 31, 2024

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
  • 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.

Copy link

graphite-app bot commented Oct 31, 2024

Your org requires the Graphite merge queue for merging into main

Add 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.

@github-actions github-actions bot added the size:XL 500~ LoC label Oct 31, 2024
@agatha197 agatha197 force-pushed the feature/add-AliasedBaseImageName branch from a26bc16 to 5680e71 Compare October 31, 2024 03:37
@agatha197 agatha197 force-pushed the reactor/MyEnvironmentPage-into-two-components branch from e8e082a to 43f8c1e Compare October 31, 2024 03:37
@agatha197 agatha197 force-pushed the feature/add-AliasedBaseImageName branch from 5680e71 to beb3763 Compare October 31, 2024 03:42
@agatha197 agatha197 force-pushed the reactor/MyEnvironmentPage-into-two-components branch from 43f8c1e to 2dce71b Compare October 31, 2024 03:43
@agatha197 agatha197 force-pushed the feature/add-AliasedBaseImageName branch from beb3763 to b1d47a2 Compare October 31, 2024 03:50
@agatha197 agatha197 force-pushed the reactor/MyEnvironmentPage-into-two-components branch from 2dce71b to 1c211d1 Compare October 31, 2024 03:50
@agatha197 agatha197 changed the base branch from feature/add-AliasedBaseImageName to feature/add-AliasedImageDoubleTags October 31, 2024 03:50
@agatha197 agatha197 force-pushed the feature/add-AliasedImageDoubleTags branch from faefb29 to 9c69555 Compare October 31, 2024 03:51
@agatha197 agatha197 force-pushed the reactor/MyEnvironmentPage-into-two-components branch from 1c211d1 to ae05d34 Compare October 31, 2024 03:51
@agatha197 agatha197 added this to the 24.09 milestone Oct 31, 2024
@agatha197 agatha197 requested a review from lizable October 31, 2024 06:27
@agatha197 agatha197 force-pushed the feature/add-AliasedImageDoubleTags branch from 9c69555 to b81207d Compare October 31, 2024 08:03
@agatha197 agatha197 force-pushed the reactor/MyEnvironmentPage-into-two-components branch from ae05d34 to f2eee29 Compare October 31, 2024 08:03
@agatha197 agatha197 force-pushed the feature/add-AliasedImageDoubleTags branch from b81207d to 13757c9 Compare October 31, 2024 08:09
@agatha197 agatha197 force-pushed the reactor/MyEnvironmentPage-into-two-components branch from f2eee29 to 5e111e7 Compare October 31, 2024 08:09
@agatha197 agatha197 force-pushed the feature/add-AliasedImageDoubleTags branch from 13757c9 to 2273745 Compare October 31, 2024 08:13
@agatha197 agatha197 force-pushed the reactor/MyEnvironmentPage-into-two-components branch from 5e111e7 to feed2ae Compare October 31, 2024 08:13
@agatha197 agatha197 force-pushed the reactor/MyEnvironmentPage-into-two-components branch from ebe8809 to 5c0cbbe Compare November 4, 2024 05:11
@agatha197 agatha197 force-pushed the feature/add-AliasedImageDoubleTags branch from c2cf13b to 94ecae3 Compare November 4, 2024 05:52
@agatha197 agatha197 force-pushed the reactor/MyEnvironmentPage-into-two-components branch from 5c0cbbe to e85e377 Compare November 4, 2024 05:52
@agatha197 agatha197 mentioned this pull request Nov 4, 2024
6 tasks
@agatha197 agatha197 force-pushed the feature/add-AliasedImageDoubleTags branch from 94ecae3 to 073c949 Compare November 4, 2024 06:39
@agatha197 agatha197 force-pushed the reactor/MyEnvironmentPage-into-two-components branch from e85e377 to 05303a6 Compare November 4, 2024 06:39
@agatha197 agatha197 force-pushed the feature/add-AliasedImageDoubleTags branch from 073c949 to e973a5f Compare November 4, 2024 06:51
@agatha197 agatha197 force-pushed the reactor/MyEnvironmentPage-into-two-components branch from 05303a6 to c0d1d04 Compare November 4, 2024 06:51
@agatha197 agatha197 force-pushed the feature/add-AliasedImageDoubleTags branch from e973a5f to 9db3957 Compare November 4, 2024 07:02
@agatha197 agatha197 force-pushed the reactor/MyEnvironmentPage-into-two-components branch from c0d1d04 to 22293b5 Compare November 4, 2024 07:02
@agatha197 agatha197 force-pushed the feature/add-AliasedImageDoubleTags branch from 9db3957 to ab5b02c Compare November 4, 2024 07:06
@agatha197 agatha197 force-pushed the reactor/MyEnvironmentPage-into-two-components branch from 22293b5 to 7bdbead Compare November 4, 2024 07:06
Copy link
Member

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@agatha197 agatha197 force-pushed the feature/add-AliasedImageDoubleTags branch from ab5b02c to 00b08c5 Compare November 4, 2024 07:37
@agatha197 agatha197 force-pushed the reactor/MyEnvironmentPage-into-two-components branch from 7bdbead to c1490e8 Compare November 4, 2024 07:38
Copy link
Contributor

@ironAiken2 ironAiken2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@agatha197 agatha197 force-pushed the feature/add-AliasedImageDoubleTags branch from 00b08c5 to 85ca66e Compare November 5, 2024 09:56
@agatha197 agatha197 force-pushed the reactor/MyEnvironmentPage-into-two-components branch from c1490e8 to e42e855 Compare November 5, 2024 09:56
Copy link

graphite-app bot commented Nov 5, 2024

Merge activity

@agatha197 agatha197 force-pushed the feature/add-AliasedImageDoubleTags branch from 85ca66e to 02a471b Compare November 5, 2024 10:34
@agatha197 agatha197 force-pushed the reactor/MyEnvironmentPage-into-two-components branch from e42e855 to 4db0daa Compare November 5, 2024 10:34
## 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.
@agatha197 agatha197 force-pushed the feature/add-AliasedImageDoubleTags branch from 02a471b to 3eb62b8 Compare November 5, 2024 10:38
@agatha197 agatha197 force-pushed the reactor/MyEnvironmentPage-into-two-components branch from 4db0daa to b61f9b6 Compare November 5, 2024 10:39
Base automatically changed from feature/add-AliasedImageDoubleTags to main November 5, 2024 10:44
@graphite-app graphite-app bot merged commit b61f9b6 into main Nov 5, 2024
4 checks passed
@graphite-app graphite-app bot deleted the reactor/MyEnvironmentPage-into-two-components branch November 5, 2024 10:44
@agatha197 agatha197 added the type:refactor Refactoring current implementation. label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XL 500~ LoC type:refactor Refactoring current implementation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants