Skip to content

Commit b855ec6

Browse files
s-adamantineclaude
andcommitted
fix: use inline Leaflet lexicon ref instead of strongRef for description union
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6125d83 commit b855ec6

6 files changed

Lines changed: 35 additions & 35 deletions

File tree

.changeset/description-union-type.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"@hypercerts-org/lexicon": minor
33
---
44

5-
Widen description fields on activity, collection, and attachment from a bare Leaflet ref to a union of inline descriptionString and strongRef, with a shared def in org.hypercerts.defs
5+
Widen description fields on activity, collection, and attachment from a bare Leaflet ref to a union of inline descriptionString and Leaflet linearDocument, with a shared def in org.hypercerts.defs

.changeset/widen-description-to-union.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"@hypercerts-org/lexicon": minor
33
---
44

5-
Widen `description` fields on activity, collection, and attachment from a bare Leaflet ref to a union of inline `descriptionString` and `strongRef`, with a shared def in `org.hypercerts.defs`
5+
Widen `description` fields on activity, collection, and attachment from a bare Leaflet ref to a union of inline `descriptionString` and Leaflet `linearDocument`, with a shared def in `org.hypercerts.defs`

SCHEMAS.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ Hypercerts-specific lexicons for tracking impact work and claims.
1515

1616
#### Properties
1717

18-
| Property | Type | Required | Description | Comments |
19-
| ------------------------ | -------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------- |
20-
| `title` | `string` || Display title summarizing the impact work (e.g. 'Reforestation in Amazon Basin 2024') | maxLength: 256 |
21-
| `shortDescription` | `string` || 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[]` || Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc). | |
23-
| `description` | `union` || Long-form description of the activity. An inline string for plain text or markdown, or a strong reference to a rich-text document record (e.g. a Leaflet linear document). | |
24-
| `image` | `union` || The hypercert visual representation as a URI or image blob. | |
25-
| `contributors` | `ref[]` || An array of contributor objects, each containing contributor information, weight, and contribution details. | |
26-
| `workScope` | `union` || Work scope definition. A CEL expression for structured, machine-evaluable scopes or a free-form string for simple and legacy scopes. | |
27-
| `startDate` | `string` || When the work began | |
28-
| `endDate` | `string` || When the work ended | |
29-
| `locations` | `ref[]` || An array of strong references to the location where activity was performed. The record referenced must conform with the lexicon app.certified.location. | maxLength: 1000 |
30-
| `rights` | `ref` || A strong reference to the rights that this hypercert has. The record referenced must conform with the lexicon org.hypercerts.claim.rights. | |
31-
| `createdAt` | `string` || Client-declared timestamp when this record was originally created | |
18+
| Property | Type | Required | Description | Comments |
19+
| ------------------------ | -------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------- |
20+
| `title` | `string` || Display title summarizing the impact work (e.g. 'Reforestation in Amazon Basin 2024') | maxLength: 256 |
21+
| `shortDescription` | `string` || 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[]` || Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc). | |
23+
| `description` | `union` || Long-form description of the activity. An inline string for plain text or markdown, or a Leaflet linear document for rich-text content. | |
24+
| `image` | `union` || The hypercert visual representation as a URI or image blob. | |
25+
| `contributors` | `ref[]` || An array of contributor objects, each containing contributor information, weight, and contribution details. | |
26+
| `workScope` | `union` || Work scope definition. A CEL expression for structured, machine-evaluable scopes or a free-form string for simple and legacy scopes. | |
27+
| `startDate` | `string` || When the work began | |
28+
| `endDate` | `string` || When the work ended | |
29+
| `locations` | `ref[]` || An array of strong references to the location where activity was performed. The record referenced must conform with the lexicon app.certified.location. | maxLength: 1000 |
30+
| `rights` | `ref` || A strong reference to the rights that this hypercert has. The record referenced must conform with the lexicon org.hypercerts.claim.rights. | |
31+
| `createdAt` | `string` || Client-declared timestamp when this record was originally created | |
3232

3333
#### Defs
3434

@@ -129,18 +129,18 @@ A free-form string describing the work scope for simple or legacy scopes.
129129

130130
#### Properties
131131

