mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
d1be2d2131714d023a22a6ffc0a94de651dc7f4e
26
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
579de7d6af |
The Cloud Panel is Weddy's, not WeKan's: WeKan stays Meteor 3.
Admin Panel / People / Cloud and the Cloud Panel (
|
||
|
|
73db2a28c3 |
Cloud Panel: many WeKan domains from one Weddy, for the SuperAdmin at the Cloud Panel Domain.
Weddy (wekan/caddy-wekan-plugin) runs a WeKan for every domain, each in its own directory - files/domains/<domain>/files/db/ for its database - and starts the first domain's WeKan with WEDDY_CLOUD_DIR, every customer's with WEDDY_TENANT=true. - Admin Panel / People / Cloud, only in that first WeKan and only for a site admin (a per-tenant admin's whitelisted menu never has it): Cloud Panel Domain, e.g. cloud.wekan.team, and SuperAdmin Username, a username or e-mail address. - /cloud, the Cloud Panel, where the SuperAdmin is taken at the Cloud Panel Domain: Settings with the left menus Domains and CloudFlare, in the Admin Panel's layout. Domains is a table page - Domain, Customer name, Customer email address, Billing email address, Start Date, End Date and the TLS Weddy got - with a form to add and edit. CloudFlare is a write-only API key field. - server/methods/cloudPanel.js checks in every method again that the caller is the SuperAdmin and the request's Host is the Cloud Panel Domain - not X-Forwarded-Host, which a client could send itself. The collections are not published. Every change writes WEDDY_CLOUD_DIR/domains.json for Weddy; the key goes to cloudflare.json, mode 0600, and is never sent back. - models/lib/cloudPanel.js has the rules, shared by client and server; its domain rule is the same as Weddy's, since the name becomes a directory. - Customers' WeKans show none of it. The 15 new strings are added as pending Transifex, written in Finnish, and translated into every other locale. Low-confidence translations: ace ak an ay ba bho bi bm bo bua chr co csb cv dz ee ff fj fo fur gn gv haw hsb ht ig iu kl kok ks kw lg lld mai mi nah nap nd nso oc om pap qu rm rn rup rw sah sc scn se sm sn so ss st szl tig tlh tn to tpi ts uz-AR ve ve-CC ve-PP vo wa wa-RR wal wo wuu-Hans yi zgh. Transifex translations replace them when they arrive. tests/cloudPanel.test.cjs: the rules with their negatives, and the security properties the source keeps. The node suites pass, 2160 of 2160. The templates are not compiled here (no Jade compiler in this sandbox); a Meteor build checks them. docs/Platforms/FOSS/Weddy/Cloud-Panel.md is the design. Thanks to xet7 ! |
||
|
|
c99aa7f845 |
Admin Panel / Problems / Password length, and a changed password signs every session out.
PASSWORD_MIN_LENGTH (default 8) is now the length below which a sign-in is REPORTED, in the new Admin Panel / Problems / Password length, and PASSWORD_MIN_LENGTH_ENFORCE (off by default) is what makes it a rule: a shorter new password is refused, and an account that signs in with an older shorter one sees only "Change your password" until it has a long enough one. Signing in is never refused, enforced or not, so nobody is locked out by a minimum set after their password. LDAP, OAuth2, OIDC, SAML, CAS and Sandstorm accounts are neither reported nor asked: their password is their provider's. An administrator's Set password no longer applies WeKan's policy to such an account. Meteor sends a password hashed, so only the browser knows its length: it notes it on the sign-in form and, after a sign-in that worked, says "it was short" - never the password or its length. The page has both settings and a table, one row per account: username, first and last short-password login, the latest IPv4 and IPv6 address with the country's flag and city when a CDN says where it is, the count, and when it was fixed, with the Too short (default) / Fixed / All filter. Fixed is a changed password not seen short since; a short one seen again reopens the row. Changing one's own password - Member Settings, the forced change, a reset link - now signs EVERY session of the account out, the one that changed it too, and only the new password signs in again. The browser goes to the sign-in page as soon as it is signed out, since the server closes the connection before the answer can arrive. Documented in docs/Features/Admin-Panel/Problems/Password-length.md, the settings on every platform. The new strings are in every locale in English for now. Tests: passwordPolicy, passwordChangeRequired and shortPasswordLogins (node); password-min-length-signup-login, password-length-report and password-change-other-sessions (Playwright, Chromium and WebKit), which change each setting on the page and check what it does, and that sign-up with no mail server registers and signs the user in. Thanks to xet7 ! |
||
|
|
4d5b832499 |
Admin Panel / People / Audit log: what site administrators did.
Nothing recorded who set somebody's password, made somebody an admin, changed a login setting or restored a backup. Every call of those administrative methods by a site administrator is now kept, one document each, for a year: when, who, which action, the outcome - a refused call too - its arguments and the address. A password or a secret never reaches the trail: values under a credential-named key, the arguments that are a password by position, and a password inside a URL are replaced by [redacted]. An administrator editing cards is not in it, the trail is shown to site administrators only, and a trail that cannot be written never changes what the method did. It and the REQUIRE_2FA wrapper keep each other's marks, so neither wraps the other twice. The new interface strings are pending translation. Thanks to xet7 ! |
||
|
|
06b7ce994a |
Backup status: every run recorded, failures and overdue backups shown, old local backups pruned - in Admin Panel too.
The result of an Admin Panel backup lived only in the memory of the server process that ran it. After a restart, or on another pod of a multi-pod deployment, the Backup pane said "idle", so nobody could see whether last night's backup had worked. There was no history, no warning when a scheduled backup failed or did not run, and local backups were never cleaned up. - Every run, scheduled or "Backup now", is recorded in backupRuns: start and end, who or the schedule, scope, storage, status, size, duration and error. Records are kept 400 days. A run still "running" after 24 hours counts as failed, and a scheduled run skipped for another backup is recorded as failed. - Admin Panel / Problems / Backup shows the last success (overdue when its period has passed), the last failure with its error, the next run and the last 30 runs. The same status is above the schedule in Attachments / Backup. - Problems / Summary lists "Backup failed" and "Backup overdue". /metrics adds wekan_backup_last_success_timestamp_seconds, wekan_backup_last_run_timestamp_seconds, wekan_backup_last_run_success and wekan_backup_overdue for alerting. - BACKUP_KEEP_DAYS: after a successful backup, local backups of the same scope older than N days are deleted. The newest is always kept, and only a directory inside the backup root holding a backup.zip is removed. From the patch by Raymond-Voogt, and in Admin Panel as well: - BACKUP_KEEP_DAYS is the catalog's backup section (models/lib/authConfigCatalog.js), overridable beside the schedule in Admin Panel / Attachments / Backup and resolved through authEnv at every backup. - It is listed on every platform: the compose files, start-wekan.sh and .bat, the snap config and help, and the Dockerfile, which the patch's version had missed. Its platform hunks, written before #6789, were re-applied by hand. tests/backupRuns.test.cjs (21): the run records, overdue and pruning against a real directory, and the Admin Panel override, including that nothing reads the variable around it. tests/authConfigCatalog.test.cjs checks every platform. admin-attachment-retention.e2e.js checks the Backup pane shows the field. Thanks to Raymond-Voogt and xet7 ! Fixes #6790. |
||
|
|
7dc5399dc7 |
Remove code that a second copy replaced, and templates nothing draws.
- models/cards.js defined assignMember ... toggleAssigner twice in one
Cards.helpers({}); in an object literal the last key wins, so the first
twelve methods (about a hundred lines, with their own linked-board
branches) never ran. models/users.js had two copies of the swimlane-height
storage helpers, and the header's event map an empty
'click .js-open-bookmarks' the real handler replaced. Each first copy is
removed; what runs is unchanged.
- An Admin Panel attachment settings pane: attachmentSettings.jade (four
templates) and about 300 lines of settingBody.js for S3, transfer limits
and storage paths. No menu opened it and no template drew it; Admin Panel /
Attachments (attachments.js) is the one in use.
- Templates drawn by nothing: dateBadge, dateCustomField and
cardCustomFieldDate with its JS, orgAvatar and teamAvatar, the three
*ModalTitle templates of My Cards, Due Cards and Global Search, boardLists,
boardCreateRulePopup, addMemberPopupTest, and subtasksItems with the two
templates only it used.
- CSS repeated word for word: accessibility.css opened with a copy of
myCards.css's first 74 lines; list.css repeated its 768px collapsed-list
block at 1024px and 1200px, which 768px already covers; boardHeader.css
repeated its .mobile-mode rules inside a 801px media query. The later
copies decided nothing, so the result is the same.
tests/noDuplicateObjectKeys.test.cjs parses every app and package file and
fails on an object literal that defines a key twice, and
tests/templatesAreRendered.test.cjs fails on a template nothing draws,
apart from runtime-built names and three listed exceptions. Tests that read
the removed copies now read the code that runs.
Thanks to xet7 !
|
||
|
|
b7589737f5 |
File docs/Features the way the WeKan menus are.
A feature's guide now sits under the menu it is used from, read from the templates rather than from where somebody once put it: Header-Bar, All-Boards, Pages, Board-Header (search and every Board View), Board-Sidebar (Board Settings, Filter, Members, Labels, Archive), Rules, Swimlanes, Lists, Cards, Member-Settings, Admin-Panel and Login-Page. Topics used from several menus (editor, history, theme, translations, email, troubleshooting) are in General. - Each area has a README mapping its menu entries to their guides and to the template or server module that implements them. Board-Header/README.md lists all 40 Board View entries with the template boardBody.jade renders; five views (Table, Calendar Mode, Time, Timeline, Map) have no guide of their own yet and say so. - Board-View.md listed 25 views while BOARD_VIEWS has 40; it now lists all of them with their English labels. - Pages keep their file names. Where a released changelog links an old path, a "# Moved" page stays there and points to the new one; test-menu.sh skips folders holding only those. - Undo was filed under Login; it is General/Undo now. - Every link in docs, code comments, scripts and tests follows the move; docsLinksResolve checks them all. Tests that read a doc follow it to its new place. boardViewSettings now fails when Board-View.md or Board-Header/README.md differs from BOARD_VIEWS, or names a template boardBody.jade does not render. Thanks to xet7 ! |
||
|
|
7595727917 |
Boards every signed-in user may edit, per-list permissions, board keys and shared labels.
A board can let every signed-in user edit it, when Admin Panel / Settings / Visibility allows it: a non-member then comments, edits and moves cards like a Normal member, and their first edit makes them one. Board-wide settings stay members-only. Lists can allow or refuse editing and commenting per role (list menu, board admins): built-in roles, custom roles and, on an open board, everyone signed in. The server applies it to card, checklist, attachment and comment writes and to moves into the list; the REST API honours a list's refusal on every per-list card route. A direct client write of the setting is refused and shown in Admin Panel / Problems. Every board has a key, unique in the instance, suggested from its title and set for existing boards at startup; card numbers show as KEY-7 and searching for KEY-7 finds the card. Shared labels in Admin Panel / Labels, for every board or an organization's or team's boards; a board uses them beside its own, and a rename or colour change reaches every board that uses it. New strings translated in all languages. Low confidence: chr, tlh, wal, ay, ace, nah, gn, iu, zgh, rup, wo, se, ff, tig, vo, bm, kl, bua, nap, mai, to, ks, qu, bo, fj, haw, om, ss, ts, ve-PP, lld, scn. Thanks to Meeques, justinr1234, tiFabGrinch, ejlkemper and xet7 ! Fixes #4575, Fixes #4527, Fixes #2449, Fixes #2450, Fixes #2761, Fixes #4698. |
||
|
|
79ac301675 |
Email bounces with Amazon SES, Problems -> Email, and runtime tests for sending and receiving.
Email that comes back is handled in WeKan instead of landing in the administrator's own inbox. Admin Panel -> E-mail -> Bounces: hard bounces (a mistyped invited address), soft bounces, automatic replies and spam complaints, each with actions done after a count - list it, stop emailing the address, tell who invited it, delete the invitation, ignore - as listmonk and Discourse do it, and the list of addresses that bounced, which an admin clears to email them again. Amazon SES Bounce and Complaint notifications and mail SES receives arrive through SNS at /api/inbound-email/ses, signature-checked against Amazon's certificate and accepted only from the topics the Admin Panel lists. Delivery status notifications and out-of-office replies arriving by IMAP, a provider webhook or a Sandstorm grain are bounces too, never cards. Admin Panel -> Problems -> Email shows what went wrong sending or receiving: a send the mail server refused or could not reach, an IMAP mailbox that cannot be read (never with its password), an unreadable email, an email for a board that no longer takes email. Attempts stay in Problems -> Security. The inbound email endpoints no longer need the whole REST API turned on. Runtime tests run WeKan's own transports against local SMTP and IMAP servers over TCP, a real Sandstorm Maildir, the webhook over HTTP and signed SNS messages; UI tests drive the Email and Chat views, the email-to-card settings and the Bounces page. They found and this fixes: every whole-message parse failed in the server bundle (nodemailer's addressparser resolved to its ESM build), the Chat view's drag and drop never started (dragscroll took the mouse) and dropped a card into the target's previous list, and the Chat panes did not follow a change to a right-to-left language. Thanks to xet7 ! Fixes #794, Fixes #3948. |
||
|
|
988b177e59 |
Email to card: board addresses, IMAP mailboxes, provider webhooks and Sandstorm grain email.
An email to a member's personal board address, board+<token>@<domain>, becomes a card on that board, as Trello's email-to-board does (#794, #3948). The subject is the title; the body (quoted replies stripped, HTML as text) is the description, with a From line; attachments are attached (no SVG, as for uploads). The author is the address's member, never the From address, and they must still have write access when the email arrives. A reply whose In-Reply-To/References matches a card's thread becomes a comment on it. Notification Settings, at three levels: the Admin Panel turns it on and holds the domain, the provider webhook secret and the IMAP mailboxes with their passwords (never published, never sent back to a browser); a board admin turns the board on and picks the list and swimlane; board and member choose which parts of an email are used. The member sees and replaces their own address. It arrives by POST /api/inbound-email (Mailgun, SendGrid, Postmark, JSON, forms, multipart with attachments, raw MIME), by IMAP polling with imapflow and mailparser under a database lease so one replica polls, or on Sandstorm through the grain's own address: the bridge's Maildir is read, a member's board token in the subject routes it, and WeKan's outgoing email goes through HackSessionContext.send, since a grain has no network. The email and hack-session capnp schemas are generated with the other Sandstorm bindings. Unknown addresses, wrong webhook secrets and over-limit addresses are logged under authn.inbound-email. Rate limit per address, size limits, Message-ID deduplication. The new strings are translated in every locale. Thanks to xet7 ! |
||
|
|
ab785acd1e |
Choose what notifications contain, and group and schedule them, for e-mail, the tray and webhooks.
One delivery model (models/lib/notificationDelivery.js) for every channel - e-mail, the notification tray and outgoing webhooks - set in the Notifications popup at Admin Panel, board and Member Settings scope, and in each one-way webhook's form: - Content. Webhooks: the text on or off, and which property groups are sent (standard, ids, names, links, actor, people, details), with checklist, list, swimlane and board names, before/after values, the card description and links added as opt-in groups. E-mail and tray: the classic sentence or a clear layout - the board as a link first, the actor and card in bold - and which parts are shown. - Grouping: one message per event, per card, per board, or all together. - Scheduling: immediately, every 5 minutes to 24 hours, or once a day, with optional quiet hours, in the time zone of whoever set it. The most specific explicit setting wins: member, then board, then Admin Panel for e-mail and tray; the webhook, then its board, then Admin Panel for webhooks. A member can only leave their own name out of outgoing webhooks. The built-in defaults keep today's behaviour. Grouped and scheduled webhooks and e-mail go through durable queues that survive restarts; queued webhooks use the SSRF guard and log a blocked address in Admin Panel - Problems. Values of admin-only custom fields now reach only board admins in e-mail and tray, and never a webhook. The new strings are in English in every locale, pending Transifex. Thanks to HaKePlan, Meeques and xet7 ! Fixes #3695, Fixes #5171. |
||
|
|
1deae2fcab |
Fix four regressions from today's heavy dev session: spent-time backfill,
Board Settings description publication, Notification Settings wiring and two unscaled font sizes. - allowsSpentTime/allowsSpentTimeOnMinicard have defaultValue: true in models/boards.js but were missing from schemaUpgradeSteps.js's BOARD_ALLOWS_TRUE_DEFAULTS, so a board created before those flags existed would read them as undefined/false and hide its spent-time badge. - customPrivateBoardDesc/customPublicBoardDesc are read by settingBody.jade but were not in server/publications/settings.js's SETTING_FIELDS, so the fields always rendered empty and saving them looked like it did nothing. - notificationSettingsPopup.jade/.js are used by peopleBody.jade but were never imported into client/features/settings.js, so the template compiled to nothing and the popup did not exist at runtime. - timelineView.css and two rules in minicard.css still used bare px font-size values instead of calc(Npx * var(--wekan-ui-font-scale, 1)), so the UI font-size preset did not reach them. Thanks to xet7 ! |
||
|
|
ebe985d453 |
A location in an Admin Panel table opens a map, through the card's own chooser.
Admin Panel / Problems / Offices names the places accounts log in from - "London", with the country's flag - and a name is only useful if it leads somewhere. Clicking one now asks which map to open it at, from the same eleven providers a card's location offers. THE SAME CHOOSER, not a second one. The provider list was eleven options inside cardDetails.jade; it is client/components/main/mapProvider.jade now, and both callers include it. Two lists would be eleven places to add a provider instead of one, and they would disagree the first time only one was edited. The isMapProvider helper moves with it, so neither caller needs its own copy, and so do its styles - they were scoped to .js-card-location-form, which stopped being true the moment a second template used them. What the two do NOT share is the rest. A card's popup EDITS a location - name, address, coordinates, delete - and none of that applies to an office: its location arrived in a CDN header, WeKan did not ask for it and cannot correct it. So tablePageMapPopup is the map half alone: where this is, the link, the chooser, and a save that makes the choice the default for cards too, because profile.mapProvider is the one setting both read. A cell is a link only when the row HAS coordinates. A city name is not a position, and a map URL built from one would either search for the word or invent a place, so buildRows drops a location without lat/lon and the cell stays plain text. The link follows the selection BEFORE it is saved: choosing a provider and finding the link still pointing at the old one reads as broken. The handler lives on the shared table page, not on the report. That is also where the "clicking a user opens the Edit user popup" handler goes: three reports each had their own identical copy, because each was written where its own page was. A Blaze event bubbles through the template hierarchy, so one handler on tablePage reaches every report - and a report added later gets both without being told. Two things the guards caught, both worth naming. The popup had no title, which in WeKan means no header and so no close button; it opens with titleKey: 'location-open-map-at' - the phrase the chooser is already labelled with in every language - rather than adding a key to 154 files. And a comment between an `if` and its `else if` breaks jade nesting, which tests/jadeCompiles.test.cjs has a negative test for; the comments sit above the chain. Thanks to xet7 ! |
||
|
|
fa289e4a4d |
Admin Panel Problems: the route and the template say what the menu says.
The pane is called Problems in the menu, its address is /admin/problems, and
docs/Features/Admin-Panel/Problems is where it is documented. Two things still
called it Reports, from before it was renamed:
* the route NAME was 'admin-reports', where its three siblings are 'setting',
'people' and 'attachments' - the bare page key. So the one route whose name
did not match its own address;
* the template, and its three files, were adminReports.
Both are 'problems' / adminProblems now, across 41 files.
What did NOT change is `legacyBase: '/admin-reports'`. That is an address people
have bookmarked and it still redirects here - the point of the rename is that
the code agrees with the menu, not that an old link should break. The CHANGELOG
entries describing the old addresses are left alone too: a released section is a
record of what shipped.
Thanks to xet7 !
|
||
|
|
daaf563910 |
Docs: implemented designs move to docs/Features, filed the way the menu is.
A design that describes what WeKan already DOES belongs with the feature it describes, not in the folder for things being proposed. Fifteen docs move: Design/Accessibility.md -> Features/Accessibility/Accessibility-Improvements.md Design/Original-Positions.md -> Features/Board/Original-Positions.md Design/Page/* -> Features/Page/* (thirteen pages that exist) Design/AdminPanelProblems.md -> Features/Admin-Panel/Problems/Design.md What stays in docs/Design is what the folder is for: the principles (Design-Principles, Monkey-Proof-Software), the comparisons, the roadmap (Multiverse), and the proposals not yet built (Multitenancy, Autoupdate). The Admin Panel Problems design is new and covers six changes - summaries, the per-actor tally, IPv4/IPv6 columns, an API report, a per-address login tally, and blocking with increasing delays. Three are shipped and three are planned; it is filed under the feature because the pane exists, with each planned item marked so it can become plain description as it lands. Every reference in the repository is rewritten - 152 files, including the CSS comments that point at the table-page design, which a first pass over .md and .js alone missed. Two suites asserted the old paths and now assert the new ones. A moved doc whose links nobody fixed is worse than one nobody moved. Thanks to xet7 ! |
||
|
|
dcc6c8fe5d |
Version pane: five tables with a heading each, and what WeKan is installed as.
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 ! |
||
|
|
2526552764 |
The left menu's caret does something when clicked.
The caret that folds the left menu away - on All Boards and in the Admin Panel - rendered, pointed down, and did nothing at all when clicked. Its template draws the caret; the click that folds the menu and the isLeftMenuCollapsed helper that says whether it is folded live in client/components/settings/leftMenu.js, and nothing imported that file. package.json sets meteor.mainModule, so the client is NOT eagerly loaded: a file nobody imports is not in the bundle at all. The click handler was never registered, so the caret was a dead control - and an unregistered Blaze helper is undefined, so the panel never took the collapsed class either, which is why even the caret itself never turned to point right. The same thing had happened to adminReports.css, which is why the Admin Panel reports lost their styling. One import fixes it. The new guard is what stops it happening a third time: tests/clientBundleImports.test.cjs walks the import graph from client/main.js and pins that every file under client/components which REGISTERS something with Blaze - a template's events, helpers or lifecycle, a global helper, a BlazeComponent - is reachable from the entry point, and that every stylesheet and template beside them is too. A file that only exports helpers is left alone: whoever uses it pulls it in. It carries the negative case as well, checking that removing this very import is reported rather than shrugged off. Thanks to xet7 ! |
||
|
|
b72a4996dd |
Admin Panel: remove the Features tab.
Its last three panes - Performance, Security and Notifications - moved to Admin Panel /
Problems in
|
||
|
|
33a0cf6160 |
Design docs: move Table-Page.md under Design/Page/, and add Left-Menu.md.
docs/Design/Table-Page.md -> docs/Design/Page/Table.md, with every reference updated: the three design docs that link to it (History, CPU-usage, Recovery), the code comments in the shared template, stylesheet and helpers, and the four test suites that read it. Its own link to History.md is re-based, since the file is one level deeper now. docs/Design/Page/Left-Menu.md is the second page design: the menu beside the content on every Admin Panel page. It records what those seven menus share, which pages use it, the entry shape, and how a page adds one. Which side it is on is part of the design, not an accident of the markup: for a left-to-right language the menu is on the LEFT with the content to its right; for a right-to-left language the whole panel MIRRORS - the menu is on the right, the content to its left, and inside each entry the icon and label mirror too. That works only through the document direction plus logical CSS, so the doc says to never write left/right/margin-left/padding-left for this menu. Checking that turned up two places where the current CSS did exactly that: - .side-menu had `box-shadow: inset -0.2vh ...`. An inset shadow offset on the X axis is a PHYSICAL direction and does not mirror, so it shaded the wrong inner edge once the menu moved to the right. The X offset is dropped. - the entries used `padding: 1.3vh 0 1.3vh 1.3vw`, i.e. padding-LEFT, so under an RTL language the indent stayed on the left - the outer edge of a right-hand menu. Now padding-block + padding-inline-start. Theme: the menu was entirely hard-coded greys. Most of it stays neutral on purpose - it is chrome, and tinting the whole card would fight the content beside it - but the entry you are ON now takes the per-user theme accent (Member Settings -> Change color sets --theme-accent on :root), with `inherit` as the fallback so the WeKan default look is byte-for-byte unchanged when no colour is chosen. No brand colour is hard-coded in the menu. The shared pieces are in place: client/components/settings/leftMenu.jade renders the menu from an item list, and models/lib/leftMenu.js turns (items, activeId) into it - marking exactly ONE entry active, dropping conditional holes, and supporting group separators. Tests: tests/leftMenu.test.cjs is the one suite for this design - the pure helpers, the template, the mirroring, the theming, the shared narrow-window stacking, and that every path in the doc's related-files table exists. NOT done yet: the seven Admin Panel templates still render their own copy of the menu markup. Converting them to +leftMenu is the next step; the design, the template, the helpers and the tests it will be checked against are ready. Thanks to xet7 ! |
||
|
|
9791993d59 |
Table pages: one design, one implementation, and a layout that fits the window.
Files, Rules, Boards, Cards, Impersonation, Recovery and the four event streams
(Security, Speed, Tests, CPU usage) were ten copies of the same page: the same
title + search + prev/next markup, the same currentPage/totalPages helper pair,
and the same click/keydown handlers, retyped with a different js- prefix each
time. They had drifted apart, and any layout fix had to be made ten times.
They now render through ONE template and differ only in a column list:
{ label | labelKey, value(doc), align, nowrap, cls, userId(doc), data(doc) }
- client/components/settings/tablePage.jade - title, optional status row,
controls, table. The row ORDER is defined here once.
- client/components/settings/tablePage.css - the layout.
- models/lib/tablePage.js - pure pageInfo() / buildRows() / buildHeader() /
columnWidthPercent(), unit-tested without a browser or a database.
adminReports.jade 349 -> 112 lines, its CSS 134 -> 53, ten templates -> four,
twelve page/total helpers -> none, twenty-four control handlers -> four.
Layout fixes, now made once and reaching every page:
- The table is width:100% with table-layout:fixed, so every column gets the SAME
percentage of the width and the table can never grow wider than the panel. With
the default auto layout one long id or file name widened the table past the
panel and pushed its right-hand columns outside the browser window.
- Cells wrap: overflow-wrap:anywhere breaks even an unbroken id, URL or file name
inside its column. Datetime columns opt out with nowrap.
- .table-page has min-width:0 / max-width:100% so it can shrink inside the flex
.main-body instead of setting a min-content floor; only the table's own wrapper
may scroll sideways, never the page.
- At <= 800px the side menu goes full width on top and the table sits BELOW it.
This deliberately overrides the older "always side by side, even on narrow
windows" rule, which on a phone left the table a few dozen pixels wide with its
right-hand columns unreachable. Above that width the menu keeps its place and
the table sits beside it.
- Rows top to bottom: title, status (the live CPU figure on the CPU usage page),
controls, table.
Paging still loads only the current page - the publications apply limit/skip -
and loadReport now takes that window from the SAME pageInfo() call that renders
"page X / N", so what is fetched and what is displayed cannot drift apart.
Docs: the shared design moves out of the History design doc into
docs/Design/Table-Page.md, which lists every page that uses it (table name, menu
path, description) per group. History.md, CPU-usage.md and Recovery.md now link
to it and keep only what is specific to them.
Tests: tests/tablePage.test.cjs (18) covers the pure helpers - including a page
that no longer exists clamping to a real one, and a short row never shifting the
columns - plus the layout rules the doc promises and the "one implementation"
guarantee. Four existing tests that pinned the old per-report markup were updated
to the new mechanism, same intent.
Thanks to xet7 !
|
||
|
|
a440d44ea4 |
Remove the cron migration subsystem: it never ran and had no UI.
Nothing scheduled it and nothing rendered it, but every logged-in client still paid for it: - initializeCronJobs() (server/cronMigrationManager.js) was NEVER called, so the SyncedCron.add() registrations and the 5s job-queue processor never started. - boardMigrationDetector.start() sat behind a commented-out Meteor.startup hook, with the note "Automatic migration detector is disabled - migrations only run when opening boards". - The Admin Panel had no Cron page at all: no route in config/router.js, no button in settingHeader.jade, no template ever included, and every helper, event and reactive var for it commented out in settingBody.js. - Yet imports/cronMigrationClient.js WAS imported by client/imports.js, so every client subscribed to three publications and polled cron.getMigrationProgress every 10 seconds, forever, for a feature with no user interface. Migrations already run - and are already reported - through the paths that work: Admin Panel -> Attachments (database migration) and the on-board-open repair, both driven by the shared migrationProgress overlay dashboard mounted app-wide in defaultLayout, plus the in-progress list on Admin Panel -> Problems -> Summary. Removed: cronSettings.jade/.css, imports/cronMigrationClient.js, models/cronJobStatus.js, server/cronMigrationManager.js (28 admin-gated cron.* methods that no UI called), server/cronJobStorage.js, server/boardMigrationDetector.js and the three publications that fed only the deleted client module (cronJobs, cronMigrationStatus, migrationProgress). KEPT on purpose: server/cron/syncedCron.js, which is SyncedCron itself and is used by the backup schedule (server/methods/backup.js) and scheduled rules (server/scheduledRules.js). getInProgress() in server/lib/systemStatus.js no longer reads cronJobStatus. Leaving that check would have been worse than useless: a leftover status:'running' doc from an older version now has nothing to clear it, so Admin Panel -> Problems would report "Migration job X running" forever. The 40 i18n keys that only the deleted template used are left in place - dropping them from every language file would discard human translations for keys that may be reused. Thanks to xet7 ! |
||
|
|
1fb32b226f |
Admin Panel report styles were never loaded, so pagination buttons rendered black.
client/components/settings/adminReports.css was not imported anywhere, and
package.json sets meteor.mainModule, which disables Meteor's eager loading - so a
CSS file that nothing imports is simply not in the bundle. None of the Admin
Panel report styling was applied, and the prev/next buttons fell through to the
global rule in forms.css:
button { background: var(--theme-accent, #000) }
which is BLACK when no custom theme colour is set. Import it from
client/features/settings.js next to the other settings stylesheets.
Also add client/components/main/paginationControls.css: one themed look for
EVERY prev/next control in WeKan (admin reports, people/org/team/domain, All
Boards, board Table view, cron tables). forms.css also styles button:focus
(var(--theme-accent, #222)) and button:active (#111 / #e6e6e6) at a specificity
equal to or higher than a plain `.some-pagination button` rule, so even a loaded
stylesheet lost as soon as the button was clicked: pressing "next" left it with a
dark grey or grey background until it lost focus. Every state is now spelled out
at a specificity that beats the global rules, all colours come from
--theme-accent with WeKan blue as the fallback, disabled is the same themed
outline faded rather than a grey block, and the "3 / 42" page info inherits the
surrounding text colour instead of a hard-coded #333 that vanishes on dark
backgrounds.
Thanks to xet7 !
|
||
|
|
0085f7fbfa |
Admin Panel: Problems button + page (Summary/Security/Speed/Tests), replaces banner & Reports button.
- 2nd header bar: add a Problems button (warning icon) to the RIGHT of the Info (version) button; it turns red when there are new problems (settingHeader.js polls eventLogProblemAreas). Remove the old Reports button; the Admin Panel still opens on Settings. - The former Reports page is now the Problems page: left menu Summary / Security / Speed / Tests, then a separator, then the moved Broken Cards/Files/Rules/Boards/ Cards/Impersonation items. - Summary (problemsSummary, renamed from the removed top banner): the checkbox list + one Acknowledge button — the ONLY place to acknowledge. - Security/Speed/Tests: read-only, paginated, searchable event tables via new admin-only eventLogPage/eventLogCount methods; acknowledgeEventLog now takes a stream or array. - i18n keys + CSS + source-guard tests + design doc updated. |
||
|
|
4f4140e02b |
Admin Panel: top banner for new Security/Speed/Tests problems, with Acknowledge.
Like the Announcement banner, the Admin Panel top now shows, for each problem
area with unacknowledged events, its menu path (Admin Panel -> Reports ->
Security/Speed/Tests) and the count of NEW problems. Each area has an Acknowledge
button that marks the newest problems seen, zeroing the count and removing the
info from the top.
- models/eventLog.js: add the eventlogAcks collection and admin-only methods
eventLogProblemAreas() (count of events newer than each stream ack) and
acknowledgeEventLog(stream) (upsert ack = now).
- client adminProblemBanner.{jade,js}: poll the counts, render path/count/button,
acknowledge on click; included in settingHeaderBar (top of every admin page).
- i18n keys (securityReportTitle/speedReportTitle/testsReportTitle/new-problems/
acknowledge) + banner CSS. Source-guard tests added.
|
||
|
|
09805a8a91 |
Lazy card loading (client) + Admin Panel / Features section
Client side of CARDS_LOADING=lazy. In lazy mode each list's cardsWithLimit subscribes to boardCardsWindow for just the cards it renders (growing with the infinite-scroll limit) and to boardListCardCount for the total; showSpinner uses that server count to decide whether more cards remain, since minimongo now holds only the loaded window. Default 'all' mode is unchanged (helpers short-circuit on isLazyCards()). Adds Admin Panel / Features — a new admin section (route /admin-features, nav entry, adminFeatures template) intended as the home for optional / performance / future tier-gated capabilities. First control: "Card loading" (all | lazy), which writes the cardsLoading Setting; it mirrors, and is overridden on startup by, the CARDS_LOADING env var. Includes an experimental-note (counters/WIP limits and the Calendar/Table/Gantt views reflect only loaded cards; reload boards after change) and the i18n keys. |
||
|
|
8ffc0cb5ff | Centralize client boot and rspack package loading |