Changeset 9ce14b8 in Klonkt for src/routes/guardian.js
- Timestamp:
- 08/07/2026 11:49:21 PM (5 weeks ago)
- Branches:
- main
- Children:
- b2646cc
- Parents:
- 23da947
- git-author:
- Robin <roboburr@…> (08/07/2026 11:49:20 PM)
- git-committer:
- roboburr <roboburr@…> (08/07/2026 11:49:21 PM)
- File:
-
- 1 edited
-
src/routes/guardian.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/guardian.js
r23da947 r9ce14b8 66 66 // Oppikken en afhandelen van een hulpvraag (shaer-lgo). 67 67 'help_pick', 'help_close', 'help_picked_by', 'help_handled_by', 'help_handled_note', 68 'help_close_ask', 'help_close_yes', 'help_just_now', 'help_hours', 'help_days', 68 'help_close_ask', 'help_close_yes', 'help_just_now', 'help_hours', 'help_days', 'help_former_ward', 69 69 'help_archive', 'help_archive_hide', 'panel_history', 70 70 'gate_propose_open', 'gate_propose_close', 'gate_default_off', … … 90 90 // het scherm dat een guardian in een haast openslaat. 91 91 const helpStaat = Guardianship.help.statusFor(help.map((h) => h.object_uri)); 92 // Wie bewaak je NU nog? Een hulpvraag van een oud-ward is niet meer van jou en 93 // hoort niet in de lijst die om je aandacht vraagt te blijven staan. 94 const mijnWards = new Set(Guardianship.listWards(site.slug).map((w) => w.other_uri)); 92 95 const helpItems = help.map((h) => ({ 93 96 ...h, 94 97 // Bij twijfel OPEN. Een hulpvraag die er afgehandeld uitziet terwijl hij dat 95 98 // niet is, is de gevaarlijke fout -- niet andersom. 96 state: helpStaat.get(h.object_uri) || { open: true, pickedUpBy: [], handled: null, ageMs: null }, 99 state: Guardianship.help.withWardship( 100 helpStaat.get(h.object_uri) || { open: true, pickedUpBy: [], handled: null, ageMs: null }, 101 mijnWards.has(h.actor_uri), 102 ), 97 103 // The dashboard is built in the browser, so it gets the body finished: the 98 104 // same partial de Krant and Berichten use. A 🛟 often carries a screenshot
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)