132-
| Property | Type | Required | Description | Comments |
133-
| ------------------------ | -------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
134-
| `type` | `string` || The type of this collection. Values beyond the known set are permitted. | maxLength: 64, Known values: `favorites`, `project`, `portfolio`, `program` |
135-
| `title` | `string` || Display name for this collection (e.g. 'Q1 2025 Impact Projects') | maxLength: 800, maxGraphemes: 80 |
136-
| `shortDescription` | `string` || Short summary of this collection, suitable for previews and list views. Rich text annotations may be provided via `shortDescriptionFacets`. | maxLength: 3000, maxGraphemes: 300 |
137-
| `shortDescriptionFacets` | `ref[]` || Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc). | |
138-
| `description` | `union` || Long-form description of the collection. An inline string for plain text or markdown, or a strong reference to a rich-text document record (e.g. a Leaflet linear document). | |
139-
| `avatar` | `union` || The collection's avatar/profile image as a URI or image blob. | |
140-
| `banner` | `union` || Larger horizontal image to display behind the collection view. | |
141-
| `items` | `ref[]` || Array of items in this collection with optional weights. | maxLength: 1000 |
142-
| `location` | `ref` || A strong reference to the location where this collection's activities were performed. The record referenced must conform with the lexicon app.certified.location. | |
143-
| `createdAt` | `string` || Client-declared timestamp when this record was originally created | |
132+
| Property | Type | Required | Description | Comments |
133+
| ------------------------ | -------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
134+
| `type` | `string` || The type of this collection. Values beyond the known set are permitted. | maxLength: 64, Known values: `favorites`, `project`, `portfolio`, `program` |
135+
| `title` | `string` || Display name for this collection (e.g. 'Q1 2025 Impact Projects') | maxLength: 800, maxGraphemes: 80 |
136+
| `shortDescription` | `string` || Short summary of this collection, suitable for previews and list views. Rich text annotations may be provided via `shortDescriptionFacets`. | maxLength: 3000, maxGraphemes: 300 |
137+
| `shortDescriptionFacets` | `ref[]` || Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc). | |
138+
| `description` | `union` || Long-form description of the collection. An inline string for plain text or markdown, or a Leaflet linear document for rich-text content. | |
139+
| `avatar` | `union` || The collection's avatar/profile image as a URI or image blob. | |
140+
| `banner` | `union` || Larger horizontal image to display behind the collection view. | |
141+
| `items` | `ref[]` || Array of items in this collection with optional weights. | maxLength: 1000 |
142+
| `location` | `ref` || A strong reference to the location where this collection's activities were performed. The record referenced must conform with the lexicon app.certified.location. | |
143+
| `createdAt` | `string` || Client-declared timestamp when this record was originally created | |
144144

145145
#### Defs
146146

@@ -189,7 +189,7 @@ An item in a collection, with an identifier and optional weight.
189189
| `title` | `string` || Display title for this attachment (e.g. 'Impact Assessment Report', 'Audit Findings') | maxLength: 256 |
190190
| `shortDescription` | `string` || Short summary of this attachment, suitable for previews and list views. Rich text annotations may be provided via `shortDescriptionFacets`. | maxLength: 3000, maxGraphemes: 300 |
191191
| `shortDescriptionFacets` | `ref[]` || Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc). | |
192-
| `description` | `union` || Long-form description of the attachment. An inline string for plain text or markdown, or a strong reference to a rich-text document record (e.g. a Leaflet linear document). | |
192+
| `description` | `union` || Long-form description of the attachment. An inline string for plain text or markdown, or a Leaflet linear document for rich-text content. | |
193193
| `location` | `ref` || A strong reference to the location where this attachment's subject matter occurred. The record referenced must conform with the lexicon app.certified.location. | |
194194
| `createdAt` | `string` || Client-declared timestamp when this record was originally created. | |
195195

lexicons/org/hypercerts/claim/activity.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
"type": "union",
3434
"refs": [
3535
"org.hypercerts.defs#descriptionString",
36-
"com.atproto.repo.strongRef"
36+
"pub.leaflet.pages.linearDocument#main"
3737
],
38-
"description": "Long-form description of the activity. An inline string for plain text or markdown, or a strong reference to a rich-text document record (e.g. a Leaflet linear document)."
38+
"description": "Long-form description of the activity. An inline string for plain text or markdown, or a Leaflet linear document for rich-text content."
3939
},
4040
"image": {
4141
"type": "union",

lexicons/org/hypercerts/collection.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
"type": "union",
4141
"refs": [
4242
"org.hypercerts.defs#descriptionString",
43-
"com.atproto.repo.strongRef"
43+
"pub.leaflet.pages.linearDocument#main"
4444
],
45-
"description": "Long-form description of the collection. An inline string for plain text or markdown, or a strong reference to a rich-text document record (e.g. a Leaflet linear document)."
45+
"description": "Long-form description of the collection. An inline string for plain text or markdown, or a Leaflet linear document for rich-text content."
4646
},
4747
"avatar": {
4848
"type": "union",

lexicons/org/hypercerts/context/attachment.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@
6666
"type": "union",
6767
"refs": [
6868
"org.hypercerts.defs#descriptionString",
69-
"com.atproto.repo.strongRef"
69+
"pub.leaflet.pages.linearDocument#main"
7070
],
71-
"description": "Long-form description of the attachment. An inline string for plain text or markdown, or a strong reference to a rich-text document record (e.g. a Leaflet linear document)."
71+
"description": "Long-form description of the attachment. An inline string for plain text or markdown, or a Leaflet linear document for rich-text content."
7272
},
7373
"location": {
7474
"type": "ref",

0 commit comments

Comments
 (0)