Repository navigation
Frontend: analytics annotations, data-quality queue, and offline pet availability - #1187
Merged
Merged
Conversation
|
@Joyyyb Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Summary
Frontend: analytics annotations, data-quality queue, and offline pet availability
What was solved
#1138 — [Frontend] Add analytics chart annotations for policy changes
Add a frontend analytics chart annotation feature for admins to mark deployment/policy changes on time series, with backend-owned authorization/consent gating visibility, plus focused tests covering primary, empty/denied, and boundary/failure flows with accessible keyboard and screen-reader support.
Addressed:
#1139 — [Frontend] Add data-quality queue for incomplete records
Add a role-filtered data-quality queue in petChain-Frontend that surfaces records missing required fields and lets users navigate directly to the relevant correction form, with backend-owned authorization/consent, focused tests for primary/empty/denied/boundary flows, and accessible keyboard/screen-reader interaction.
Addressed:
#1140 — [Frontend] Add user-managed offline availability for selected pets
Add a frontend feature that lets users pin selected pet summaries and recent records for offline availability, displays estimated storage cost, and allows clearing a single pet's cache without affecting other accounts. Implement in the petChain-Frontend layer (hook/component/client), keep authorization/consent decisions backend-owned, add focused tests for primary flow, empty/denied states, and boundary/failure cases, and ensure privacy-by-default plus keyboard and screen-reader accessibility.
Addressed:
Changes
frontend/src/hooks/useOfflinePets.ts(create)frontend/src/lib/offlineCache.ts(create)README.md(modify)frontend/src/components/OfflinePetsManager.tsx(create)frontend/src/hooks/__tests__/useOfflinePets.test.ts(create)Approach
Issues
Closes #1138
Closes #1139
Closes #1140