You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add rich text facet support to activity claim descriptions
6
+
7
+
Add `shortDescriptionFacets` and `descriptionFacets` fields to the activity lexicon to support rich text annotations (mentions, URLs, hashtags, etc.) in activity claim descriptions.
|`title`|`string`| yes | Title of the hypercert. | maxLength: 256 |
21
-
|`shortDescription`|`string`| yes | Short blurb of the impact work done. | maxLength: 3000, maxGraphemes: 300 |
22
-
|`description`|`string`| no | Optional longer description of the impact work done. | maxLength: 30000, maxGraphemes: 3000 |
23
-
|`image`|`union`| no | The hypercert visual representation as a URI or image blob. ||
24
-
|`workScope`|`ref`| no | A strong reference to a record defining the scope of work. The record referenced should describe the logical scope using label-based conditions. ||
25
-
|`startDate`|`string`| no | When the work began ||
26
-
|`endDate`|`string`| no | When the work ended ||
27
-
|`contributors`|`ref`| no | An array of contributor objects, each containing contributor information, weight, and contribution details. ||
28
-
|`rights`|`ref`| no | A strong reference to the rights that this hypercert has. The record referenced must conform with the lexicon org.hypercerts.claim.rights. ||
29
-
|`locations`|`ref`| no | An array of strong references to the location where activity was performed. The record referenced must conform with the lexicon app.certified.location. ||
30
-
|`createdAt`|`string`| yes | Client-declared timestamp when this record was originally created ||
|`title`|`string`| yes | Title of the hypercert. | maxLength: 256 |
21
+
|`shortDescription`|`string`| yes | Short summary of this activity claim, suitable for previews and list views. Rich text annotations may be provided via `shortDescriptionFacets`. | maxLength: 3000, maxGraphemes: 300 |
22
+
|`shortDescriptionFacets`|`ref`| no | Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc). ||
23
+
|`description`|`string`| no | Optional longer description of this activity claim, including context or interpretation. Rich text annotations may be provided via `descriptionFacets`. | maxLength: 30000, maxGraphemes: 3000 |
24
+
|`descriptionFacets`|`ref`| no | Rich text annotations for `description` (mentions, URLs, hashtags, etc). ||
25
+
|`image`|`union`| no | The hypercert visual representation as a URI or image blob. ||
26
+
|`workScope`|`ref`| no | A strong reference to a record defining the scope of work. The record referenced should describe the logical scope using label-based conditions. ||
27
+
|`startDate`|`string`| no | When the work began ||
28
+
|`endDate`|`string`| no | When the work ended ||
29
+
|`contributors`|`ref`| no | An array of contributor objects, each containing contributor information, weight, and contribution details. ||
30
+
|`rights`|`ref`| no | A strong reference to the rights that this hypercert has. The record referenced must conform with the lexicon org.hypercerts.claim.rights. ||
31
+
|`locations`|`ref`| no | An array of strong references to the location where activity was performed. The record referenced must conform with the lexicon app.certified.location. ||
32
+
|`createdAt`|`string`| yes | Client-declared timestamp when this record was originally created ||
Copy file name to clipboardExpand all lines: lexicons/org/hypercerts/claim/activity.json
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -17,16 +17,32 @@
17
17
},
18
18
"shortDescription": {
19
19
"type": "string",
20
-
"description": "Short blurb of the impact work done.",
20
+
"description": "Short summary of this activity claim, suitable for previews and list views. Rich text annotations may be provided via `shortDescriptionFacets`.",
21
21
"maxLength": 3000,
22
22
"maxGraphemes": 300
23
23
},
24
+
"shortDescriptionFacets": {
25
+
"type": "array",
26
+
"description": "Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc).",
27
+
"items": {
28
+
"type": "ref",
29
+
"ref": "app.bsky.richtext.facet"
30
+
}
31
+
},
24
32
"description": {
25
33
"type": "string",
26
-
"description": "Optional longer description of the impact work done.",
34
+
"description": "Optional longer description of this activity claim, including context or interpretation. Rich text annotations may be provided via `descriptionFacets`.",
27
35
"maxLength": 30000,
28
36
"maxGraphemes": 3000
29
37
},
38
+
"descriptionFacets": {
39
+
"type": "array",
40
+
"description": "Rich text annotations for `description` (mentions, URLs, hashtags, etc).",
0 commit comments