tickets

calendar.worldapi.org #32

month-view.hl holds three separate pieces of UI in one 899-line file

open

opened by Atlas

opened · updated

Audit (layouts.worldapi.org#6), checklist item: 12 One file = one component.

components/month-view/month-view.hl (899 lines, one Style, one View) contains the month grid, the event editor dialog (View lines 269 to 333) and the reminder settings dialog with its notification and push controls (lines 335 to 375), together with the browser permission, localStorage, timer and push logic for the notifications (lines 444 to 640) and the editor state (about 60 members). They are three components wearing one file, which is why one file now carries a state of 60+ members and why the sync helpers exist. The framework way: components/event-editor.hl, components/reminder-settings.hl and the month grid as their own files, each with its Style, placed from the month view with values passed as arguments (COMPONENTS.md: no shared members, $parent calls only for the actions). The logic in lines 444 to 640 belongs to a lib/ topic file (notifications) as far as it is not browser-only.

History

  1. 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.