mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
Admin Panel / Settings / Version was ONE table of 38 rows. The WeKan version, the OS load average, the DDP transport and a V8 heap counter were the same kind of thing in it: one flat list, read top to bottom, with no way to jump to the part you came for. Five tables now, each under a small heading, in the order somebody debugging reads them - Platform (what this IS), OS (what it runs on), Meteor (how it talks to the client: reactivity, reactivity order, DDP transport), Database (type, versions, commits, storage engine, OpLog, sessions) and Node (version, heap, memory). Reactivity and DDP moved to Meteor, where they belong: they are how the client is fed, and they were the two rows most often read as database settings. Whether an OpLog EXISTS stays with the database, because that is a property of it. No row was dropped; a test lists all 38 by name and requires each to still be shown. NEW ROW: what WeKan is installed as - bundle.zip, Snap, Docker or Sandstorm. It is the first thing a support answer turns on, and the pane never said it: the same version keeps its data somewhere else, carries a different database and gives the admin different reach in each of the four. models/lib/platformPackaging.js detects it, most-specific-first: an explicit WEKAN_PACKAGING wins (a packaging that knows what it is should say so, and it is how a future .deb or chart names itself), then Sandstorm, then snapd's own SNAP/SNAP_NAME, then a container runtime's marker file, then the bundle. Sandstorm and Snap are asked BEFORE the container markers on purpose: a grain is a container, and a confined snap can look like one, so the other order answers "Docker" for both. It claims nothing it cannot know - there is no "source checkout" answer, because a `meteor run` and an unpacked bundle are identical from inside the process. The detection is a pure function taking the environment, the Sandstorm flag and a file-exists callback, so all nine of its tests run here without a snap, a container or a grain - including that an empty SNAP is not a snap, that an empty WEKAN_PACKAGING falls through rather than blanking the field, and that an unreadable root answers bundle.zip instead of throwing an admin's Version page away. The headings are SMALLER than the pane title above them, and a test compares the two font sizes rather than trusting the CSS to stay that way: five headings at 1.25rem would read as five pane titles and "Version" would be lost among them, and an unstyled h3 - the browser default here - is larger still. Six new English strings; the other languages fall back to English until translated, as usual. tests/clientBundleImports.test.cjs caught the new stylesheet before it could matter: package.json sets meteor.mainModule, so a .css nobody imports is simply not in the bundle. It is imported from client/features/settings.js now. Thanks to xet7 !
51 lines
2.9 KiB
JavaScript
51 lines
2.9 KiB
JavaScript
import '/client/components/settings/adminReports.jade';
|
|
import '/client/components/settings/attachments.jade';
|
|
import '/client/components/settings/attachmentSettings.jade';
|
|
import '/client/components/settings/connectionMethod.jade';
|
|
import '/client/components/settings/informationBody.jade';
|
|
import '/client/components/settings/invitationCode.jade';
|
|
import '/client/components/settings/migrationProgress.jade';
|
|
import '/client/components/settings/peopleBody.jade';
|
|
import '/client/components/settings/settingBody.jade';
|
|
import '/client/components/settings/settingHeader.jade';
|
|
import '/client/components/settings/leftMenu.jade';
|
|
import '/client/components/settings/tablePage.jade';
|
|
import '/client/components/settings/translationBody.jade';
|
|
|
|
import '/client/components/settings/adminReports.js';
|
|
import '/client/components/settings/attachments.js';
|
|
import '/client/components/settings/connectionMethod.js';
|
|
import '/client/components/settings/informationBody.js';
|
|
import '/client/components/settings/invitationCode.js';
|
|
// The left menu's caret. Its .jade above only DRAWS the caret: the click that
|
|
// folds the menu and the `isLeftMenuCollapsed` helper that says whether it is
|
|
// folded live here, and package.json sets meteor.mainModule, so a file nobody
|
|
// imports is simply not in the bundle. Without this line the caret rendered and
|
|
// did nothing - an unregistered helper is undefined, so the panel never took
|
|
// the `collapsed` class either. docs/Design/Page/Left-Menu.md
|
|
import '/client/components/settings/leftMenu.js';
|
|
import '/client/components/settings/lockedUsersBody.js';
|
|
import '/client/components/settings/migrationProgress.js';
|
|
import '/client/components/settings/peopleBody.js';
|
|
import '/client/components/settings/settingBody.js';
|
|
import '/client/components/settings/settingHeader.js';
|
|
import '/client/components/settings/problemsSummary.jade';
|
|
import '/client/components/settings/problemsSummary.js';
|
|
import '/client/components/settings/translationBody.js';
|
|
|
|
// adminReports.css was missing here, so NONE of the Admin Panel report styling
|
|
// was in the bundle (package.json sets meteor.mainModule, so a CSS file that is
|
|
// never imported is simply not loaded). That is why the report search box and
|
|
// the prev/next pagination buttons fell back to the global `button` rule in
|
|
// forms.css and rendered with a black/grey background instead of the theme.
|
|
import '/client/components/settings/adminReports.css';
|
|
import '/client/components/settings/attachments.css';
|
|
import '/client/components/settings/informationBody.css';
|
|
import '/client/components/settings/lockedUsersBody.css';
|
|
import '/client/components/settings/migrationProgress.css';
|
|
import '/client/components/settings/peopleBody.css';
|
|
import '/client/components/settings/settingBody.css';
|
|
import '/client/components/settings/settingHeader.css';
|
|
import '/client/components/settings/tablePage.css';
|
|
import '/client/components/settings/translationBody.css';
|