Skip to content

Conversation

@rolandgeider
Copy link
Member

Proposed Changes

Adds earned trophies to the dashboard as well as a general overview, showing progress

Current screenshots:
Bildschirmfoto 2025-12-19 um 22 31 12

Bildschirmfoto 2025-12-19 um 21 06 40

Related Issue(s)

Closes #1166

@rolandgeider rolandgeider changed the title Feature/trophies Adds UI for trophies Dec 19, 2025
@coveralls
Copy link
Collaborator

coveralls commented Dec 19, 2025

Coverage Status

coverage: 75.012% (+0.1%) from 74.908%
when pulling d33815a on feature/trophies
into 5bb00a6 on master.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a trophy/achievements system to the dashboard, allowing users to view earned trophies and track their progress toward unlocking new ones. The feature integrates with the existing configurable dashboard and adds a dedicated trophies detail page.

Changes:

  • Added trophy models, services, and queries for fetching and managing trophies
  • Created UI components for displaying trophies on the dashboard and a dedicated trophies page
  • Added routing and navigation support for the trophies feature

Reviewed changes

Copilot reviewed 24 out of 24 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/utils/url.ts Added TROPHIES link enum and route mapping with organizational comments
src/utils/consts.ts Added trophy-related API paths and query keys with improved organization
src/tests/trophies/trophiesTestData.ts Test data for trophies, user trophies, and trophy progression
src/routes.tsx Added routes for the trophies detail page
src/components/Trophies/services/* Service layer for fetching trophies, user trophies, and progression data
src/components/Trophies/queries/trophies.ts React Query hooks for trophies data
src/components/Trophies/models/* Trophy data models with JSON adapters and tests
src/components/Trophies/components/TrophiesDetail.tsx Main trophies page showing all trophies with progress
src/components/Dashboard/TrophiesCard.tsx Dashboard widget displaying earned trophies
src/components/Dashboard/ConfigurableDashboard.tsx Integration of trophies widget into dashboard
src/components/Dashboard/DashboardCard.tsx Support for optional empty title and formatting cleanup
src/components/Dashboard/MeasurementCard.tsx Added category name display
src/components/Dashboard/WeightCard.test.tsx Removed redundant ResizeObserver mock
public/locales/en/translation.json Added trophies translation key

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

import { DashboardCard } from "./DashboardCard";

export const TrophiesCard = () => {
const { t } = useTranslation();
Copy link

Copilot AI Jan 16, 2026

Choose a reason for hiding this comment

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

Unused variable t.

Suggested change
const { t } = useTranslation();

Copilot uses AI. Check for mistakes.
rolandgeider and others added 6 commits January 16, 2026 16:55
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Only the outermost element needs one

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@rolandgeider rolandgeider merged commit 2532030 into master Jan 18, 2026
5 checks passed
@rolandgeider rolandgeider deleted the feature/trophies branch January 18, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement trophies

3 participants