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.
dbbasic-package.json · 3.2 KB · 64 lines
| 1 | { |
| 2 | "id": "app-forum", |
| 3 | "name": "Forum", |
| 4 | "version": "0.3.1", |
| 5 | "description": "Discussion forum: categories/boards, topics, and FLAT replies -- a port of a private predecessor-system audit, not part of this repo. Public read on all three collections; owner writes their own categories/topics/replies (row_filter owner_id=$user_id). The topic permalink /forum/topics/{topic_id:uuid} is a seeded 59 detail view (site_view_render): a composed page of three generic block renderers -- an editable+deletable `detail` block (topic; ai_summary shows only when is_ai_summarized via the field's visible_when), a `related` block (flat replies by topic_id -- deliberately flat, not nested), and a `form` block with fixed:{topic_id:$record_id} (reply compose, FK locked to the page's topic). No bespoke per-topic page. Moderation is the flags themselves (is_pinned/is_locked/is_solved on a topic, is_solution on a reply), edited via the detail block's owner edit form. Deferred (fields carried, behavior not): AI topic summaries (no generation built here), topic view-count incrementing, cross-user moderation (needs a moderator-role rule this package does not define), and category slug auto-generation. 0.3.0 deletes the bespoke /forum landing page object too: it is a seeded view of two `list` blocks (categories; recent topics with search, sort and the topic permalink), each with an Add panel and owner-scoped row actions. forum_topics went to list_mode table (schema v3) so the pinned, solved and views facts the page used to fold into a subtitle are real columns. 0.3.1: a row a registered user writes could point at anybody's record, because the rules asked only that the new row be the writer's own. Every pointer a non-admin can write now declares relation.requires (forum_replies.topic_id read, forum_replies.parent_id read, forum_topics.category_id read), so over the API a row points only at a record its writer may see, or, where it moves money, stock or state of what it points at, may update; a record they may not see is answered like a missing one (docs/permissions-model.md, 'Pointing at a record you may not act on').", |
| 6 | "compatibility": { |
| 7 | "dbbasic_object_server": ">=0.1.0" |
| 8 | }, |
| 9 | "dependencies": ["app-views"], |
| 10 | "objects": [], |
| 11 | "schemas": [ |
| 12 | { |
| 13 | "collection": "forum_categories", |
| 14 | "path": "schemas/forum_categories.json" |
| 15 | }, |
| 16 | { |
| 17 | "collection": "forum_topics", |
| 18 | "path": "schemas/forum_topics.json" |
| 19 | }, |
| 20 | { |
| 21 | "collection": "forum_replies", |
| 22 | "path": "schemas/forum_replies.json" |
| 23 | } |
| 24 | ], |
| 25 | "permissions": [ |
| 26 | { |
| 27 | "path": "permissions/rules.json" |
| 28 | } |
| 29 | ], |
| 30 | "seed": [ |
| 31 | { |
| 32 | "collection": "forum_categories", |
| 33 | "path": "seed/forum_categories.tsv" |
| 34 | }, |
| 35 | { |
| 36 | "collection": "forum_topics", |
| 37 | "path": "seed/forum_topics.tsv" |
| 38 | }, |
| 39 | { |
| 40 | "collection": "forum_replies", |
| 41 | "path": "seed/forum_replies.tsv" |
| 42 | }, |
| 43 | { |
| 44 | "collection": "views", |
| 45 | "path": "seed/views.tsv" |
| 46 | }, |
| 47 | { |
| 48 | "collection": "site_routes", |
| 49 | "path": "seed/site_routes.tsv" |
| 50 | } |
| 51 | ], |
| 52 | "migrations": [], |
| 53 | "nav": [ |
| 54 | { |
| 55 | "id": "forum", |
| 56 | "label": "Forum", |
| 57 | "path": "/forum", |
| 58 | "blurb": "Categories, topics and threaded replies", |
| 59 | "surface": "member", |
| 60 | "group": "Publishing", |
| 61 | "order": 210 |
| 62 | } |
| 63 | ] |
| 64 | } |