mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
"Hide card counter list on All Boards" and "Hide board member list on All Boards"
were in the Layout pane, which is about logos, links and head tags. They are about
what All Boards SHOWS, which is what the Boards visibility pane is for - its i18n
key is tableVisibilityMode, but the label admins see is "Boards visibility". Both
settings now sit there, saved by that pane's Save button.
The move had a trap. The Layout save read them as
$('input[name=hideCardCounterList]:checked').val() === 'true'
Once the radios are no longer in the Layout pane, :checked matches nothing,
.val() is undefined, the comparison yields FALSE, and pressing Save on Layout
would silently turn BOTH settings off - a data change from a pane that no longer
shows them. So the reads and the two $set keys are removed from the Layout save,
not just the markup.
The new save guards the same class of mistake from the other side: it writes each
flag only when its radio was actually found, and sends no update at all when it
found neither. The two flags live in Settings while the pane's own
allowPrivateOnly lives in TableVisibilityModeSettings, so this is a second,
separate write.
The i18n keys are untouched - the strings only moved - so no translation is lost.
Tests: tests/boardsVisibilitySettings.test.cjs pins that the pane it targets is
really the one labelled "Boards visibility", that both settings are in it and
gone from Layout, that the Layout save no longer writes them (the trap), that the
new save is guarded against writing a value it did not find, and that the i18n
keys are unchanged. It fails on the pre-move code.
Thanks to xet7 !
112 lines
9.2 KiB
JSON
112 lines
9.2 KiB
JSON
{
|
|
"name": "wekan",
|
|
"version": "v10.37.0",
|
|
"description": "Open-Source kanban",
|
|
"private": true,
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/wekan/wekan.git"
|
|
},
|
|
"license": "MIT",
|
|
"bugs": {
|
|
"url": "https://github.com/wekan/wekan/issues"
|
|
},
|
|
"homepage": "https://wekan.fi",
|
|
"meteor": {
|
|
"mainModule": {
|
|
"client": "client/main.js",
|
|
"server": "server/main.js"
|
|
},
|
|
"testModule": {
|
|
"client": "client/lib/tests/index.js",
|
|
"server": "server/lib/tests/index.js"
|
|
},
|
|
"modern": true
|
|
},
|
|
"scripts": {
|
|
"test": "meteor test --once --driver-package meteortesting:mocha",
|
|
"test:unit:node": "node tests/filenameSanitizer.test.cjs && node tests/cardBoardConsistency.test.cjs && node tests/cardUrl.test.cjs && node tests/defaultSwimlane.test.cjs && node tests/cardMoveModifier.test.cjs && node tests/authenticationMethod.test.cjs && node tests/linkedCardTarget.test.cjs && node tests/staleWhileRevalidate.test.cjs && node tests/restArrayParam.test.cjs && node tests/minicardLabelHeight.test.cjs && node tests/dateUtils.normalizeDigits.test.cjs && node tests/reconcileBoardTeamMembers.test.cjs && node tests/rulesBoardSelector.test.cjs && node tests/ruleActionResolve.test.cjs && node tests/boardBackground.test.cjs && node tests/weekStart.test.cjs && node tests/ldapUsernameSlug.test.cjs && node tests/ldapGroupAllowlist.test.cjs && node tests/ldapConnectionRelease.test.cjs && node tests/htmljsArrayContent.test.cjs && node tests/cardDescriptionDraft.test.cjs && node tests/commentDraft.test.cjs && node tests/attachmentDeleteGuard.test.cjs && node tests/ruleMoveAction.test.cjs && node tests/snapMigrationRecovery.test.cjs && node tests/migrationAttachmentExtraction.test.cjs && node tests/attachmentRepair.test.cjs && node tests/attachmentStoragePath.test.cjs && node tests/schemaUpgradeSteps.test.cjs && node tests/cpuExec.test.cjs && node tests/cpuExecWiring.test.cjs && node tests/ferretdbHasData.test.cjs && node tests/ferretdbPolling.test.cjs && node tests/ferretdbWaitTimeout.test.cjs && node tests/ferretdbOplog.test.cjs && node tests/ferretdbOplogReset.test.cjs && node tests/ferretdbTextDataBackup.test.cjs && node tests/recoveryPlan.test.cjs && node tests/recoveryReportQuery.test.cjs && node tests/recoveryEventsJsonl.test.cjs && node tests/recoveryReportWiring.test.cjs && node tests/recoveryMaintenance.test.cjs && node tests/importMemberMapping.test.cjs && node tests/boardMemberMapPlan.test.cjs && node tests/withDeadline.test.cjs && node tests/importVirtualMembers.test.cjs && node tests/sandstormMigrationBridge.test.cjs && node tests/fileNameDisplay.test.cjs && node tests/uploadFileName.test.cjs && node tests/diskSpace.test.cjs && node tests/fileTypeCorrection.test.cjs && node tests/fileHardeningGuards.test.cjs && node tests/cpuHighTracker.test.cjs && node tests/cpuMonitorWiring.test.cjs && node tests/buttonThemeColors.test.cjs && node tests/uiDensity.test.cjs && node tests/editorSubmitKey.test.cjs && node tests/isoWeek.test.cjs && node tests/boardCopyDefaults.test.cjs && node tests/linkedCardTitle.test.cjs && node tests/commentActivity.test.cjs && node tests/swimlaneSort.test.cjs && node tests/subtaskCopy.test.cjs && node tests/subtasksDefaultBoard.test.cjs && node tests/scrollbarCss.test.cjs && node tests/minicardBidiIsolation.test.cjs && node tests/notificationCleanup.test.cjs && node tests/cardSearch.test.cjs && node tests/linkedCardMembers.test.cjs && node tests/verificationEmail.test.cjs && node tests/boardSortReorder.test.cjs && node tests/checklistItemTitles.test.cjs && node tests/swimlaneFilter.test.cjs && node tests/popupOffset.test.cjs && node tests/popupAfterConfirm.test.cjs && node tests/defaultBoard.test.cjs && node tests/upcomingUiGuards.test.cjs && node tests/linkedCardCover.test.cjs && node tests/inviteEmailLanguage.test.cjs && node tests/domainTablePage.test.cjs && node tests/mongoSelectorSafety.test.cjs && node tests/filterDateNull.test.cjs && node tests/listMoveSwimlane.test.cjs && node tests/cardDragSwimlaneScrollRefresh.test.cjs && node tests/undoRedoSelection.test.cjs && node tests/softDelete.test.cjs && node tests/globalThemeColor.test.cjs && node tests/themeCategories.test.cjs && node tests/themeColorPicker.test.cjs && node tests/uiFonts.test.cjs && node tests/sandstormAutoOpen.test.cjs && node tests/createListParams.test.cjs && node tests/addBoardTileHeight.test.cjs && node tests/multiSelectionButton.test.cjs && node tests/headerHamburger.test.cjs && node tests/changeLanguageColumns.test.cjs && node tests/cardsLoading.test.cjs && node tests/base64Chunk.test.cjs && node tests/backupPaths.test.cjs && node tests/backupCron.test.cjs && node tests/avatarUrlSafety.test.cjs && node tests/changeAvatarPopup.test.cjs && node tests/devOverlayRuntimeErrors.test.cjs && node tests/boardHeaderOneLine.test.cjs && node tests/securityReportScript.test.cjs && node tests/tablePage.test.cjs && node tests/leftMenu.test.cjs && node tests/boardsVisibilitySettings.test.cjs && node tests/snapMigrationSwitchOrder.test.cjs && node tests/importedUserReconciliationPlan.test.cjs && node tests/ldapPhoto.test.cjs && node tests/importedBoardMemberPlan.test.cjs && node tests/migrateNonFinite.test.cjs && node tests/addListComposerOptions.test.cjs && node tests/sidebarWidth.test.cjs && node tests/sidebarResize.test.cjs && node tests/securityMeifukun.test.cjs && node tests/securityLog.test.cjs && node tests/exporterBackpressure.test.cjs && node tests/ldapEmailFieldmap.test.cjs && node tests/listWidthDefaults.test.cjs && node tests/changelogCommitLinks.test.cjs && node tests/testsAreRegistered.test.cjs && node tests/dragDropTouch.test.cjs && node tests/statusActive.test.cjs && node tests/eventLogProblems.test.cjs && node tests/obsoleteBoardMigrationsRemoved.test.cjs && node tests/dragHandles.test.cjs && node tests/buildDevServer.test.cjs && node tests/unit/resetPasswordEmail.test.js",
|
|
"test:unit:all": "npm run test:unit:node && node tests/cards.stickers.test.js && node tests/stickers.test.js && node tests/stickers.packs.test.js && node tests/linkCardPopup.test.js && node tests/trelloCreator.import.test.js && node tests/trelloImport.maplink.test.js && node tests/trelloImport.zip.test.js && node tests/wekanCreator.import.test.js && node tests/wekanCreator.inconsistent.test.js && node tests/unit/oauth2-admin-groups.test.js",
|
|
"test:watch": "meteor test --driver-package meteortesting:mocha",
|
|
"test:e2e": "node tests/e2e/list-regressions.js",
|
|
"test:playwright": "cd tests/playwright && npm install && npx playwright test",
|
|
"test:playwright:ui": "cd tests/playwright && npx playwright test --ui",
|
|
"test:playwright:all": "cd tests/playwright && WEKAN_PLAYWRIGHT_ALL=1 npx playwright test --project=chromium --project=firefox --project=webkit",
|
|
"test:playwright:report": "cd tests/playwright && npx playwright show-report",
|
|
"playwright:install": "cd tests/playwright && npx playwright install --with-deps",
|
|
"postinstall": "node scripts/patch-yargs-dirname.cjs"
|
|
},
|
|
"devDependencies": {
|
|
"@meteorjs/rspack": "2.0.1",
|
|
"@rsdoctor/rspack-plugin": "^1.5.7",
|
|
"@rspack/cli": "1.7.11",
|
|
"@rspack/core": "1.7.11",
|
|
"@typescript-eslint/eslint-plugin": "^8.63.0",
|
|
"@typescript-eslint/parser": "^8.60.1",
|
|
"chai": "^6.2.2",
|
|
"chai-as-promised": "^8.0.2",
|
|
"css-loader": "^7.1.4",
|
|
"mongodb": "^7.5.0",
|
|
"puppeteer": "^25.3.0",
|
|
"sinon": "^22.0.0",
|
|
"sinon-chai": "^4.0.1",
|
|
"style-loader": "^4.0.0"
|
|
},
|
|
"dependencies": {
|
|
"@aws-sdk/client-s3": "^3.1090.0",
|
|
"@aws-sdk/lib-storage": "~3.1085.0",
|
|
"@azure/storage-blob": "^12.33.0",
|
|
"@babel/parser": "^7.29.2",
|
|
"@babel/runtime": "^8.0.0",
|
|
"@google-cloud/storage": "^7.21.0",
|
|
"@meteorjs/reify": "^0.25.4",
|
|
"@rwap/jquery-ui-touch-punch": "^1.0.11",
|
|
"@swc/helpers": "^0.5.23",
|
|
"@textcomplete/contenteditable": "^0.1.13",
|
|
"@textcomplete/core": "^0.1.13",
|
|
"@textcomplete/textarea": "^0.1.13",
|
|
"@tweedegolf/sab-adapter-amazon-s3": "^3.0.4",
|
|
"@tweedegolf/sab-adapter-azure-blob": "^3.0.2",
|
|
"@tweedegolf/sab-adapter-google-cloud": "^3.0.2",
|
|
"@wekanteam/dragscroll": "^0.0.9",
|
|
"@wekanteam/exceljs": "^4.7.3",
|
|
"@wekanteam/html-to-markdown": "^1.0.3",
|
|
"@wekanteam/meteor-globals": "^1.1.6",
|
|
"@wekanteam/meteor-reactive-cache": "^1.0.8",
|
|
"autosize": "^6.0.1",
|
|
"bson": "^7.3.0",
|
|
"dompurify": "^3.4.12",
|
|
"escape-string-regexp": "^5.0.0",
|
|
"filesize": "^11.0.22",
|
|
"glob": "^13.0.6",
|
|
"hotkeys-js": "^4.0.2",
|
|
"i18next": "^26.3.6",
|
|
"i18next-sprintf-postprocessor": "^0.2.2",
|
|
"archiver": "^8.0.0",
|
|
"jquery": "^3.7.1",
|
|
"jquery-ui": "^1.14.2",
|
|
"jszip": "^3.7.1",
|
|
"unzipper": "^0.12.3",
|
|
"limax": "^4.2.3",
|
|
"markdown-it": "^14.1.1",
|
|
"markdown-it-emoji": "^3.0.0",
|
|
"markdown-it-math": "^6.0.0",
|
|
"meteor-accounts-t9n": "^2.6.0",
|
|
"meteor-node-stubs": "file:npm-packages/meteor-node-stubs",
|
|
"papaparse": "^5.5.4",
|
|
"pretty-ms": "^9.3.0",
|
|
"temml": "^0.13.3",
|
|
"underscore": "^1.13.8"
|
|
},
|
|
"overrides": {
|
|
"sourcemap-codec": "npm:@jridgewell/sourcemap-codec@^1.4.15",
|
|
"elliptic": "^6.6.1",
|
|
"archiver-utils": {
|
|
"glob": "$glob"
|
|
},
|
|
"uuid": "^14.0.0",
|
|
"webpack-dev-server": "^5.2.6",
|
|
"http-proxy-middleware": "^2.0.10"
|
|
}
|
|
}
|