| 27 |
27 |
|
//! `Router::merge`, so composition is a chain of functions that each take the
|
| 28 |
28 |
|
//! router and give it back, rather than a table assembled somewhere central
|
| 29 |
29 |
|
//! that has to be kept in step with the modules.
|
|
30 |
+ |
//!
|
|
31 |
+ |
//! # Which JS file belongs to which described module
|
|
32 |
+ |
//!
|
|
33 |
+ |
//! Measured 2026-08-15: 48 files under `frontend/js/` carry 327 `esc()` call
|
|
34 |
+ |
//! sites, plus 2 more in the `js/tests/run.js` gate. Every one of them is
|
|
35 |
+ |
//! accounted for below, in one of four categories.
|
|
36 |
+ |
//!
|
|
37 |
+ |
//! This table exists because without it every claim about what is portable next
|
|
38 |
+ |
//! is a guess. Three such claims were made and retracted, each of them wrong in
|
|
39 |
+ |
//! a way one grep would have caught. Read the flat count correctly: a described
|
|
40 |
+ |
//! screen does not delete its JS counterpart while the feature is off, so both
|
|
41 |
+ |
//! exist and both are counted. The count starts falling at the flip. Progress is
|
|
42 |
+ |
//! the first list, not the number.
|
|
43 |
+ |
//!
|
|
44 |
+ |
//! ## Described, and retires at the flip (22 files, 193 sites)
|
|
45 |
+ |
//!
|
|
46 |
+ |
//! | Module | JS counterpart | Sites |
|
|
47 |
+ |
//! |---|---|---|
|
|
48 |
+ |
//! | [`projects`] | `projects.js` 8, `projects-render.js` 16 | 24 |
|
|
49 |
+ |
//! | [`contacts`] | `contacts.js` 12, `contacts-render.js` 29, `contact-dashboard.js` 16 | 57 |
|
|
50 |
+ |
//! | [`tasks`] | `task-overview.js` | 26 |
|
|
51 |
+ |
//! | [`emails`] | `emails.js` 3, `emails-render.js` 5, `emails-reader.js` 13, `emails-filter.js` 3, `emails-compose.js` 2 | 26 |
|
|
52 |
+ |
//! | [`weekly_review`] | `weekly-review.js` 3, `weekly-review-render.js` 16 | 19 |
|
|
53 |
+ |
//! | [`day_planning`] | `day-planning-render.js` 8, `day-planning-schedule.js` 4, `day-planning-paint.js` 1 | 13 |
|
|
54 |
+ |
//! | [`problems`] | `problems.js` | 10 |
|
|
55 |
+ |
//! | [`monthly_review`] | `monthly-review.js` 3, `monthly-review-render.js` 5 | 8 |
|
|
56 |
+ |
//! | [`settings`] | `settings.js` | 6 |
|
|
57 |
+ |
//! | [`board`] | `tasks-kanban.js` 3, `task-board.js` 1 | 4 |
|
|
58 |
+ |
//!
|
|
59 |
+ |
//! [`projects`] carries its dashboard as a submodule, which is the eleventh
|
|
60 |
+ |
//! described screen against ten modules here.
|
|
61 |
+ |
//!
|
|
62 |
+ |
//! ## Stays JavaScript, by decision (4 files, 50 sites)
|
|
63 |
+ |
//!
|
|
64 |
+ |
//! - `settings-sync.js` 17, `settings-sharing.js` 14, `email-accounts.js` 10.
|
|
65 |
+ |
//! Host-bound: OAuth flow, credential handling, `invoke(`.
|
|
66 |
+ |
//! - `search.js` 9. Settled 2026-08-13 (quasicoherent `d52884b0`): a described
|
|
67 |
+ |
//! field's state is its value, and the caret is the renderer's.
|
|
68 |
+ |
//!
|
|
69 |
+ |
//! These 50 never reach zero by porting. Retiring `escape.js` means giving them
|
|
70 |
+ |
//! typed escaping some other way, or accepting that four files keep an escaper.
|
|
71 |
+ |
//!
|
|
72 |
+ |
//! ## Un-ported screens (12 files, 57 sites)
|
|
73 |
+ |
//!
|
|
74 |
+ |
//! A described counterpart could exist and does not. This is the candidate list,
|
|
75 |
+ |
//! and it is the only place to look for what is portable next.
|
|
76 |
+ |
//!
|
|
77 |
+ |
//! - The task **list**, which is not [`tasks`]: that module is the single-task
|
|
78 |
+ |
//! drawer at `GET /tasks/{id}`, and [`board`] is the kanban. The list itself
|
|
79 |
+ |
//! has no counterpart. `tasks.js` 2, `tasks-render.js` 8, `tasks-filter.js` 2,
|
|
80 |
+ |
//! `task-forms.js` 1, `saved-views.js` 1. 14 sites.
|
|
81 |
+ |
//! - `import-external.js` 11, `import.js` 5, `export.js` 2. 18 sites.
|
|
82 |
+ |
//! - `events.js` 10. Its grid rendering is bespoke; whether the CRUD/list half
|
|
83 |
+ |
//! is a real candidate is unchecked, and per this table that is a claim to
|
|
84 |
+ |
//! measure rather than assert.
|
|
85 |
+ |
//! - `time-tracking.js` 6, `time-summary.js` 3. Waits on quasicoherent
|
|
86 |
+ |
//! `f00244a6`, who owns a ticking clock.
|
|
87 |
+ |
//! - `task-graph.js` 6. Draws the blocking DAG.
|
|
88 |
+ |
//!
|
|
89 |
+ |
//! ## Not a screen (10 files, 27 sites)
|
|
90 |
+ |
//!
|
|
91 |
+ |
//! Shared chrome and behaviour with no screen to belong to, so no port will
|
|
92 |
+ |
//! reach them and they are not candidates. `components-modal.js` 7,
|
|
93 |
+ |
//! `compose-form.js` 5, `whats-new.js` 3, `attachments.js` 2,
|
|
94 |
+ |
//! `autocomplete.js` 2, `bulk-actions.js` 2, `plan-review-toggle.js` 2,
|
|
95 |
+ |
//! `snooze.js` 2, `form-modal.js` 1, `groups.js` 1.
|
|
96 |
+ |
//!
|
|
97 |
+ |
//! Together with the 50 above, these 77 sites are what the done-condition
|
|
98 |
+ |
//! actually has to answer for. Porting every candidate screen leaves them.
|
| 30 |
99 |
|
|
| 31 |
100 |
|
use std::sync::Arc;
|
| 32 |
101 |
|
|