Consolidate duplicate Pet models — remove care/data/models/pet.dart#2
Draft
syed-reza98 wants to merge 5 commits into
Draft
Consolidate duplicate Pet models — remove care/data/models/pet.dart#2syed-reza98 wants to merge 5 commits into
syed-reza98 wants to merge 5 commits into
Conversation
Remove the orphaned care/data/models/pet.dart (Freezed) and its generated files — no file in the project imported them. Migrate their unique fields (dateOfBirth, activityLevel, ageInYears/ageLabel getters, ActivityLevel enum) into the plain-Dart pet_profile Pet model so the capability is preserved. flutter analyze reports 0 issues. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Collaborator
|
@claude[agent] resolve the merge conflicts in this pull request |
Collaborator
|
@claude resolve the merge conflicts in this pull request |
Member
Author
|
Resolved: merged origin/main into this branch, reconciling the |
…e Pet. Co-authored-by: Cursor <cursoragent@cursor.com>
Refresh continual-learning hook state and update AGENTS.md. The .cursor/hooks/state/continual-learning-index.json was replaced with an updated transcript index containing new agent-transcript entries. .cursor/hooks/state/continual-learning.json updates lastRunAtMs, lastTranscriptMtimeMs, lastProcessedGenerationId and resets turnsSinceLastRun to 1 to reflect recently processed transcripts. AGENTS.md: add note about Shell Pets routing (PetProfileScreen mounted at /home and per-pet social profiles at /social/profile/:petId; AppHeader and pet switcher shortcuts use /home).
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
care/data/models/pet.dartFreezed model was completely unreferenced — no file outside its own generated files imported it. Deleted it along with itspet.freezed.dartandpet.g.dartartifacts.pet_profilePet model (the single source of truth):dateOfBirth,activityLevel,ActivityLevelenum, and the computedageInYears/ageLabel/_monthsSinceBirthgetters.pet_profilePet model remains a plain Dart class with manualcopyWith/fromJson/toJson.What changed
lib/features/pet_profile/data/models/pet.dartdateOfBirth,activityLevel,ActivityLevelenum, age computed getterslib/features/care/data/models/pet.dartlib/features/care/data/models/pet.freezed.dartlib/features/care/data/models/pet.g.dartTest plan
flutter analyze— No issues found