From 64b1c9b58f361a7471fab5ef1e05bcf783b0257d Mon Sep 17 00:00:00 2001 From: otivm Date: Sun, 3 May 2026 14:57:48 +0000 Subject: [PATCH] iv: add context JSON configuration files --- src/config/context-actor.json | 46 +++++++++++++++++++++++++++++++++++ src/config/context-forum.json | 46 +++++++++++++++++++++++++++++++++++ src/config/context-map.json | 27 ++++++++++++++++++++ src/config/contexts.json | 34 ++++++++++++++++++++++++++ 4 files changed, 153 insertions(+) create mode 100644 src/config/context-actor.json create mode 100644 src/config/context-forum.json create mode 100644 src/config/context-map.json create mode 100644 src/config/contexts.json diff --git a/src/config/context-actor.json b/src/config/context-actor.json new file mode 100644 index 0000000..1a1b287 --- /dev/null +++ b/src/config/context-actor.json @@ -0,0 +1,46 @@ +{ + "id": "actor", + "name": "Actor", + "subtitle": "Who you are", + "layout": "three-col", + "subitems": ["Identity", "Auctoritas", "Parameters", "Obligations"], + "sections": [ + { + "col": "left", + "title": "Identity", + "type": "status-block", + "dataKey": "identity" + }, + { + "col": "left", + "title": "Liquiditas", + "type": "status-block", + "dataKey": "liquiditas" + }, + { + "col": "center", + "title": "Auctoritas — three faces", + "type": "auctoritas", + "dataKey": "auctoritas" + }, + { + "col": "center", + "title": "Parameters", + "type": "parameter-list", + "dataKey": "parameters" + }, + { + "col": "right", + "title": "Periodic obligations", + "type": "cost-table", + "dataKey": "obligations", + "note": "Debited per otium cycle. Amounts from docs/economy/cost-calibration-model.md." + }, + { + "col": "right", + "title": "Drift log · recent", + "type": "drift-log", + "dataKey": "driftLog" + } + ] +} diff --git a/src/config/context-forum.json b/src/config/context-forum.json new file mode 100644 index 0000000..6fb3afe --- /dev/null +++ b/src/config/context-forum.json @@ -0,0 +1,46 @@ +{ + "id": "forum", + "name": "Forum", + "subtitle": "Decisions and accounts", + "layout": "two-col", + "subitems": ["Active Venture", "Routes", "Journal"], + "sections": [ + { + "col": "left", + "title": "Active venture", + "type": "status-block", + "dataKey": "activeVenture" + }, + { + "col": "left", + "title": "Actions", + "type": "action-bar", + "dataKey": "actions" + }, + { + "col": "left", + "title": "Journal", + "type": "text-block", + "dataKey": "journal", + "collapsible": true + }, + { + "col": "right", + "title": "Trade routes", + "type": "route-list", + "dataKey": "routes" + }, + { + "col": "right", + "title": "Standing", + "type": "status-block", + "dataKey": "standing" + }, + { + "col": "right", + "title": "Periodic expenditures", + "type": "cost-table", + "dataKey": "expenditures" + } + ] +} diff --git a/src/config/context-map.json b/src/config/context-map.json new file mode 100644 index 0000000..c44575c --- /dev/null +++ b/src/config/context-map.json @@ -0,0 +1,27 @@ +{ + "id": "map", + "name": "Map", + "subtitle": "The known world · roman_14bce", + "layout": "map", + "subitems": ["Waypoints", "Epoch"], + "sections": [ + { + "col": "sidebar", + "title": "Revealed waypoints", + "type": "status-block", + "dataKey": "waypoints" + }, + { + "col": "sidebar", + "title": "Epoch", + "type": "status-block", + "dataKey": "epoch" + }, + { + "col": "canvas", + "title": "TESSERA H7 · fog-of-war", + "type": "map-canvas", + "dataKey": null + } + ] +} diff --git a/src/config/contexts.json b/src/config/contexts.json new file mode 100644 index 0000000..c26e8f1 --- /dev/null +++ b/src/config/contexts.json @@ -0,0 +1,34 @@ +[ + { + "id": "actor", + "name": "Actor", + "subtitle": "Who you are", + "layout": "three-col", + "disabled": false, + "subitems": ["Identity", "Auctoritas", "Parameters", "Obligations"] + }, + { + "id": "forum", + "name": "Forum", + "subtitle": "Decisions and accounts", + "layout": "two-col", + "disabled": false, + "subitems": ["Active Venture", "Routes", "Journal"] + }, + { + "id": "map", + "name": "Map", + "subtitle": "The known world", + "layout": "map", + "disabled": false, + "subitems": ["Waypoints", "Epoch"] + }, + { + "id": "market", + "name": "Market", + "subtitle": "Supply and demand", + "layout": "two-col", + "disabled": true, + "subitems": [] + } +]