Support shared bid history and custom project opening
This commit is contained in:
@@ -55,14 +55,15 @@ For directory-backed collections, initialize the empty collection in the selecte
|
||||
|
||||
## Specialist viewers for shared data
|
||||
|
||||
The dashboard exposes two versioned datasets through ordinary workspace files. Each extension obtains its own launch-scoped grant through `openWorkspaceAsset`. A group supplies the requesting user's access context. The workspace owns the data and its checkpoints.
|
||||
The dashboard exposes versioned datasets through ordinary workspace files. Each extension obtains its own launch-scoped grant through `openWorkspaceAsset`. A group supplies the requesting user's access context. The workspace owns the data and its checkpoints.
|
||||
|
||||
| Asset | Canonical store | Contents |
|
||||
| --- | --- | --- |
|
||||
| `suppliers` | `/shared/suppliers/catalog.kv` | Stable supplier IDs, profiles, overrides, import history and enrichments. `catalog/meta.active` selects the generation. |
|
||||
| `prices` | `/shared/prices/prices.kv` | Comparable price observations, keyed by stable observation ID in the list `observations/v1`. |
|
||||
| `bid_history` | `/shared/bid_history/inschrijfhistorie.json` | Historical bids by ID and lot, with criterion scores and feedback. |
|
||||
|
||||
Declare `workspace_asset_suppliers_read` or `workspace_asset_prices_read`, plus `filesystem_read` and `kv_store_read`. Editors also need the corresponding asset write permission, `filesystem_write`, `kv_store_write` and effective write access to the folder. Store a supplier ID on a project line. Resolve the ID against the supplier asset when displaying current details. Keep original offers, recipients and sent messages in the project.
|
||||
Declare the asset’s `workspace_asset_<asset>_read` permission and `filesystem_read`. Editors also need its write permission, `filesystem_write` and effective write access to the folder. KV datasets additionally require `kv_store_read` and, for editing, `kv_store_write`. For JSON datasets, pass the snapshot from `createSharedFolderReader(...).readJson(relative)` to `writeWorkspaceAssetJson(context, relative, value, snapshot)` with a writable asset grant in `context.folder`. Store a supplier ID on a project line. Resolve the ID against the supplier asset when displaying current details. Keep original offers, recipients and sent messages in the project.
|
||||
|
||||
```js
|
||||
import { openWorkspaceAsset } from '@isa-warden/isa-project-format/shared-folder';
|
||||
|
||||
Reference in New Issue
Block a user