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 · 3.6 KB · 83 lines
| 1 | { |
| 2 | "id": "app-timers", |
| 3 | "name": "Timers", |
| 4 | "version": "0.5.0", |
| 5 | "description": "Time logs against tasks: server-enforced start/stop (62 \u2014 Timer) over an is_running/duration_seconds pair, at most one running timer per owner. No page object \u2014 generated UIs (Scroll) manage time logs from the schema; start/stop/running are server routes (objects/site/timer_actions.py), not a generator page. Ships an attention provider for the `submitted` gate: approval is by design somebody other than the person who logged the hours, which makes it the kind of queue that can only be cleared by a person who has no reason to know it exists. The count carries hours in its detail, because nine entries and sixty-two hours are different amounts of afternoon. 0.5.0 gives the approval queue somewhere to go. \"No page object\" was true and also meant no page: the attention count pointed at /time-logs?status=submitted and nothing answered that path, so the one surface that could tell an approver a queue exists linked nowhere. This version keeps the no-page-object rule and satisfies it the way the rest of the box does -- a seeded `views` record over the generic `list` block and a site_routes row to site_view_render, which is data, not a page object -- so `nav_optional` is retired and the app finally declares a door. The list omits the search box because time_logs declares no `search` fields (a box that searches nothing is a lie about the collection), keeps Add because retroactive logging is ordinary and the schema was always meant to be form-managed, and does not link rows because no /time-logs/{id} permalink is seeded. The attention path drops its query string: the generic filter bar comes from the schema's views.filter_fields and reads nothing from the URL, so ?status=submitted would have promised a filtered queue and delivered the whole collection. Worth naming as a live gap rather than hiding: every generic edit affordance is owner-gated, so an approver can SEE the submitted rows here but still approves through the API, because a manager is by definition not the owner of the hours they are approving.", |
| 6 | "compatibility": { |
| 7 | "dbbasic_object_server": ">=0.1.0" |
| 8 | }, |
| 9 | "dependencies": [ |
| 10 | "app-tasks", |
| 11 | "app-views" |
| 12 | ], |
| 13 | "objects": [ |
| 14 | { |
| 15 | "id": "site_timer_actions", |
| 16 | "path": "objects/site/timer_actions.py" |
| 17 | }, |
| 18 | { |
| 19 | "id": "hook_time_logs", |
| 20 | "path": "objects/hook/time_logs.py" |
| 21 | }, |
| 22 | { |
| 23 | "id": "system_time_attention", |
| 24 | "path": "objects/system/time_attention.py" |
| 25 | } |
| 26 | ], |
| 27 | "schemas": [ |
| 28 | { |
| 29 | "collection": "time_logs", |
| 30 | "path": "schemas/time_logs.json" |
| 31 | }, |
| 32 | { |
| 33 | "collection": "rate_cards", |
| 34 | "path": "schemas/rate_cards.json" |
| 35 | } |
| 36 | ], |
| 37 | "permissions": [ |
| 38 | { |
| 39 | "path": "permissions/rules.json" |
| 40 | } |
| 41 | ], |
| 42 | "seed": [ |
| 43 | { |
| 44 | "collection": "time_logs", |
| 45 | "path": "seed/time_logs.tsv" |
| 46 | }, |
| 47 | { |
| 48 | "collection": "site_routes", |
| 49 | "path": "seed/site_routes.tsv" |
| 50 | }, |
| 51 | { |
| 52 | "collection": "rate_cards", |
| 53 | "path": "seed/rate_cards.tsv" |
| 54 | }, |
| 55 | { |
| 56 | "collection": "views", |
| 57 | "path": "seed/views.tsv" |
| 58 | } |
| 59 | ], |
| 60 | "migrations": [], |
| 61 | "nav": [ |
| 62 | { |
| 63 | "id": "time_logs", |
| 64 | "label": "Time", |
| 65 | "path": "/time-logs", |
| 66 | "blurb": "Hours logged against tasks, and the ones waiting for an approver", |
| 67 | "surface": "member", |
| 68 | "group": "Work", |
| 69 | "order": 45 |
| 70 | } |
| 71 | ], |
| 72 | "attention": [ |
| 73 | { |
| 74 | "id": "time_to_approve", |
| 75 | "object_id": "system_time_attention", |
| 76 | "label": "Time to approve", |
| 77 | "path": "/time-logs", |
| 78 | "group": "Money", |
| 79 | "severity": "normal", |
| 80 | "nav_id": "time_logs" |
| 81 | } |
| 82 | ] |
| 83 | } |