Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/collection-short-description-facets.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@hypercerts-org/lexicon": minor
---

Add `shortDescriptionFacets` to collection for rich text annotations on `shortDescription`
23 changes: 12 additions & 11 deletions SCHEMAS.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,18 @@ A free-form string describing the work scope for simple or legacy scopes.

#### Properties

| Property | Type | Required | Description | Comments |
| ------------------ | -------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| `type` | `string` | ❌ | The type of this collection. Values beyond the known set are permitted. | maxLength: 64, Known values: `favorites`, `project`, `portfolio`, `program` |
| `title` | `string` | βœ… | Display name for this collection (e.g. 'Q1 2025 Impact Projects') | maxLength: 800, maxGraphemes: 80 |
| `shortDescription` | `string` | ❌ | Short summary of this collection, suitable for previews and list views | maxLength: 3000, maxGraphemes: 300 |
| `description` | `ref` | ❌ | Rich-text description, represented as a Leaflet linear document. | |
| `avatar` | `union` | ❌ | The collection's avatar/profile image as a URI or image blob. | |
| `banner` | `union` | ❌ | Larger horizontal image to display behind the collection view. | |
| `items` | `ref[]` | ❌ | Array of items in this collection with optional weights. | maxLength: 1000 |
| `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. | |
| `createdAt` | `string` | βœ… | Client-declared timestamp when this record was originally created | |
| Property | Type | Required | Description | Comments |
| ------------------------ | -------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| `type` | `string` | ❌ | The type of this collection. Values beyond the known set are permitted. | maxLength: 64, Known values: `favorites`, `project`, `portfolio`, `program` |
| `title` | `string` | βœ… | Display name for this collection (e.g. 'Q1 2025 Impact Projects') | maxLength: 800, maxGraphemes: 80 |
| `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 |
| `shortDescriptionFacets` | `ref[]` | ❌ | Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc). | |
| `description` | `ref` | ❌ | Rich-text description, represented as a Leaflet linear document. | |
| `avatar` | `union` | ❌ | The collection's avatar/profile image as a URI or image blob. | |
| `banner` | `union` | ❌ | Larger horizontal image to display behind the collection view. | |
| `items` | `ref[]` | ❌ | Array of items in this collection with optional weights. | maxLength: 1000 |
| `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. | |
| `createdAt` | `string` | βœ… | Client-declared timestamp when this record was originally created | |

#### Defs

Expand Down
10 changes: 9 additions & 1 deletion lexicons/org/hypercerts/collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@
"type": "string",
"maxLength": 3000,
"maxGraphemes": 300,
"description": "Short summary of this collection, suitable for previews and list views"
"description": "Short summary of this collection, suitable for previews and list views. Rich text annotations may be provided via `shortDescriptionFacets`."
},
"shortDescriptionFacets": {
"type": "array",
"description": "Rich text annotations for `shortDescription` (mentions, URLs, hashtags, etc).",
"items": {
"type": "ref",
"ref": "app.bsky.richtext.facet"
}
},
"description": {
"type": "ref",
Expand Down
Loading