-
Notifications
You must be signed in to change notification settings - Fork 166
Content Production Dashboard: Adding metrics section [MAPS-123] #10351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
FBanfi
wants to merge
22
commits into
content-production-dashboard
Choose a base branch
from
content-production-dashboard-123
base: content-production-dashboard
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Content Production Dashboard: Adding metrics section [MAPS-123] #10351
FBanfi
wants to merge
22
commits into
content-production-dashboard
from
content-production-dashboard-123
Conversation
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
…ashboard-123 # Conflicts: # apps/content-production-dashboard/src/locations/Page.styles.ts # apps/content-production-dashboard/src/locations/Page.tsx # apps/content-production-dashboard/test/locations/Page.spec.tsx
JuliRossi
reviewed
Jan 5, 2026
apps/content-production-dashboard/src/metrics/MetricsCalculator.ts
Outdated
Show resolved
Hide resolved
JuliRossi
reviewed
Jan 5, 2026
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.
Purpose
This update adds the metrics section as well as the extraction of the main logic, so we can reuse it in both the Home and Page locations.
Also, in this PR we include the connection between the fetch for the scheduled actions and the UI.
Approach
IMP: In this PR the refresh button was removed, it does the same as a navigator refresh. In other apps (Homebase) we removed this type of button for that reason, so I follow the same approach here.
Implemented a metrics dashboard that calculates and displays 5 content production metrics from Contentful entries and scheduled actions:
The metrics use configurable time periods from installation parameters (
needsUpdateMonths,recentlyPublishedDays,timeToPublishDays) and are rendered as styled cards.The
MetricsCalculatorclass performs all calculations in the constructor, and theDashboardcomponent is reusable across both Page and Home locations.Testing steps
Automated tests added.
With entries and scheduled actions:
Without any entry or scheduled actions:
With negative published percentage:
How the flow works:
Grabacion.de.pantalla.2025-12-18.a.la.s.4.27.55.p.m.mov
Scheduled actions:
Grabacion.de.pantalla.2026-01-05.a.la.s.2.46.51.p.m.mov
Breaking Changes
N/A
Dependencies and/or References
Link to MAPS-123
Deployment
N/A