feat: add list view toggle to chart library with user meta persistence#1285
Open
HardeepAsrani wants to merge 3 commits intodevelopmentfrom
Open
feat: add list view toggle to chart library with user meta persistence#1285HardeepAsrani wants to merge 3 commits intodevelopmentfrom
HardeepAsrani wants to merge 3 commits intodevelopmentfrom
Conversation
Contributor
Adds a grid/list view toggle to the Visualizer library page. List view renders charts in a WP-style table. The selected view is saved to user meta so it persists across visits without a redirect. - List view: WP table layout, no canvas rendering, tooltips on actions - Shortcode cell is clickable to copy to clipboard with visual feedback - View preference saved via update_user_meta() with allowlist validation - 10 Playwright e2e tests covering toggle, persistence, and table content
56545d1 to
b92baf9
Compare
Member
Author
No, we can't. The chart needs to be rendered for us to screenshot it. |
Contributor
|
@HardeepAsrani I can't see the changes. The notice is still at the bottom in List view I'm missing something? |
Member
Author
|
@rodica-andronache No, it was my fault. Should be fine now. |
Contributor
|
@HardeepAsrani thanks! The notice should be the same in both views. |
abaicus
approved these changes
Mar 17, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.







Summary
Adds a grid/list view toggle to the Visualizer library page. List view renders charts in a WP-style table. The selected view is saved to user meta so it persists across visits without a redirect.
Will affect visual aspect of the product
YES
Screenshots
Test instructions
Check before Pull Request is ready:
Closes https://github.com/Codeinwp/visualizer-pro/issues/510.