Skip to content

v3.1 - ranking card#256

Merged
jkcox merged 11 commits into
jcox-manifestfrom
jcox-ranking-card
Jan 9, 2026
Merged

v3.1 - ranking card#256
jkcox merged 11 commits into
jcox-manifestfrom
jcox-ranking-card

Conversation

@jkcox
Copy link
Copy Markdown
Contributor

@jkcox jkcox commented Dec 30, 2025

@jkcox jkcox changed the base branch from develop to jcox-manifest December 30, 2025 23:36
@jkcox jkcox marked this pull request as draft December 30, 2025 23:36
@jkcox jkcox self-assigned this Dec 30, 2025
@jkcox jkcox added [Type] Enhancement Something new that adds functionality [Type] Gutenberg Issues/PRs related to the current version of the Gutenberg plugin labels Dec 30, 2025
@jkcox jkcox linked an issue Jan 5, 2026 that may be closed by this pull request
@jkcox jkcox marked this pull request as ready for review January 5, 2026 21:46
@jkcox
Copy link
Copy Markdown
Contributor Author

jkcox commented Jan 6, 2026

@copilot
list of props: https://asu.github.io/asu-unity-stack/@asu/unity-react-core/index.html?path=/docs/components-ranking-card--docs

  • update attributes in block.json
  • update edit.js
  • update frontend.js
  • update inspector.js
  • update save.js

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 6, 2026

@jkcox I've opened a new pull request, #259, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 7 commits January 6, 2026 17:59
Co-authored-by: jkcox <8856538+jkcox@users.noreply.github.com>
Co-authored-by: jkcox <8856538+jkcox@users.noreply.github.com>
Co-authored-by: jkcox <8856538+jkcox@users.noreply.github.com>
Update ranking-card block to match unity-react-core RankingCard API
Copy link
Copy Markdown
Contributor Author

@jkcox jkcox left a comment

Choose a reason for hiding this comment

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

tested locally

@jkcox jkcox requested review from wmcconnell and zainabD January 6, 2026 23:58
@wmcconnell
Copy link
Copy Markdown
Contributor

Adding this comment here to record information from the Zoom meeting I had with John during the working session today:

  • The Ranking Cards, in my testing, work just fine and match the standards shown here
  • However, the data layer attributes, such as data-ga-section, etc., are not showing up on the Ranking Card where they should, which is:
    • The button/title that triggers the slide up effect
    • The "Read more" link that appears within the exposed content after it slides up
      • Fun fact: that 'Read more' link does not appear to have any aria-label or aria-labelledby attributes, which a generic link like 'Read more' should have, I believe
  • This is despite the fact that there is some code in there to establish defaults and render those data layer attributes in both the places mentioned above
  • That code, however, utilizes a couple of components, GaEventWrapper and useBaseSpecificFramework that tries to determine (I think) if the component is being rendered "for real" or as Bootstrap HTML. I think this may be to avoid analytics stuff firing in Storybook or wherever, but it may also be preventing the rendering of the data-ga attributes for us as well
  • I tried to trace this in the Unity source code and figure it out, but I wasn't smart enough. I can give it another try but I have already suggested to John to ask CoPilot whey this is happening (which I might do as well)
  • The full, expected HTML output of this block is available! Right here, in fact.
  • That means that, if we can't figure out what's happening here, we could craft an ACF powered block using that HTML and ensure that we can have the correct data layer attributes. Copying and pasting that exact HTML into a customHTML block while on John's branch produced a fully functional (and perhaps better functioning) Ranking Card

Since @jkcox is already aware of our conversation, I'm not leaving this as a formal review with 'Request Changes,` because that makes things slightly more annoying; it would require a request for another review. It does raise the question of whether or not I should do that, however.

@jkcox jkcox merged commit 85b4a13 into jcox-manifest Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Enhancement Something new that adds functionality [Type] Gutenberg Issues/PRs related to the current version of the Gutenberg plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RankingCard

3 participants