diff --git a/bskyweb/cmd/bskyweb/passdata.go b/bskyweb/cmd/bskyweb/passdata.go index 7622787624..5df50ed52b 100644 --- a/bskyweb/cmd/bskyweb/passdata.go +++ b/bskyweb/cmd/bskyweb/passdata.go @@ -80,11 +80,13 @@ func BuildPassJSON(did, handle, theme, teamID string) ([]byte, error) { LabelColor: "rgb(255, 255, 255)", BackgroundColor: ThemeBackgroundRGB(theme), StoreCard: storeCardFields{ - PrimaryFields: []passField{{Key: "handle", Label: "Handle", Value: atHandle}}, - SecondaryFields: []passField{{Key: "url", Label: "Profile", Value: "bsky.app/profile/" + handle}}, + PrimaryFields: []passField{}, + SecondaryFields: []passField{ + {Key: "handle", Label: "", Value: atHandle}, + }, BackFields: []passField{ - {Key: "about", Label: "About", Value: "Scan the QR to open this profile in any browser, or share the URL below."}, - {Key: "url2", Label: "Profile URL", Value: profileURL}, + {Key: "about", Label: "About", Value: "Scan the QR code to view this Bluesky profile."}, + {Key: "url", Label: "Profile URL", Value: profileURL}, }, }, Barcodes: []barcode{{ diff --git a/bskyweb/cmd/bskyweb/testdata/pass-dawn.golden.json b/bskyweb/cmd/bskyweb/testdata/pass-dawn.golden.json index a75f1d8a38..ca3d482839 100644 --- a/bskyweb/cmd/bskyweb/testdata/pass-dawn.golden.json +++ b/bskyweb/cmd/bskyweb/testdata/pass-dawn.golden.json @@ -10,28 +10,22 @@ "labelColor": "rgb(255, 255, 255)", "backgroundColor": "rgb(255, 109, 190)", "storeCard": { - "primaryFields": [ - { - "key": "handle", - "label": "Handle", - "value": "@alice.bsky.social" - } - ], + "primaryFields": [], "secondaryFields": [ { - "key": "url", - "label": "Profile", - "value": "bsky.app/profile/alice.bsky.social" + "key": "handle", + "label": "", + "value": "@alice.bsky.social" } ], "backFields": [ { "key": "about", "label": "About", - "value": "Scan the QR to open this profile in any browser, or share the URL below." + "value": "Scan the QR code to view this Bluesky profile." }, { - "key": "url2", + "key": "url", "label": "Profile URL", "value": "https://bsky.app/profile/alice.bsky.social" } diff --git a/bskyweb/cmd/bskyweb/testdata/pass-day.golden.json b/bskyweb/cmd/bskyweb/testdata/pass-day.golden.json index fc061ff357..8a388bc65d 100644 --- a/bskyweb/cmd/bskyweb/testdata/pass-day.golden.json +++ b/bskyweb/cmd/bskyweb/testdata/pass-day.golden.json @@ -10,28 +10,22 @@ "labelColor": "rgb(255, 255, 255)", "backgroundColor": "rgb(117, 175, 255)", "storeCard": { - "primaryFields": [ - { - "key": "handle", - "label": "Handle", - "value": "@alice.bsky.social" - } - ], + "primaryFields": [], "secondaryFields": [ { - "key": "url", - "label": "Profile", - "value": "bsky.app/profile/alice.bsky.social" + "key": "handle", + "label": "", + "value": "@alice.bsky.social" } ], "backFields": [ { "key": "about", "label": "About", - "value": "Scan the QR to open this profile in any browser, or share the URL below." + "value": "Scan the QR code to view this Bluesky profile." }, { - "key": "url2", + "key": "url", "label": "Profile URL", "value": "https://bsky.app/profile/alice.bsky.social" } diff --git a/bskyweb/cmd/bskyweb/testdata/pass-dusk.golden.json b/bskyweb/cmd/bskyweb/testdata/pass-dusk.golden.json index 00a1448a01..14eff5eb7c 100644 --- a/bskyweb/cmd/bskyweb/testdata/pass-dusk.golden.json +++ b/bskyweb/cmd/bskyweb/testdata/pass-dusk.golden.json @@ -10,28 +10,22 @@ "labelColor": "rgb(255, 255, 255)", "backgroundColor": "rgb(177, 90, 162)", "storeCard": { - "primaryFields": [ - { - "key": "handle", - "label": "Handle", - "value": "@alice.bsky.social" - } - ], + "primaryFields": [], "secondaryFields": [ { - "key": "url", - "label": "Profile", - "value": "bsky.app/profile/alice.bsky.social" + "key": "handle", + "label": "", + "value": "@alice.bsky.social" } ], "backFields": [ { "key": "about", "label": "About", - "value": "Scan the QR to open this profile in any browser, or share the URL below." + "value": "Scan the QR code to view this Bluesky profile." }, { - "key": "url2", + "key": "url", "label": "Profile URL", "value": "https://bsky.app/profile/alice.bsky.social" } diff --git a/bskyweb/cmd/bskyweb/testdata/pass-night.golden.json b/bskyweb/cmd/bskyweb/testdata/pass-night.golden.json index 7bbbc96cd9..8bcfd7a318 100644 --- a/bskyweb/cmd/bskyweb/testdata/pass-night.golden.json +++ b/bskyweb/cmd/bskyweb/testdata/pass-night.golden.json @@ -10,28 +10,22 @@ "labelColor": "rgb(255, 255, 255)", "backgroundColor": "rgb(0, 21, 51)", "storeCard": { - "primaryFields": [ - { - "key": "handle", - "label": "Handle", - "value": "@alice.bsky.social" - } - ], + "primaryFields": [], "secondaryFields": [ { - "key": "url", - "label": "Profile", - "value": "bsky.app/profile/alice.bsky.social" + "key": "handle", + "label": "", + "value": "@alice.bsky.social" } ], "backFields": [ { "key": "about", "label": "About", - "value": "Scan the QR to open this profile in any browser, or share the URL below." + "value": "Scan the QR code to view this Bluesky profile." }, { - "key": "url2", + "key": "url", "label": "Profile URL", "value": "https://bsky.app/profile/alice.bsky.social" }