Implemented phase 3 for the POC prototype in the Website service.

This commit is contained in:
javier committed 2026-09-21 12:11:25 +02:00
1 parent b1ceed7790
commit 0dc3fe6bea
29 files changed
+4089 -66

No files matched your search

@@ -40,6 +40,14 @@ extension String {
/// The want list.
static let wants = "/wants"
/// The path an offer is answered at.
/// - Parameter id: the offer's identifier.
static func answer(
offer id: UUID
) -> String {
"\(sellerDashboard)/offers/\(id.uuidString.lowercased())"
}
/// The path buying a listing outright starts at.
/// - Parameter slug: the listing's URL slug.
static func buy(
@@ -48,6 +56,14 @@ extension String {
"\(listing(slug))/buy"
}
/// The path of a conversation.
/// - Parameter id: the conversation's identifier.
static func conversation(
_ id: UUID
) -> String {
"\(messages)/\(id.uuidString.lowercased())"
}
/// The path a gated action leads to: the action itself when signed in, else the sign-in screen, returning to where the action was taken.
/// - Parameters:
/// - path: the action's own path.
@@ -93,6 +109,14 @@ extension String {
"\(listing(slug))/offer"
}
/// The path of a sale record.
/// - Parameter number: the record's number.
static func sale(
_ number: Int
) -> String {
"/sales/\(number)"
}
/// The path of a shop's public screen.
/// - Parameter slug: the shop's URL slug.
static func shop(