Skip to content

Conversation

calvincestari
Copy link
Member

Part 2 - Make the user trips badge automatically update when a trip is booked or cancelled.

  1. Add navigation bar badge for user booked trips count (reuse existing icon + badge).
  2. Add query watcher to watch list of booked trips (me query).
  3. Update the cache after successful book/cancel trip mutation response.
  4. Define local cache mutation to update user list of booked trips.

@calvincestari calvincestari changed the base branch from main to 2024-summit-workshop/part-1 September 3, 2024 22:14
@calvincestari calvincestari force-pushed the 2024-summit-workshop/part-2 branch from 3d2f4b1 to 1513389 Compare September 3, 2024 23:32
}
}

func widthMultplier() -> Double {
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like there should be a way to just use the label's size here, but I don't know enough SwiftUI. Feels like there should be an equivalent to UILabel.sizeToFit().

Copy link
Contributor

Choose a reason for hiding this comment

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

I think if you set the background of the Text as the capsule, that should automatically adjust the size.

Also guess who's still subscribed to this repo 🙃

Copy link
Contributor

Choose a reason for hiding this comment

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

Hahaha Hi Ellen! Thanks for the tip!

@calvincestari calvincestari marked this pull request as draft September 4, 2024 18:57
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.

3 participants