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 · 2.4 KB · 69 lines
| 1 | { |
| 2 | "id": "app-forum", |
| 3 | "name": "Forum", |
| 4 | "version": "0.2.0", |
| 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.", |
| 6 | "compatibility": { |
| 7 | "dbbasic_object_server": ">=0.1.0" |
| 8 | }, |
| 9 | "dependencies": ["app-views"], |
| 10 | "objects": [ |
| 11 | { |
| 12 | "id": "site_forum", |
| 13 | "path": "objects/site/forum.py" |
| 14 | } |
| 15 | ], |
| 16 | "schemas": [ |
| 17 | { |
| 18 | "collection": "forum_categories", |
| 19 | "path": "schemas/forum_categories.json" |
| 20 | }, |
| 21 | { |
| 22 | "collection": "forum_topics", |
| 23 | "path": "schemas/forum_topics.json" |
| 24 | }, |
| 25 | { |
| 26 | "collection": "forum_replies", |
| 27 | "path": "schemas/forum_replies.json" |
| 28 | } |
| 29 | ], |
| 30 | "permissions": [ |
| 31 | { |
| 32 | "path": "permissions/rules.json" |
| 33 | } |
| 34 | ], |
| 35 | "seed": [ |
| 36 | { |
| 37 | "collection": "forum_categories", |
| 38 | "path": "seed/forum_categories.tsv" |
| 39 | }, |
| 40 | { |
| 41 | "collection": "forum_topics", |
| 42 | "path": "seed/forum_topics.tsv" |
| 43 | }, |
| 44 | { |
| 45 | "collection": "forum_replies", |
| 46 | "path": "seed/forum_replies.tsv" |
| 47 | }, |
| 48 | { |
| 49 | "collection": "views", |
| 50 | "path": "seed/views.tsv" |
| 51 | }, |
| 52 | { |
| 53 | "collection": "site_routes", |
| 54 | "path": "seed/site_routes.tsv" |
| 55 | } |
| 56 | ], |
| 57 | "migrations": [], |
| 58 | "nav": [ |
| 59 | { |
| 60 | "id": "forum", |
| 61 | "label": "Forum", |
| 62 | "path": "/forum", |
| 63 | "blurb": "Categories, topics and threaded replies", |
| 64 | "surface": "member", |
| 65 | "group": "Publishing", |
| 66 | "order": 210 |
| 67 | } |
| 68 | ] |
| 69 | } |