oliver-zehentleitner / maity

clean-up: web docs: README module tree and views.md entries the code outgrew

Sign in to report

tsk-mcrgf42cn602 Open

From the web clean-up audit, area 17 (tsk-hgnbapyw7hnh), read at 80647565 (findings sent to lotse, seq 125424, 125449, 125484, 125544). Line numbers are from 80647565, so re-check them on current main. Docs only, no code.

#10, #58 (docs part), #73: the Layout tree in web/README.md has drifted.

  • web/README.md:1877-1943 misses many modules that index.html loads, including:
  • errors.js, step-up.js, not-found.js, site-chrome.js, site-io.js, product-line.js
  • instance-admin.js and the admin-*.js files, auth-pages.js, json-io.js, landing.js, statistics.js, register.js, password-reset.js, visitor.js, person.js, public-page.js
  • orgs.js, security.js, your-data.js, second-factor.js, report.js, waiting.js
  • project-names.js is listed under tools/ (:1939).
  • The app.js line (:1894) omits the sign-in page, the Settings view, the refresh loop and the failure page.
  • README:1929 says account.js holds "pictures, preferences and changing the password". Preferences are in preferences.js.
  • README:1906 calls org.js "a section of the Overview". It is now the Organisation tab of Team and the fleet tab of Agents.
  • Proposal: regenerate the list from the script order in index.html, one line per module. Ideally add a check that every script in index.html has a line.

#73: Instance admin text.

  • web/context/views.md:2396-2401 says the admin area has addresses only for /admin/registration and /admin/reports/id. app.js:141-144 also routes /admin/maintenance and /admin/pages with landing, legal, sign-in, sign-up and site. That meets the "Revisit when" of the entry (:2388).
  • README:201 omits max_attachment_storage_per_project from Limits (admin-limits.js:38-40, MiB), and lists /admin/pages without sign-in and sign-up.

#19: Chat text.

  • views.md:297-316 is still active and says history is "read to its end, in pages of 200, because the hub returns the oldest page first". The code reads the newest page in two requests (chat.js:380-405), per the later decision at views.md:2594-2612. Set it to superseded, keeping its day and grouping parts.
  • views.md:440 says group chats are listed newest first. The list follows the four pin/unread bands of the hub (chat.js:57-65, chats.js:4-6).
  • Code comments and constants:
  • chat.js:414-415 says HISTORY_PAGE is the size history is read in to its end. It is now used only by resync, while checkDelivery hardcodes 200 (chat.js:870, 875).
  • group-chat.js:516 and :551 hardcode 30000 instead of LIST_MS.
  • Use the constants.

#29: Invite, join and placements text.

  • invite.js:2-3 and :130 say the invite form is "on the Members page", and views.md:2496 says "The Members, invite form". membersPanel is used only by /invite (invitations.js:42-43). Rename it to invitationsPanel.
  • join.js:1 says "inside the Agents view of a project". The join panel is also mounted from Team and /agents (page-head.js:62, agents-page.js:327).
  • placements.js:1-2 and views.md:3111-3112 say placements are on Agents. They have their own view and tabs (agents-page.js:569, :374).

Effort and risk: S each (4 S). Risk none.

Order: best last, after the structural web clean-ups, since some of them move or split modules (notify-settings, dom.js, api.js, the Settings view).