askrobots / dbbasic-object-server
Public
Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.
danq9
signup: the person chooses the password and name on the confirm page
83c7aa6
2 weeks, 5 days ago
History
dbbasic-package.json · 4.0 KB · 65 lines
| 1 | { |
| 2 | "id": "app-nav", |
| 3 | "name": "Navigation", |
| 4 | "version": "0.2.0", |
| 5 | "description": "The nav registry: one collection every navigation surface folds over, instead of three hand-maintained lists that disagreed. Before this package there were exactly that -- a 25-entry JS array in site_nav's app switcher, a 21-entry Python tuple in site_home's tile grid, and a collection-to-URL map for search hits -- each edited by whoever remembered, and between them naming none of the eight newest apps (shop, intake, billing, timers, banking, shipping, receiving, payments). Worse, site_home existed in NO package at all: it lived only on the running droplet, so a rebuilt box came back with no front door and said nothing about it, the same failure the `schedules` manifest section was built to end for cron. A package now declares its doors in its manifest and install writes them into nav_entries; the switcher and the home page both read them back through action_nav_entries, which owns the one visibility rule (public to anyone, member to a signed-in user, operator to an admin role -- the same admin test system_scheduler makes). The package owns label/path/blurb/group/surface/order and restates them on every install; the operator owns operator_hidden, which an install never writes. That split is the whole design: the package says what an app IS, the operator says what they want to SEE, and an upgrade that silently un-hides a page somebody deliberately removed is the same class of incident as one that restarts a paused nightly pass. This is a MENU and not a gate -- permissions decide who may open a page, and leaving a door off the menu hides nothing that was not already protected. It now also owns the ATTENTION layer, which is the same pattern applied a third time to a different question. A menu answers 'where can I go'; the only question a home screen is actually asked is 'does anything need me?', and this server is unusually well placed to answer it because it is built out of gates and derived states -- every one of which produces a queue of things a machine deliberately refused to decide, computes it constantly, and throws it away (system_scan_processor returns a field named `needing_a_human` that nothing has ever read). So a package declares its queues in its manifest `attention` block, install writes them to attention_sources, object_daemon.process_attention executes each provider's COUNT method on an interval and writes attention_counts, and the surfaces read that one small table. A rollup and not a live fold, deliberately: this box once swapped at 675MB because something folded a big collection on a timer, and a home page that folds a dozen collections per render is that mistake with a nicer name. Zeros are stored and never shown -- a board that says '0 pending' every day trains people to stop reading it, and a page that is EMPTY when nothing needs them gets read every time.", |
| 6 | "compatibility": { |
| 7 | "dbbasic_object_server": ">=0.1.0" |
| 8 | }, |
| 9 | "dependencies": [], |
| 10 | "objects": [ |
| 11 | { |
| 12 | "id": "action_nav_entries", |
| 13 | "path": "objects/action/nav_entries.py" |
| 14 | }, |
| 15 | { |
| 16 | "id": "site_home", |
| 17 | "path": "objects/site/home.py" |
| 18 | } |
| 19 | ], |
| 20 | "schemas": [ |
| 21 | { |
| 22 | "collection": "nav_entries", |
| 23 | "path": "schemas/nav_entries.json" |
| 24 | }, |
| 25 | { |
| 26 | "collection": "attention_sources", |
| 27 | "path": "schemas/attention_sources.json" |
| 28 | }, |
| 29 | { |
| 30 | "collection": "attention_counts", |
| 31 | "path": "schemas/attention_counts.json" |
| 32 | } |
| 33 | ], |
| 34 | "permissions": [ |
| 35 | { |
| 36 | "path": "permissions/rules.json" |
| 37 | } |
| 38 | ], |
| 39 | "seed": [ |
| 40 | { |
| 41 | "collection": "nav_entries", |
| 42 | "path": "seed/nav_entries.tsv" |
| 43 | }, |
| 44 | { |
| 45 | "collection": "attention_sources", |
| 46 | "path": "seed/attention_sources.tsv" |
| 47 | }, |
| 48 | { |
| 49 | "collection": "attention_counts", |
| 50 | "path": "seed/attention_counts.tsv" |
| 51 | } |
| 52 | ], |
| 53 | "migrations": [], |
| 54 | "nav": [ |
| 55 | { |
| 56 | "id": "home", |
| 57 | "label": "Home", |
| 58 | "path": "/", |
| 59 | "blurb": "The switchboard: every app this server installs", |
| 60 | "surface": "public", |
| 61 | "group": "Work", |
| 62 | "order": 0 |
| 63 | } |
| 64 | ] |
| 65 | } |