Files
wekan/client/features/settings.js
T
Lauri Ojansivu b72a4996dd Admin Panel: remove the Features tab.
Its last three panes - Performance, Security and Notifications - moved to Admin Panel /
Problems in 4df87fd6b, leaving a tab that opened an empty page.

Removed: the /admin-features route, the tab in the Admin Panel bar, its isFeaturesActive
helper, both imports, and adminFeatures.jade / adminFeatures.js.

NOT removed, and this is the whole risk in the change: the three pane templates and
their helpers and handlers lived in those two files. Deleting them would have left
Problems rendering three templates that no longer exist - which is not a build error.
The app compiles and loads, and then throws `No such template: featuresPerformance`
when the pane is opened, losing whatever else that view was drawing. They move to
adminReports.jade / adminReports.js instead, with the page that renders them, together
with the toggleSettingField() helper the handlers call.

tests/templateIncludesResolve.test.cjs is new and general: every `+templateName` in
every .jade must name a template that exists. It is the mirror of
templateHandlersExist.test.cjs, which catches a HANDLER on a template that does not
exist; between them a template can neither be referenced without being defined nor
extended without existing. It also asserts the removed page's route, tab, helper and
imports are gone - a tab that survives its page leads to a route rendering a template
that is not there.

Five includes are package-provided rather than ours (fullcalendar, atForm, mentions,
markdown) plus one pre-existing (subtaskDeleteDialog); they are listed explicitly so
the check stays honest rather than being loosened.

Tests: 1378 passing.

Thanks to xet7 !
2026-07-26 00:17:58 +03:00

43 lines
2.3 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';
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/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';