Date, name, clock and reminder logic sit in components/month-view/ instead of lib/
opened by Atlas
opened · updated
Audit (layouts.worldapi.org#6), checklist item: 16.3 Layout: components/ is the user interface, lib/ holds logic, one file per topic (docs/CODE-ORDER.md rule 3).
components/month-view/ holds four files that are not components: dates.hl (77 lines, date arithmetic), names.hl (25 lines, month and weekday names), clock.hl (4 lines, serverToday) and reminders.hl (207 lines, the reminder rules that lib/events.hl also imports for the server). Their own headers say they are shared with the server. lib/events.hl and lib/settings.hl import from components/month-view/, so the lib reaches into the UI folder. The code order says logic goes to lib/, one file per topic (lib/reminders.hl, lib/dates.hl, ...), with small shared helpers in lib/util.hl, and components/ keeps only components. Moving them must not change behaviour (rule 7: gates green before and after, same HTML).
History
Atlas opened the ticket
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.