Skip to content

Fix: UI review bugs - #425

Merged
sheabunge merged 73 commits into
core-betafrom
fix/166-ui-review-fixes-updated/core
Jul 31, 2026
Merged

Fix: UI review bugs#425
sheabunge merged 73 commits into
core-betafrom
fix/166-ui-review-fixes-updated/core

Conversation

@sheabunge

@sheabunge sheabunge commented Jul 29, 2026

Copy link
Copy Markdown
Member

Recreation of #414.

Outstanding issues:

  • (pro) bundle > snippets: there is no card view for snippets in a bundle
  • (pro) inside a bundle: Back to all bundles doesn't go back
  • (pro) in blueprints: grid/list is not right aligned
  • (pro) in blueprints: 1. pro badge style is wrong; 2. pro badge is unnecessary
  • (pro) in blueprints: view bundle is button size is wrong, category is not a filtering link, missing divider in the card
  • (pro) community cloud > bundles tab is missing the count
  • (pro) settings > Account: I would rename it to "License" to not confuse with cloud account
  • (core/pro) whats new red-dot indicator needs full implementation (planned)
  • (core/pro) mobile/tablet view need refinement/implementation (planned)
  • (core/pro) card view > preview modal, snippet type chip is misaligned
  • (core/pro) community cloud > preview modal: also should have quick action buttons
  • (core/pro) community cloud page could use a loading state notice (like pro > community > bundles tab)
  • (cloud) featured bundles endpoint should exclude bundles with 0 snippets in it, any "test" named bundles, and perhaps also bundles without descriptions

imantsk and others added 30 commits July 14, 2026 13:14
@code-snippets-bot

Copy link
Copy Markdown
Contributor
  • Medium — src/js/components/ManageMenu/CommunityCloud/CloudSearch.tsx:133: A single failed request rejects the whole bulk download before the results are refreshed, even though other requests may already have created new local snippets. Those successful rows remain selected and downloadable, so retrying can create duplicates. Settle every request, refresh or update successful rows, and report failures before resolving the bulk action.

Comment thread src/css/common/list-table/_layout.scss Outdated
Comment thread src/css/common/list-table/_layout.scss Outdated
Comment thread src/php/Settings/Version_Switch.php Outdated
public static function render_version_switch_warning(): void {
?>
<div id="version-switch-warning" class="notice notice-warning" style="display: none; margin-top: 20px;">
<div id="version-switch-warning" class="notice code-snippets-notice notice-warning" style="display: none; margin-top: 20px;">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Add role="region" and aria-label here.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

also, replace inline margin-top with margin-block-start.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@ramiy Added the role and updated the CSS. What should the label be? There's already text within the element explaining what it is for.

Comment thread src/css/common/_badges.scss Outdated
Comment thread src/css/common/list-table/_layout.scss Outdated
@imantsk imantsk added the build Adding this label will trigger the zip build action label Jul 30, 2026
@code-snippets-bot

code-snippets-bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Download and install

📦 code-snippets.4.0.0-beta.2.zip


const newUrl = buildUrl(window.CODE_SNIPPETS.urls.edit, { id: response.id })
window.history.pushState({}, document.title, newUrl)
window.history.replaceState({}, document.title, newUrl)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think pushState is better here – it allows the 'add new' page to remain in their history.


case 'description':
return ( null === $value ) ? '' : $value;
return is_scalar( $value ) ? wp_kses_post( (string) $value ) : '';

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This conversion belongs closer to when the output is actually rendered IMO.

Comment thread src/php/Settings/Version_Switch.php Outdated
public static function render_version_switch_warning(): void {
?>
<div id="version-switch-warning" class="notice notice-warning" style="display: none; margin-top: 20px;">
<div id="version-switch-warning" class="notice code-snippets-notice notice-warning" style="display: none; margin-top: 20px;">

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@ramiy Added the role and updated the CSS. What should the label be? There's already text within the element explaining what it is for.

@sheabunge
sheabunge merged commit 74aba6f into core-beta Jul 31, 2026
8 checks passed
@sheabunge
sheabunge deleted the fix/166-ui-review-fixes-updated/core branch July 31, 2026 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Adding this label will trigger the zip build action

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants