Show turning age on birthday chips in Dashboard Birthdays & Anniversaries card #239
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nidde/parenting-tool!239
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "copilot/add-age-to-birthdays-anniversaries"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The "Within 90 days" and "Within a year" birthday chips on the Dashboard showed only the person's name, with no indication of the age they're turning — even though
turning_agewas already present in the API response.Description
AnnualEventsSummaryCard.vue: AddedchipLabel(event)helper — returns"{name}, {age}yo"for birthdays whereturning_age !== null, falls back toevent.nameotherwisechipLabel(event)in place of bareevent.namesubtitleText())turning_agewas already included in the response payloadmain(resolvedDEVLOG.mdconflict by retaining both the "Time-Until" entry frommainand the "Age on Birthday Chips" entry from this branch)Type of Change
Testing
Code Quality
CI/CD Checks
Additional Notes
Pure frontend change. The
turning_agefield isnullfor anniversary events and birthdays without a known birth year, so non-birthday chips and age-unknown birthdays are unaffected.Comment
@coderabbitai helpto get the list of available commands and usage tips.@copilot resolve the merge conflicts in this pull request
Done (
242e5c3). The only conflict was inDEVLOG.mdwhere both this branch andmainhad added new entries at the top of[1.CURRENT]— resolved by keeping both entries.CHANGELOG.mdandAnnualEventsSummaryCard.vuemerged cleanly.Pull request overview
Adds the turning age to birthday “Within 90 days” and “Within a year” chips on the Dashboard, leveraging the existing
turning_agefield already returned by the API.Changes:
chipLabel(event)helper to format birthday chip labels as"{name}, {age}yo"whenturning_ageis present.chipLabel(event)instead ofevent.name.Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
chipLabel()and uses it in upcoming birthday chip rendering.@ -31,6 +31,9 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), andThe UI element being updated in
AnnualEventsSummaryCard.vueis a chip (<v-chip>), but the changelog calls them “pills”. For consistency (and easier searching across docs/PRs), consider updating this entry to use the same term (“chips”) used elsewhere in the code and PR description.