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

Improvement - updated the DashboardView row appearance #361

Merged

Conversation

ashabooga
Copy link
Contributor

What it Does

How I Tested

  • Add a list of steps to show the functionality of your feature
    For example:
  • Run the application
  • Add a vehicle in the Settings tab
  • Tap the (+) button in the Dashboard tab and enter maintenance information
  • See the view

Notes

  • No notes

Screenshot

Simulator Screenshot - iPhone 16 Pro - 2024-10-24 at 22 38 46

@ashabooga ashabooga reopened this Oct 25, 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! an extra thing to do is delete the stale strings from Localizable.xcstrings, because they no longer are used, and don't need to be translated

@@ -30,20 +30,24 @@ struct DashboardView: View {
NavigationStack {
List {
ForEach(viewModel.searchedEvents) { event in
VStack(alignment: .leading, spacing: 8) {
VStack(alignment: .leading) {
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
VStack(alignment: .leading) {
VStack(alignment: .leading, spacing: 4) {

changing the spacing to 4, just cause personal preference when I was looking at it in the simulator


let vehicleName = viewModel.vehicles.first { $0.id == event.vehicleID }?.name
if let vehicleName {
Text("\(vehicleName) on \(event.date, formatter: self.eventDateFormat)",
comment: "Maintenance list item for a vehicle on a date")
Text("For: \(vehicleName)")
Copy link
Owner

Choose a reason for hiding this comment

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

adding a comment here for accessibility when people are translating this it gives more context about that text

@mikaelacaron mikaelacaron merged commit c210590 into mikaelacaron:dev Oct 27, 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.

IMPROVE - Events on the DashboardView
2 participants