Feature/bej 125 add dog specific kokeet laaja page#316
Merged
asku1990 merged 13 commits intoJun 25, 2026
Conversation
Add a dedicated dog-specific Kokeet laaja view from the dog profile, with legacy-style trial rows, clipboard copy support, and responsive desktop/mobile layouts. The page now carries trial type and class size through the profile DTO so sijoitus can be rendered as 1 / 12, KK, or PK in the laaja table. Files: - CHANGELOG.md - apps/web/app/(public)/beagle/dogs/[dogId]/kokeet-laaja/page.tsx - apps/web/components/beagle-dog-profile/__tests__/beagle-dog-profile-page.test.ts - apps/web/components/beagle-dog-profile/__tests__/dog-profile-trials-card.test.ts - apps/web/components/beagle-dog-profile/__tests__/dog-profile-trials-laaja-page.test.ts - apps/web/components/beagle-dog-profile/beagle-dog-profile-page.tsx - apps/web/components/beagle-dog-profile/dog-profile-trials-card.tsx - apps/web/components/beagle-dog-profile/dog-profile-trials-laaja-page-container.tsx - apps/web/components/beagle-dog-profile/dog-profile-trials-laaja-page.tsx - apps/web/components/beagle-dog-profile/index.ts - apps/web/lib/i18n/messages/beagle/dogs/profile.ts - apps/web/lib/public/beagle/dogs/profile/profile-route.ts - docs/app-usage-and-features.md - docs/features/beagle-dog-profile.md - packages/contracts/dogs/profile/beagle-profile.ts - packages/db/trials/get-beagle-trials-for-dog.ts - packages/db/trials/types.ts - packages/server/dogs/profile/get-beagle-dog-profile.ts Ref BEJ-125
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Code Review SummaryStatus: No Issues Found | Recommendation: Merge OverviewAll previously identified issues have been addressed in the latest commits:
Files Reviewed (6 files)
Previous Review Summaries (6 snapshots, latest commit 40adb21)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 40adb21)Status: No Issues Found | Recommendation: Merge Files Reviewed (6 files)
Previous review (commit 87da94f)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (10 files)
Fix these issues in Kilo Cloud Previous review (commit 30ce98a)Status: No Issues Found | Recommendation: Merge Files Reviewed (5 files)
Previous review (commit cf01648)Status: No Issues Found | Recommendation: Merge Files Reviewed (1 file)
Previous review (commit 2d89c2f)Status: 2 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
SUGGESTION
Files Reviewed (20 files)
Fix these issues in Kilo Cloud Previous review (commit cee91d9)Status: 1 Issue Found | Recommendation: Address before merge Overview
Issue Details (click to expand)WARNING
Files Reviewed (3 files)
Reviewed by laguna-m.1-20260312:free · Input: 849K · Output: 3.9K · Cached: 235.1K |
Adds a dedicated dog-trials read path for /beagle/dogs/[dogId]/kokeet-laaja so the laaja page no longer loads the full dog profile. The new flow uses an HTTP route handler, a smaller dog-trials DTO, and coverage tests for the route, hook, service, and repository. It keeps the existing profile page flow intact. Files: - apps/web/app/api/beagle/dogs/[dogId]/trials/route.ts - apps/web/app/api/beagle/dogs/[dogId]/trials/__tests__/route.test.ts - apps/web/queries/public/beagle/dogs/profile/use-beagle-dog-trials-query.ts - apps/web/queries/public/beagle/dogs/profile/dog-trials-query-keys.ts - apps/web/queries/public/beagle/dogs/profile/__tests__/use-beagle-dog-trials-query.test.ts - apps/web/components/beagle-dog-profile/dog-profile-trials-laaja-page-container.tsx - apps/web/components/beagle-dog-profile/dog-profile-trials-laaja-page.tsx - packages/server/dogs/profile/get-beagle-dog-trials.ts - packages/server/dogs/profile/__tests__/get-beagle-dog-trials.test.ts - packages/db/dogs/profile/get-beagle-dog-trials.ts - packages/db/dogs/profile/__tests__/get-beagle-dog-trials.test.ts - packages/contracts/dogs/profile/beagle-profile.ts - packages/contracts/dogs/index.ts - packages/contracts/index.ts - packages/db/dogs/index.ts - packages/db/index.ts - packages/server/dogs/index.ts - packages/server/dogs/search/service.ts - apps/web/queries/public/beagle/dogs/index.ts Ref BEJ-125
Move dog trials normalization out of packages/db so the repository layer returns raw persistence values and the server layer owns DTO shaping. Keep award formatting, judge fallback, and date/decimal conversion in the service. Files: - packages/db/dogs/profile/get-beagle-dog-trials.ts - packages/db/dogs/profile/tests/get-beagle-dog-trials.test.ts - packages/server/dogs/profile/get-beagle-dog-trials.ts - packages/server/dogs/profile/tests/get-beagle-dog-trials.test.ts Ref BEJ-125
This matches the staged change set best: - removes the duplicate dog-trials DB query - composes dog profile trials from the existing trials repo in packages/server - moves the shared wide-view formatter into apps/web/lib - updates clipboard output to reuse the same placement formatting - adds focused formatter coverage Files: - apps/web/components/beagle-dog-profile/dog-profile-trials-laaja-table.tsx - apps/web/lib/public/beagle/dogs/profile/__tests__/trials-laaja-formatters.test.ts - apps/web/lib/public/beagle/dogs/profile/trials-laaja-formatters.ts - apps/web/lib/public/beagle/trials/clipboard.ts - packages/db/dogs/index.ts - packages/db/dogs/profile/__tests__/get-beagle-dog-trials.test.ts - packages/db/dogs/profile/get-beagle-dog-trials.ts - packages/db/index.ts - packages/server/dogs/profile/__tests__/get-beagle-dog-trials.test.ts - packages/server/dogs/profile/get-beagle-dog-trials.ts Ref BEJ-125
This matches the staged change set: - adds a minimal dog identity repo - switches the dog-trials service to use it instead of the full profile graph - keeps the full profile path unchanged - updates the related tests and exports Files: - packages/db/dogs/index.ts - packages/db/dogs/profile/__tests__/get-beagle-dog-profile-identity.test.ts - packages/db/dogs/profile/get-beagle-dog-profile-identity.ts - packages/db/index.ts - packages/server/dogs/profile/__tests__/get-beagle-dog-trials.test.ts - packages/server/dogs/profile/get-beagle-dog-trials.ts Ref BEJ-125
This matches the staged change set best: - moves the shared wide-view formatter into the trial domain - updates the dog-profile table and clipboard to import from the shared trial formatter - updates the related test - includes the architecture doc clarification that supports this layout Files: - ARCHITECTURE.md - apps/web/components/beagle-dog-profile/dog-profile-trials-laaja-table.tsx - apps/web/lib/public/beagle/dogs/profile/__tests__/trials-laaja-formatters.test.ts - apps/web/lib/public/beagle/trials/clipboard.ts - apps/web/lib/public/beagle/trials/display-formatters.ts Ref BEJ-125
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
Adds a “Kokeet laaja” page to the public dog profile, allowing users to view all trial results in a dedicated page instead of the compact profile section.
Changes
Notes
To avoid loading the full dog profile for this page, the implementation uses a dedicated dog trials endpoint that returns only the data required by the detailed trials view.
ref bej-125