Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VehicleDetailView #362

Merged
merged 4 commits into from
Oct 28, 2024

Conversation

isiko35
Copy link
Contributor

@isiko35 isiko35 commented Oct 25, 2024

What it Does

  • Closes FEATURE - Add VehicleDetailView to the SettingsView #357
  • Added VehicleDetailView to show vehicle details. Also, any edits could be made through the EditVehicleView connection.
  • Updated SettingsView so that each vehicle is tappable to show VehicleDetailView.
  • Updated EditVehicleView so that when a change occur, it optionally notifies the parent view.

How I Tested

  • Run the application
  • Tap the (+) button
  • See this screen
  • Navigate to SettingsView
  • Added a Vehicle
  • Tapped on created vehicle
  • See the screen
  • Tapped on edit to navigate to edit vehicle screen
  • Edited the vehicle
  • See the screen

Notes

  • No bugs or regressions have been observed.

Screenshot

Screenshot 2024-10-25 at 17 15 21

Added VehicleDetailView to show vehicle details. Also, any edits could be made through the EditVehicleView connection.
Updated SettingsView so that each vehicle is tappable to show VehicleDetailView
Updated EditVehicleView so that when a change occur, it optionally notifies the parent view.
@isiko35 isiko35 requested a review from mikaelacaron as a code owner October 25, 2024 13:16
@mikaelacaron mikaelacaron changed the title Add VehicleDetailView for issue #357 Add VehicleDetailView for issue #357 Oct 28, 2024
@mikaelacaron mikaelacaron changed the title Add VehicleDetailView for issue #357 Add VehicleDetailView Oct 28, 2024
Copy link
Owner

@mikaelacaron mikaelacaron left a comment

Choose a reason for hiding this comment

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

great work!! we reviewed this PR live on my YouTube channel

https://youtube.com/live/z1XPr_PCvlE?feature=share

Comment on lines 128 to 133
.frame(maxWidth: .infinity, alignment: .leading)
.contentShape(Rectangle())
.onTapGesture {
selectedVehicle = vehicle
isShowingVehicleDetailView = true
}
Copy link
Owner

Choose a reason for hiding this comment

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

we changed this to be inside a Button as opposed to a onTapGesture because using a Button it's more accessible

@mikaelacaron mikaelacaron merged commit e7a60d2 into mikaelacaron:dev Oct 28, 2024
1 of 2 checks passed
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.

FEATURE - Add VehicleDetailView to the SettingsView
2 participants