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

feat: add TableColumnSettingModal to ContainerRegistryList #2752

Conversation

agatha197
Copy link
Contributor

@agatha197 agatha197 commented Oct 15, 2024

Changes:

This PR enhances the ContainerRegistryList component by adding a column visibility feature. Users can now customize which columns are displayed in the registry list table.

  • Introduced a new TableColumnsSettingModal component for managing column visibility
  • Added a settings button to toggle the column visibility modal
  • Implemented local storage state to persist user's column visibility preferences
  • Refactored the table columns definition for better maintainability
  • Updated the Table component to use the filtered columns based on user preferences

Rationale:

This change improves the user experience by allowing customization of the registry list view. Users can now focus on the information most relevant to them, reducing clutter and improving efficiency.

Impact:

  • Users can now customize their view of the container registry list
  • Developers can more easily manage and extend the columns in the future

Checklist:

  • Documentation: Update user guide to explain the new column visibility feature
  • Minimum requirements to check during review:
    • Verify that the column visibility modal opens and closes correctly
    • Ensure that column preferences are saved and persisted across page reloads
    • Check that the table updates correctly when column visibility is changed

Copy link

graphite-app bot commented Oct 15, 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.

Copy link
Contributor Author

agatha197 commented Oct 15, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @agatha197 and the rest of your teammates on Graphite Graphite

@github-actions github-actions bot added the size:L 100~500 LoC label Oct 15, 2024
@agatha197 agatha197 force-pushed the feature/fetch-container-registries-with-nodes branch 2 times, most recently from 639bbd7 to fa69e9c Compare October 15, 2024 05:19
@agatha197 agatha197 force-pushed the feature/add-TableColumnSettingModal-to-ContainerRegistryList branch from 574e64b to 9464ddf Compare October 15, 2024 05:19
@agatha197 agatha197 force-pushed the feature/fetch-container-registries-with-nodes branch from fa69e9c to 18d5597 Compare October 15, 2024 06:24
@agatha197 agatha197 force-pushed the feature/add-TableColumnSettingModal-to-ContainerRegistryList branch from 9464ddf to 711f213 Compare October 15, 2024 06:24
@agatha197 agatha197 force-pushed the feature/fetch-container-registries-with-nodes branch from 18d5597 to 84e86de Compare October 17, 2024 08:58
@agatha197 agatha197 force-pushed the feature/add-TableColumnSettingModal-to-ContainerRegistryList branch from 711f213 to f00dc90 Compare October 17, 2024 08:58
Copy link
Contributor

@lizable lizable left a comment

Choose a reason for hiding this comment

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

LGTM.

@lizable lizable force-pushed the feature/fetch-container-registries-with-nodes branch from 84e86de to ccb9a9b Compare October 21, 2024 04:40
Base automatically changed from feature/fetch-container-registries-with-nodes to main October 21, 2024 04:41
@lizable lizable force-pushed the feature/add-TableColumnSettingModal-to-ContainerRegistryList branch from f00dc90 to 02b62c3 Compare October 21, 2024 04:42
Copy link

graphite-app bot commented Oct 21, 2024

Merge activity

**Changes:**

This PR enhances the ContainerRegistryList component by adding a column visibility feature. Users can now customize which columns are displayed in the registry list table.

- Introduced a new TableColumnsSettingModal component for managing column visibility
- Added a settings button to toggle the column visibility modal
- Implemented local storage state to persist user's column visibility preferences
- Refactored the table columns definition for better maintainability
- Updated the Table component to use the filtered columns based on user preferences

**Rationale:**

This change improves the user experience by allowing customization of the registry list view. Users can now focus on the information most relevant to them, reducing clutter and improving efficiency.

**Impact:**

- Users can now customize their view of the container registry list
- Developers can more easily manage and extend the columns in the future

**Checklist:**

- [ ] Documentation: Update user guide to explain the new column visibility feature
- [ ] Minimum requirements to check during review:
  - Verify that the column visibility modal opens and closes correctly
  - Ensure that column preferences are saved and persisted across page reloads
  - Check that the table updates correctly when column visibility is changed
@lizable lizable force-pushed the feature/add-TableColumnSettingModal-to-ContainerRegistryList branch from 02b62c3 to 805df28 Compare October 21, 2024 04:43
Copy link

github-actions bot commented Oct 21, 2024

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements
5.15% (-0.01% 🔻)
348/6760
🔴 Branches
4.69% (-0% 🔻)
218/4647
🔴 Functions
3.01% (-0.01% 🔻)
67/2226
🔴 Lines
5.04% (-0.01% 🔻)
333/6605

Test suite run success

93 tests passing in 12 suites.

Report generated by 🧪jest coverage report action from 805df28

@graphite-app graphite-app bot merged commit 805df28 into main Oct 21, 2024
7 checks passed
@graphite-app graphite-app bot deleted the feature/add-TableColumnSettingModal-to-ContainerRegistryList branch October 21, 2024 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L 100~500 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants