Skip to content

Ability test page: Better i18n, add copy functionality.#256

Merged
jeffpaul merged 3 commits intoWordPress:developfrom
juanfra:tweak/abilities-test-improvements
Mar 2, 2026
Merged

Ability test page: Better i18n, add copy functionality.#256
jeffpaul merged 3 commits intoWordPress:developfrom
juanfra:tweak/abilities-test-improvements

Conversation

@juanfra
Copy link
Member

@juanfra juanfra commented Feb 25, 2026

What?

Adding a few UX improvements to the single ability test page. Wrapping the list in proper HTML element, adds copy functionality for the schema reference, and fixes icon alignment within the copy button (since the reskin).

Why?

Lists weren't wrapped in proper HTML, making i18n and accessibility harder. Also adding the copy button to make it easier to copy contents and adding cohesion with the other screens.

How?

  • Wrapped list items in <ol> tag for proper semantic structure and better i18n support
  • Added copy button functionality to Input Schema Reference section
  • Adjusted dashicon vertical alignment in copy buttons

Testing Instructions

Testing Instructions

  1. Go to a single ability test page (Tools > Abilities explorer > pick any and click test)
  2. Verify the list displays correctly with proper numbering
  3. Test the copy button on the Input Schema Reference
  4. Verify the dashicon in the copy button is properly aligned vertically

Screenshots or screencast

Before After
abilities-test-before abilities-test-after
Open WordPress Playground Preview

@github-actions
Copy link

github-actions bot commented Feb 25, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: juanfra <juanfra@git.wordpress.org>
Co-authored-by: dkotter <dkotter@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@jeffpaul jeffpaul added the props-bot Manually triggers Props Bot to ensure the list of props is up to date. label Mar 2, 2026
@github-actions github-actions bot removed the props-bot Manually triggers Props Bot to ensure the list of props is up to date. label Mar 2, 2026
@codecov
Copy link

codecov bot commented Mar 2, 2026

Codecov Report

❌ Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.91%. Comparing base (36adad9) to head (857ccef).
⚠️ Report is 11 commits behind head on develop.

Files with missing lines Patch % Lines
...udes/Experiments/Abilities_Explorer/Admin_Page.php 0.00% 6 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop     #256      +/-   ##
=============================================
+ Coverage      55.87%   55.91%   +0.04%     
  Complexity       509      509              
=============================================
  Files             32       32              
  Lines           2613     2611       -2     
=============================================
  Hits            1460     1460              
+ Misses          1153     1151       -2     
Flag Coverage Δ
unit 55.91% <0.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jeffpaul jeffpaul merged commit 530ae7e into WordPress:develop Mar 2, 2026
18 of 25 checks passed
@jeffpaul jeffpaul added this to the 0.4.0 milestone Mar 2, 2026
@juanfra juanfra deleted the tweak/abilities-test-improvements branch March 2, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants