A4A Proof of Concept: Resources Center v2 (UI only) - #113578
Draft
jeffgolenski wants to merge 1 commit into
Draft
Conversation
Proof-of-concept for the Resources "Learn" page: stage navigation, product/content-type/audience filtering, search, resource cards, an in-portal preview modal, and consolidated "top resources" as a highlighted, labeled item within the filtered browse. UI-only, mock data, no backend. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
WordPress.com Automattic for Agencies |
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.
Do not merge.
Proof-of-concept for the Resources "Learn" page: stage navigation, product/content-type/audience filtering, search, resource cards, an in-portal preview modal, and consolidated "top resources" as a highlighted, labeled item within the filtered browse. UI-only, mock data, no backend.
Works for both https://agencies.automattic.com/resources-and-tools/learn & https://agencies-beta.automattic.com/resources/learn (which we're moving towards)
Linear project
Proposed Changes
A UI-only prototype of an enhanced browse experience for the Resources → Learn
page (
/resources/learn). All content now lives in a single, filterable view.DataViews), combinable with the stage selection, with active-filter chips + reset.Badge), and a Preview action.Modal.Badge, a subtle blue highlight, and sorts those items first in every view (All and each filter).browse-resources-data.ts. No backend or API wiring.Reuses existing design-system components throughout (
@automattic/uiBadge,@wordpress/dataviews,ToggleGroupControl, the dashboardCard,Modal, and layout primitives). The only new CSS is one small scoped module for the card layout + the top-resource highlight.Screenshots
Why are these changes being made?
To communicate the intended direction for the Resources browse experience as something clickable rather than a written spec. It demonstrates filtering, search, card layout, the preview modal, and how "top resources" can be folded into one browse surface — a shared reference for design and engineering to react to.
Testing Instructions
Dashboard (A4A)
yarn start-dashboard(or the full A4A dev server) and openmy.a4a.localhost:3000/resources/learn.Esc, or Close.Screenshots
Notes / open items (POC)
resource-center.tsx, so it affects both the new dashboard page and the current production A4A page. No feature flag yet — add one if prod should stay unchanged for now.info(blue) intent — the same as the audience badge — becauseBadgehas no dedicated "featured" variant. A new variant would read better.resource-section.tsx, the oldresource-card.tsx,browse-all-resources.tsx,format-resources.tsx, and theuse-*hooks) is now unused and would be removed in a real implementation.agencyResourcesQueryis no longer rendered (the route loader still prefetches it).Pre-merge Checklist