Skip to content

Commit b43bf4c

Browse files
Atmosphere explore tab improvements (#12322)
1 parent 1ff1973 commit b43bf4c

90 files changed

Lines changed: 5884 additions & 1350 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
54.9 KB
Loading

‎lexicons.json‎

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,12 @@
270270
"com.atproto.sync.requestCrawl",
271271
"com.atproto.sync.subscribeRepos",
272272
"com.germnetwork.declaration",
273+
"place.stream.badge.defs",
274+
"place.stream.livestream",
275+
"site.standard.document",
276+
"site.standard.publication",
277+
"social.grain.gallery",
278+
"social.grain.photo",
273279
"tools.ozone.inbox.appealActionedSubject",
274280
"tools.ozone.inbox.defs",
275281
"tools.ozone.inbox.getAccountStatus",
@@ -760,7 +766,7 @@
760766
},
761767
"app.bsky.unspecced.getAtmosphereExploreTab": {
762768
"uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.unspecced.getAtmosphereExploreTab",
763-
"cid": "bafyreiez66qb7byto44nzivpn27ykzdgilgpuqogeusypl3mln7wicjnry"
769+
"cid": "bafyreihbh326n4onxitcho3mrbvk5kblz3mexq7i2xjv2g62kvkbye6wzm"
764770
},
765771
"app.bsky.video.defs": {
766772
"uri": "at://did:plc:4v4y5r3lwsbtmsxhile2ljac/com.atproto.lexicon.schema/app.bsky.video.defs",
@@ -1362,6 +1368,66 @@
13621368
"uri": "at://did:plc:qyqmmncrm6qx33kpy7vqndik/com.atproto.lexicon.schema/com.germnetwork.declaration",
13631369
"cid": "bafyreickqsspgkujwucg3low5or64ywjryf44eua6xtszd6zsl2yteumoi"
13641370
},
1371+
"community.lexicon.location.address": {
1372+
"uri": "at://did:plc:mtr7qrqtcyseedx3jyr5o7db/com.atproto.lexicon.schema/community.lexicon.location.address",
1373+
"cid": "bafyreicdvexolyvp6j6yksqiib7hihwktt6ogalbvyzvtkj6ecrtqqw5fq"
1374+
},
1375+
"community.lexicon.location.hthree": {
1376+
"uri": "at://did:plc:mtr7qrqtcyseedx3jyr5o7db/com.atproto.lexicon.schema/community.lexicon.location.hthree",
1377+
"cid": "bafyreic6xmiv4ycbcfvcvj5uu537ytl7hnjazcxf7hhd7g6o6s7p6tonky"
1378+
},
1379+
"place.stream.badge.defs": {
1380+
"uri": "at://did:plc:gqtagsooi75obldmytuow57q/com.atproto.lexicon.schema/place.stream.badge.defs",
1381+
"cid": "bafyreidhldtcylff7awx67jd76miapjz3q4gumtq24opaaw345vznvftwm"
1382+
},
1383+
"place.stream.chat.defs": {
1384+
"uri": "at://did:web:stream.place/com.atproto.lexicon.schema/place.stream.chat.defs",
1385+
"cid": "bafyreieqmxs6sq36qkyptjptaurafwgcs75ysabphvxs2u4kqrcxl4k654"
1386+
},
1387+
"place.stream.chat.pinnedRecord": {
1388+
"uri": "at://did:web:stream.place/com.atproto.lexicon.schema/place.stream.chat.pinnedRecord",
1389+
"cid": "bafyreihhzztor57z6meie6cawiev2q3faanfj66mkipjmvaak7hh2b4hia"
1390+
},
1391+
"place.stream.chat.profile": {
1392+
"uri": "at://did:web:stream.place/com.atproto.lexicon.schema/place.stream.chat.profile",
1393+
"cid": "bafyreifhhyqutckyjkl4epfqhfbsxmq5t5d3glp36i7pj6w5qzfze6ujx4"
1394+
},
1395+
"place.stream.defs": {
1396+
"uri": "at://did:plc:gqtagsooi75obldmytuow57q/com.atproto.lexicon.schema/place.stream.defs",
1397+
"cid": "bafyreigkmglxxmqu47mhvfsjckbc6vzbbdeu2rcu2gfu2jrubauf7vryge"
1398+
},
1399+
"place.stream.livestream": {
1400+
"uri": "at://did:plc:gqtagsooi75obldmytuow57q/com.atproto.lexicon.schema/place.stream.livestream",
1401+
"cid": "bafyreigezmbplvoj53hjr5bkwl75jbd2q6vqx4fcbtwuwv73as3vhwfl3q"
1402+
},
1403+
"site.standard.document": {
1404+
"uri": "at://did:plc:re3ebnp5v7ffagz6rb6xfei4/com.atproto.lexicon.schema/site.standard.document",
1405+
"cid": "bafyreifylc5lfr4vqfzrwdtqm4pnfg7cbra7z4acbgikylqandzefwdeaq"
1406+
},
1407+
"site.standard.publication": {
1408+
"uri": "at://did:plc:re3ebnp5v7ffagz6rb6xfei4/com.atproto.lexicon.schema/site.standard.publication",
1409+
"cid": "bafyreiapvnarfn3nl2wvg27hsylli5zqvou7a74p7od5mu4detprtejapy"
1410+
},
1411+
"site.standard.theme.basic": {
1412+
"uri": "at://did:plc:re3ebnp5v7ffagz6rb6xfei4/com.atproto.lexicon.schema/site.standard.theme.basic",
1413+
"cid": "bafyreiabm6f64zosv5jcdmwd3qvekjhoi7enevg53rxj734ney4sd6lmku"
1414+
},
1415+
"site.standard.theme.color": {
1416+
"uri": "at://did:plc:re3ebnp5v7ffagz6rb6xfei4/com.atproto.lexicon.schema/site.standard.theme.color",
1417+
"cid": "bafyreicps42z5maxdqwml7t3klsrrpk332jthyfgpeb4zjn3wlvp5vyjia"
1418+
},
1419+
"social.grain.defs": {
1420+
"uri": "at://did:plc:e7rftrdyz5e2rw4y6ocszew2/com.atproto.lexicon.schema/social.grain.defs",
1421+
"cid": "bafyreia3nt5ow66tq325s2p4vxqwzntvfgnasf5circqmaa7cqhlrq327e"
1422+
},
1423+
"social.grain.gallery": {
1424+
"uri": "at://did:plc:e7rftrdyz5e2rw4y6ocszew2/com.atproto.lexicon.schema/social.grain.gallery",
1425+
"cid": "bafyreic645nrikuhuc34gfmieief6jwprz245movnuaubxv2u4qhk6noua"
1426+
},
1427+
"social.grain.photo": {
1428+
"uri": "at://did:plc:e7rftrdyz5e2rw4y6ocszew2/com.atproto.lexicon.schema/social.grain.photo",
1429+
"cid": "bafyreigigzkmnzz4qycj2wbaonl7zdqgi2566qipjhdcqdrr5g4gz3y64y"
1430+
},
13651431
"tools.ozone.inbox.appealActionedSubject": {
13661432
"uri": "at://did:plc:33dt5kftu3jq2h5h4jjlqezt/com.atproto.lexicon.schema/tools.ozone.inbox.appealActionedSubject",
13671433
"cid": "bafyreihyc3tqs3mqacjp2vp645ood7qrsx3xz7hxup7p6zkz3dskns3u3a"

‎lexicons/README.md‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ The `app.bsky.unspecced` namespace is intentionally unpublished (it is a DNS
1111
carveout upstream, and resolving it is a CI violation there), so the installer
1212
cannot fetch it. These schemas are copied from merged upstream sources:
1313

14-
- [`lexicons/app/bsky/unspecced/getAtmosphereExploreTab.json` at `293d6494ed90`](https://github.com/bluesky-social/bsky/blob/293d6494ed9058e28a04b97133d16ab8abe7ef5e/lexicons/app/bsky/unspecced/getAtmosphereExploreTab.json)
14+
- `lexicons-overrides/app/bsky/unspecced/getAtmosphereExploreTab.json` at atproto
15+
`7b640e8fee709d22a0d62262068db0ddb3106741` (from atproto PR 5809)
1516
- `lexicons-overrides/app/bsky/unspecced/getAtmosphereApps.json` at atproto
1617
`11f52c5588279d159ab12404a1b323731a467fdd` (from atproto PR 5801)
1718

@@ -20,3 +21,13 @@ pins, not published record CIDs, and their `uri` values are only installer
2021
compatibility hints, not published record locations. An unscoped network update
2122
will fail when it tries to fetch these schemas. Update them from upstream JSON
2223
and compute each local CID with `cidForLex` from `@atproto/lex-cbor`.
24+
25+
## Exception: `place.stream.badge.defs`
26+
27+
`place.stream.livestream` reaches `place.stream.badge.defs` through
28+
`place.stream.chat.defs`, but `_lexicon.badge.stream.place` has no TXT record,
29+
so the installer cannot resolve it by NSID. It is pinned by AT URI from the
30+
`did:plc` repo that publishes `place.stream.livestream`; its CID matches the copy
31+
in the `did:web:stream.place` repo. Install it with
32+
`pnpm lexicons:install at://did:plc:gqtagsooi75obldmytuow57q/com.atproto.lexicon.schema/place.stream.badge.defs`
33+
when adding or refreshing `place.stream.*` schemas.

‎lexicons/app/bsky/unspecced/getAtmosphereExploreTab.json‎

Lines changed: 51 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,14 @@
44
"defs": {
55
"main": {
66
"type": "query",
7-
"description": "Get Atmosphere Explore content. Articles are recommended when algorithmic recommendations are enabled for the request, and curated otherwise; other sections are curated. Authentication is optional; authenticated requests include viewer-specific profile state.",
7+
"description": "Get Atmosphere Explore content. Articles are recommended when algorithmic recommendations are enabled for the request, and curated otherwise; other sections are curated. Curated content is selected using the x-atproto-bsky-geo-country, x-atproto-bsky-geo-region, and x-atproto-bsky-topics request headers. Authentication is optional; authenticated requests include viewer-specific profile state.",
88
"parameters": {
99
"type": "params",
1010
"properties": {
1111
"langs": {
1212
"type": "array",
1313
"description": "Preferred languages for article recommendations when algorithmic recommendations are enabled. Ignored otherwise.",
1414
"items": { "type": "string", "format": "language" }
15-
},
16-
"countryCode": {
17-
"type": "string",
18-
"description": "The ISO 3166-1 alpha-2 country code used to select curated content."
19-
},
20-
"regionCode": {
21-
"type": "string",
22-
"description": "The ISO 3166-2 region code used to select curated content."
2315
}
2416
}
2517
},
@@ -112,15 +104,26 @@
112104
"type": "object",
113105
"required": ["featured", "view"],
114106
"properties": {
115-
"featured": { "type": "boolean" },
107+
"featured": {
108+
"type": "boolean",
109+
"description": "Deprecated. Retained for compatibility; always false."
110+
},
111+
"bskyPostRef": {
112+
"type": "ref",
113+
"ref": "com.atproto.repo.strongRef",
114+
"description": "The Bluesky post associated with the article, as declared by its author. The referenced post may not be available."
115+
},
116116
"view": { "type": "ref", "ref": "app.bsky.embed.external#viewArticle" }
117117
}
118118
},
119119
"publicationItem": {
120120
"type": "object",
121121
"required": ["featured", "view"],
122122
"properties": {
123-
"featured": { "type": "boolean" },
123+
"featured": {
124+
"type": "boolean",
125+
"description": "Deprecated. Retained for compatibility; always false."
126+
},
124127
"view": {
125128
"type": "ref",
126129
"ref": "app.bsky.embed.external#viewArticlePublication"
@@ -131,15 +134,26 @@
131134
"type": "object",
132135
"required": ["featured", "view"],
133136
"properties": {
134-
"featured": { "type": "boolean" },
137+
"featured": {
138+
"type": "boolean",
139+
"description": "Deprecated. Retained for compatibility; always false."
140+
},
135141
"view": { "type": "ref", "ref": "app.bsky.embed.external#viewGallery" }
136142
}
137143
},
138144
"livestreamItem": {
139145
"type": "object",
140146
"required": ["featured", "view"],
141147
"properties": {
142-
"featured": { "type": "boolean" },
148+
"featured": {
149+
"type": "boolean",
150+
"description": "Deprecated. Retained for compatibility; always false."
151+
},
152+
"bskyPostRef": {
153+
"type": "ref",
154+
"ref": "com.atproto.repo.strongRef",
155+
"description": "The Bluesky post that announced the livestream, as declared by its author. The referenced post may not be available."
156+
},
143157
"view": {
144158
"type": "ref",
145159
"ref": "app.bsky.embed.external#viewLivestream"
@@ -164,16 +178,35 @@
164178
"id": { "type": "string", "maxLength": 4096 },
165179
"title": { "type": "string", "maxLength": 4096 },
166180
"description": { "type": "string", "maxLength": 4096 },
167-
"logo": { "type": "string", "format": "uri", "maxLength": 4096 },
181+
"logo": {
182+
"type": "string",
183+
"format": "uri",
184+
"maxLength": 4096,
185+
"description": "Compatibility field. The profile avatar when available, otherwise the editorial logo."
186+
},
168187
"backgroundImage": {
169188
"type": "string",
170189
"format": "uri",
171-
"maxLength": 4096
190+
"maxLength": 4096,
191+
"description": "Compatibility field. The profile banner when available, otherwise the editorial background image."
192+
},
193+
"overlayColor": {
194+
"type": "string",
195+
"maxLength": 4096,
196+
"description": "Deprecated. Retained for compatibility."
197+
},
198+
"textColor": {
199+
"type": "string",
200+
"maxLength": 4096,
201+
"description": "Deprecated. Retained for compatibility."
172202
},
173-
"overlayColor": { "type": "string", "maxLength": 4096 },
174-
"textColor": { "type": "string", "maxLength": 4096 },
175203
"url": { "type": "string", "format": "uri", "maxLength": 4096 },
176-
"category": { "type": "string", "maxLength": 4096 }
204+
"category": { "type": "string", "maxLength": 4096 },
205+
"profile": {
206+
"type": "ref",
207+
"ref": "app.bsky.actor.defs#profileViewDetailed",
208+
"description": "The app's account profile, when available."
209+
}
177210
}
178211
}
179212
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"id": "community.lexicon.location.address",
3+
"defs": {
4+
"main": {
5+
"type": "object",
6+
"required": [
7+
"country"
8+
],
9+
"properties": {
10+
"name": {
11+
"type": "string",
12+
"description": "The name of the location."
13+
},
14+
"region": {
15+
"type": "string",
16+
"description": "The administrative region of the country. For example, a state in the USA."
17+
},
18+
"street": {
19+
"type": "string",
20+
"description": "The street address."
21+
},
22+
"country": {
23+
"type": "string",
24+
"maxLength": 10,
25+
"minLength": 2,
26+
"description": "The ISO 3166 country code. Preferably the 2-letter code."
27+
},
28+
"locality": {
29+
"type": "string",
30+
"description": "The locality of the region. For example, a city in the USA."
31+
},
32+
"postalCode": {
33+
"type": "string",
34+
"description": "The postal code of the location."
35+
}
36+
},
37+
"description": "A physical location in the form of a street address."
38+
}
39+
},
40+
"$type": "com.atproto.lexicon.schema",
41+
"lexicon": 1
42+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"id": "community.lexicon.location.hthree",
3+
"defs": {
4+
"main": {
5+
"type": "object",
6+
"required": [
7+
"value"
8+
],
9+
"properties": {
10+
"name": {
11+
"type": "string",
12+
"description": "The name of the location."
13+
},
14+
"value": {
15+
"type": "string",
16+
"description": "The h3 encoded location."
17+
}
18+
},
19+
"description": "A physical location in the form of a H3 encoded location."
20+
}
21+
},
22+
"$type": "com.atproto.lexicon.schema",
23+
"lexicon": 1
24+
}

0 commit comments

Comments
 (0)