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.
This pull request primarily focuses on enhancing the functionality of the
PetModel
class and the user interface of theLostPet.razor
page in thePetSpotR
application. The key changes include the addition of aLocation
property to thePetModel
class, the initialization of this property in thePetModel
constructor, the inclusion of more pet types in theLostPet.razor
page, and the introduction of a pet location selection feature on the same page.Here are the main changes in detail:
Changes to
PetModel
class:src/frontend/PetSpotR/Data/PetModel.cs
: A newLocation
property was added to thePetModel
class. This property will hold the location information of the pet.src/frontend/PetSpotR/Data/PetModel.cs
: In thePetModel
constructor, theLocation
property was initialized to an empty string. This ensures that each new instance ofPetModel
has a default location value.Updates to
LostPet.razor
page:src/frontend/PetSpotR/Pages/LostPet.razor
: More options were added to the pet type selection dropdown. This allows users to select from a wider variety of pet types, including 'Bird', 'Rabbit', and 'Other'.src/frontend/PetSpotR/Pages/LostPet.razor
: A new section was added for users to specify the location where they lost their pet. The location can be selected from a dropdown list of suburbs in Auckland, New Zealand. This feature uses theLocation
property of thePetModel
class.