mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 14:45:11 -05:00
524ea6a41e1e4eaa280df747547643b63ef003e2
64
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
7e1f9e89eb |
Docs: every feature topic in one folder under docs/Features, each with README.md as its main page.
- The General/ level is gone: its 109 files moved up into the folders of the same name, and its topic table is the "Shared topics" section of Features.md. - Accessibility is one folder, docs/Features/Accessibility/, with the Admin Panel's accessibility page in it. - Every folder's main page is README.md (110 X/X.md pages renamed with git mv, five merged with an existing README.md, 26 index pages added for folders that had none), so a folder opened on GitHub shows its page. - The 73 "# Moved" forwarding pages are deleted, with the folders that held only them; every link that went to one goes to its final page. - docs/Features/README.md has the website's "Features in WeKan" overview, each feature linking to its page here. 1,129 Markdown links in 262 files and 352 doc paths in code, tests, compose, snap and release files follow. tests/docsFeaturesLayout.test.cjs fails when General/ or a "# Moved" page comes back, a folder has no README.md, or a relative link in the docs or README.md does not resolve. Thanks to xet7 ! |
||
|
|
6a7af5391a |
Accessibility: every Admin Panel pane and the most used popups pass the WCAG 2.2 AA rules, at 320 px and with reduced motion.
tests/playwright/specs/47-accessibility-everywhere.e2e.js scans every Admin Panel pane and the member, list, swimlane and card details menus with axe, checks 320 px reflow and that nothing animates when reduced motion is asked for. What it found is fixed: - names: every unnamed input and select of the Admin Panel is named by the label shown beside it; table page filters lost their label in models/lib/tablePage.js; people rows and avatar links name the person, and a person link's name starts with its visible initials (2.5.3); - contrast: the feature descriptions, source badges, instrumentation headings and the default theme's menu hover pass 4.5:1; - target size: checkbox rows, notification options and the Select all links are at least 24 x 24 px; - the member menu's dependency toggles are checkboxes in a well-formed list; - reduced motion: one rule in its own CSS layer makes every animation and transition instant, even those header.css marks !important. Spec 47 passes in Chromium, and specs 45 and 46 still pass (39). tests/accessibilitySpec47Fixes.test.cjs pins the fixes, and fails when a settings select has no name. Thanks to xet7 ! |
||
|
|
292d1db00d |
WCAG 2.2 AA: the axe scan runs its rules and passes, focus is never hidden, and a statement draft.
docs/Compliance/README.md WP-13 (rows 6.1 and 6.3), run in Chromium against a live server: - tests/playwright/specs/45-axe-accessibility.e2e.js runs axe's wcag22aa rules too. Its one finding, 2.5.8 Target Size, was the minicard's card actions menu and collapse caret: each is at least 24 x 24 pixels now. - The scan visits the legal pages, Admin Panel / Problems / Compliance, the Audit log and Settings / Legal pages too. What it found there is fixed: the Problems menu's group heading and the Compliance status words had too little contrast, so had an Audit log row's error text, and Legal pages' section headings skipped a level. - A new check tabs through a board and fails when a focused control is hidden behind the header or a popup (2.4.11), counting only when focus really moved. Move list and Move swimlane already serve 2.5.7. - Admin Panel / Settings / Accessibility offers Start from WeKan's draft: an accessibility statement with the compliance status, what is not accessible, feedback, the enforcement procedure and the date, filled only into an empty text. - The docs say WCAG 2.2 AA. Thanks to xet7 ! |
||
|
|
a6b10e3592 |
Dark themes: the quiet greys, Card Settings, popups and sidebars are readable again.
The accessibility audit made the quiet text greys dark for every theme, and old rules never followed the dark themes: Card Settings drew white text on light grey blocks, popup items, the sidebar's shortcuts row, quiet buttons and sidebar labels were black on dark, and an !important list header beat each theme's own. The quiet text is a variable with a light value on the dark surfaces; Card Settings' sections, popup items and the other rules follow the theme. axe-core finds no colour contrast failure in cleandark, moderndark, dark and exodark on the board, sidebar, Card Settings, an opened card and the custom fields popup. Thanks to Samunosuke and xet7 ! Fixes #6863, |
||
|
|
c8bcc4817d |
Accessibility: fix the findings of the axe-core audit in the default theme.
The default theme's blue is #2573a7, so the header's white and #f2f2f2 text passes WCAG AA; label colours, quiet greys and grey tiles have text that passes too. The Starred menu, the user menu and initials avatars carry their visible text in their accessible name. The card's Pomodoro field and the comment and description editors have a name. A card section heading is an h3 holding a real button with aria-expanded, and its menu and layout toggle sit beside it. The sign-in form is the main landmark with a level-one title, every page has a level-one heading, and the shortcuts list is reachable by keyboard. After the fixes axe-core finds no violation on 22 pages. Spec 45 runs the scan and tests/accessibilityAuditFixes.test.cjs pins each fault by its shape. Thanks to xet7 ! |
||
|
|
6bb926af19 |
A checked checkbox sits on its own square in right-to-left languages too.
#6786's first fix drew the tick with physical borders, so it is a check mark and not "<" right-to-left. But where it sits was still logical: the tick is a box narrowed from 13px to 7px and rotated about its bottom-right corner, placed with inset-inline-start: -3px and margin-inline-end: 6px. A right-to-left page started the narrowed box at the square's RIGHT edge and pushed it further right, so the tick sat beside its box - "out of box" in the issue's Admin Panel screenshots. Measured in Chromium, the right-to-left tick spanned 303-323px beside a square at 291-308px. The shared tick, the Admin Panel's, the sidebar's and the Clean themes' are placed with left and margin-right now: 291-311px, on the square, at the same place as left-to-right, and 7 + 4 + 6 = 17px keeps the label where it was. The import page, whose rows add a gap before the label, keeps that gap on the reading side with a right-to-left rule. Toggle switches and the board list's corner box, which are not this tick, still mirror. tests/rtlCheckMark.test.cjs fails if any rule that draws a tick places it with a logical offset or margin; tests/rtl.test.js allows physical margins and a left offset only inside checked-state rules; the Playwright spec measures that the tick is on its square in both directions and the label does not move. Thanks to mimZD and xet7 ! Fixes #6786. |
||
|
|
b4bcded492 |
A checked checkbox is a check mark in right-to-left languages too, not "<".
The tick is a box rotated 40 degrees, drawn by its bottom and side borders, and the side was border-inline-end. A right-to-left page puts that on the left, so the rotated corner opened the other way and every checked checkbox showed "<" - the Admin Panel's bounced-email table in Persian, in the issue. A check mark is not mirrored in a right-to-left language, so all 25 rules that draw one - the shared materialCheckBox, checklists, subtasks, the sidebar, the Admin Panel and every board theme's colour - use border-right and border-left now. Where the box sits stays logical. tests/rtlCheckMark.test.cjs fails if any checked state anywhere in client/ draws its tick with a logical border. tests/playwright/specs/rtl-check-mark.e2e.js compares the computed borders in ltr and rtl. customFieldsSectionMenu's guard now expects border-right, and its comment says why. Thanks to mimZD and xet7 ! Fixes #6786. |
||
|
|
e34a488617 |
Phone, foldable, tablet, laptop and 55" touchscreen: the new UI checked upright and on its side.
tests/playwright/specs/viewport-matrix.e2e.js opens WeKan as an iPhone 15, an unfolded Galaxy Z Fold 7, an iPad Pro 11, a 1366x768 laptop and a 55" 4K touch panel, each upright and on its side, and checks the board header, board menu -> Original positions, Problems -> Memory Usage and Disk usage, the Table, Calendar Mode, Time, Timeline and Map views, and dragscroll by mouse or by finger. It measures that icons and texts are on screen and not drawn in the colour behind them, that the page never scrolls sideways, that every column can be reached and stays readable; screenshots of each step go to .tools/log/viewports/. What it found, fixed: - iPhone: the header bar was width: 100% plus its side padding as a content box, 24px wider than the screen, and the sidebar hamburger sat past the right edge. It measures its padding inside now. - Admin Panel left menu on a phone: the list's disc bullets showed as a dot after every entry, and a rule between groups shrank to a dash beside an entry. No bullets, and each group starts a row of its own. - Admin tables: 13 equal columns were 25px each on a phone and 42px on an upright iPad, every header one letter per line. Up to 1024px a column keeps a readable floor and the table scrolls sideways in its wrapper. - Table view: the title-wrap and swimlane-group toggles were white icons on white - two empty squares - stretched to 72px by the global button padding. And on an upright iPad or foldable, Members, Labels and the date columns lay past the edge of an overflow-hidden board with nothing to scroll; the view scrolls sideways itself now. A swipe that starts beside a list's resize handle resizes the list, as it should, so the dragscroll check starts where a person pans. The file runs in Chromium only: device emulation and the touch swipe exist only there. 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 ! |
||
|
|
999819e63e |
Keep the RTL, issue-type and source-audit guards green after the Board Settings / Card work.
The minicard's checklist due date and the awaiting-approval note use margin-inline-start rather than margin-left, so they follow the language direction. The issue-type guard now follows the badge into the ordered minicard badges, where it sits behind its own board toggle that defaults on. The Taskwarrior format's documentation link is allowlisted for that file in the release source audit, as Leo's namespace URL is. Thanks to xet7 ! |
||
|
|
18d57b2b8f |
Let administrators choose which optional features WeKan offers.
Admin Panel / Settings / Visibility has a new Features group. Each optional group of board views (Table, Calendar, Time, Overview, Gantt, Scrum, Flow charts, Map) can be turned off for the whole instance. A disabled feature is removed from the Board View menu and from Board Settings / Board View rather than greyed out, and a user who had it open is moved to the board's default view. Its data and every permission stay as they are. Administrators can preview disabled features, and named pilot users see them too. An opt-in policy keeps features added by later WeKan updates disabled until an administrator enables them; the features present when it is turned on stay as they were. Swimlanes and Lists are core and cannot be disabled. The English texts are pending Transifex. Thanks to nalilord and xet7 ! Fixes #6736. |
||
|
|
ac363f979f |
Add Admin Panel overrides for LDAP_* environment variables, and a Test
LDAP Connection button.
Every LDAP_* setting server/authentication.js and packages/wekan-ldap read
straight from process.env can now be overridden from Admin Panel / Login,
with an explicit admin value winning over the env var and the env var
winning over nothing (models/lib/configResolver.js's resolveConfigValue(),
pure and unit-tested for the precedence and for its 'admin'/'env'/'default'
source tag). The Admin Panel LDAP section shows, next to every field,
which source is currently in effect - an env var name, "Admin Panel", or
"Unset" - so it is always clear whether a value comes from the environment
or from an admin override.
The bind password never reaches the browser: it is stored in the new
Settings.ldap.bindPassword field, which server/publications/settings.js
deliberately never publishes (only the boolean ldap.bindPasswordSet is).
The password input starts empty and an empty submission leaves the
existing value/source untouched, matching the existing mail-server
password field's pattern. hasConfigValue() is the parallel, secret-safe
resolver: it returns only a boolean and a source, never the value, and a
negative test fuzzes several secret shapes through it to prove that.
Found while wiring this up: packages/wekan-ldap/server/testConnection.js's
existing ldap_test_connection method had its isAdmin check commented out
("TODO: this needs to be fixed - security issue"), so any authenticated
user - not only an admin - could trigger a real LDAP bind attempt against
the configured directory. Fixed to require isAdmin, the same check every
other admin-only Settings method uses, before any connection is attempted.
A new "Test LDAP Connection" button in Admin Panel / Login calls this
method against whichever config (admin override or env var) is currently
resolved and shows the result - success or the directory's own error -
inline, satisfying the "get back error message visible at admin panel"
request without adding a second LDAP client dependency.
Switching between LDAP, OAuth2, SAML and password login already has its
own UI (the Login pane's "Default Authentication Method" selector plus
each method's own enabled flag) and needed no separate switcher; this only
extends "enabled" itself to be admin-overridable, the same as every other
LDAP field.
Scope: LDAP is covered end to end (override + test-connection). OAuth2/
SAML/CAS's env vars are unchanged and stay env-only for now - the resolver
is written to extend to them, but doing so was out of scope for this pass.
Tests: tests/configResolver.test.cjs (precedence, source tagging,
hasConfigValue's secret non-leak, redactCredentialsInUrl for the composite-
connection-string case); tests/ldapAdminOverrideSecurity.test.cjs (the
publication never sends ldap.bindPassword, a whole-tree negative sweep for
any OTHER publication doing the same, the isAdmin gate on
ldap_test_connection runs before any connection attempt, and the method's
response never carries the password); tests/settingPublishedFields.test.cjs
extended to understand dotted/sub-document published fields so it keeps
checking the LDAP section's currentSetting.ldap.* reads against what is
actually published.
Thanks to xet7 !
|
||
|
|
58bf9774a2 |
Exporting a card to PDF produced an HTML file, and checkboxes are square.
THE PDF THAT WAS AN HTML PAGE. Not a broken PDF - WeKan's own page, saved as
`<card>.pdf`. Every export in the interface is a download from an `/api/...`
address, and server/apiMiddleware.js refuses every /api request unless WITH_API
is exactly "true". It refused by answering `301 Location: /`, so the browser
followed it to the front page and the download link's `download="<card>.pdf"`
wrote the HTML it got there to that name. Reproduced against the running
instance: `GET /api/boards/x/exportPDF` -> 301.
Two faults, and either alone is enough:
* The bundle launchers did not set WITH_API. The snap has defaulted it to true
for years (snap-src/bin/config) and every docker-compose*.yml in this
repository sets it, so the bundle was the ONE platform where exporting was
off by default - which is why it was the one platform where an export came
back as HTML. start-wekan.sh and start-wekan.bat now default it to true,
overridable, and say WHY: the name reads like a developer feature, and
somebody switching it off to harden an instance should know they are turning
off every export in the interface.
* The refusal was a redirect. Whatever the setting, "the API is off" must not
arrive as a page: it is now 403 text/plain saying that exports use the API
too and naming the variable to set. A 403 with a sentence in it cannot be
mistaken for the file that was asked for.
CHECKBOXES ARE SQUARE, WHEREVER THEY ARE PUT. The export popup's unchecked box
drew a thin vertical sliver beside a long label and a proper square beside a
short one: the row is a flex container, the box is a flex item, and a flex item
shrinks. That is the THIRD time this shape has broken - settingBody.css already
carries a fix for a 41px min-height that "turns a 13px box into a tall
rectangle", and another for a `height: 100%` that stretched it - so the fix goes
in the rule that DEFINES the checkbox: `flex: none` in forms.css, for all 90 of
them across 19 templates, rather than one more local patch.
The local patch is removed with it. It had set `box-sizing: border-box`, which
would have made the export popup's boxes 13px INCLUDING their border while every
other checkbox in WeKan is 13px plus 2px - a fix for one page that made that
page the odd one out.
The Admin Panel's checkboxes are native inputs STYLED to be the material box,
and a guard already compares the two rules declaration by declaration, so they
take the new declaration too - written the same way, since `flex-shrink: 0` and
`flex: none` mean the same thing and only one of them can be compared.
Audited the rest rather than assuming: every CSS rule in the client that sizes a
checkbox gives it equal width and height, including the two "clean" board themes
that deliberately draw theirs at 24px and 18px. tests/checkboxesAreSquare.test.cjs
pins that invariant for every rule, and tests/exportNeedsTheApi.test.cjs pins
that the launchers turn the API on, that the refusal is never a redirect, and
that the exports really are /api addresses - which is what made the gate their
business in the first place.
Thanks to Heart1010 and 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 ! |
||
|
|
d5b69137cc |
Font size setting moves all of the text, not the part written in rem.
Picking Largest grew the page heading and the minicards and left the header bar, the left menu, the lists, the swimlane header and every popup exactly as they were. The preset was a percentage on the root element, and a root percentage only reaches text whose size is written in a relative unit: rem is measured against the root, em against its parent. WeKan writes most of its sizes in px, and px is absolute, so exactly the rem-sized parts scaled. The base rule made it worse: html, body, input, select, textarea, button re-stated font: 14px, so the body took the stock size straight back off the scaled root. The preset is published as a number as well (--wekan-ui-font-scale), and every px font-size and line-height in the client stylesheets - 433 declarations across 37 files - is written calc(14px * var(--wekan-ui-font-scale, 1)). line-height scales with the size on purpose: 21px of type in an 18px line box is the same setting half-applied. The base font rule is split into font-family and font-size, because the shorthand's size was the one thing the setting had to be able to move. Nothing renders differently until a preset is chosen: the fallback is 1 and the variable is removed for Default. tests/uiFonts.test.cjs fails on any bare px font-size or line-height, so a new one cannot quietly opt out of the setting; the two density guards unwrap the calc as they read the file, so each still pins the size it means. Thanks to xet7 ! |
||
|
|
6420819cfa |
Clicking an open card closes it, and a focused checkbox is not a diamond.
The two newest comments on #6465. CLOSING BY CLICKING AGAIN was not a missing feature - it was an unreachable one. clickOnMiniCard already ended with } else if (Session.equals('currentCard', card._id)) { Utils.goBoardId(Session.get('currentBoard')); but the TITLE branch above it returns before that is ever reached, and a minicard's title covers most of the minicard. So the second click almost always landed in the title branch, which unconditionally re-opened the card that was already open. The toggle worked only if you managed to click a part of the card that was not its title, which is why two people asked for a feature that was already written. The title branch now asks the same question first, and closes the same way. A click on a card that is NOT open still opens it, and still clears the phone popup ids as it did. On a mini screen the card is a popup rather than a pane, so "already open" is a different question - `popupCardId` and `Popup.isOpen()` - and that path closes with `Popup.back()`. Multi-selection still short-circuits both, so ticking cards is unaffected. THE PROBLEMS PAGE GLITCH in the screenshot is the focus ring. The Admin Panel draws its checkboxes as a material square that morphs into a tick, and the tick IS a 40-degree rotation of the element. A browser draws its focus ring around the element as it is - rotated - so a checkbox that is both checked and focused, which is exactly what a checkbox you just clicked is, comes out as a blue DIAMOND where the tick should be. The ring is not removed: keyboard users need to see where they are. It moves to the row that contains the checkbox, which is not rotated - every one of these sits inside a label (problemsSummary.jade) - so it is a normal rectangle around the whole row, which is easier to see than a 13px box anyway. `:focus-visible`, so a mouse click does not leave a ring behind. tests/cardClickToggle.test.cjs pins that the close decision comes before re-opening (or it never happens), that opening a different card and the existing non-title toggle both still work, that multi-selection still wins, that the tick is still the rotation, and that the label nesting the ring relies on is really there. Thanks to csonkaoszimt, Heart1010 and xet7 ! |
||
|
|
920d42b6db |
The left menu is resized by dragging its inner edge.
The menu's inner edge - the right one while reading left to right, the left one under a right-to-left language - now carries a grip, and dragging it changes the width. It is the same control the right board sidebar has on its own inner edge: the same 6px strip, the same col-resize cursor, the same nodragscroll so a drag resizes the menu instead of panning the page behind it, and the same sign flip on the delta so the widening drag mirrors under RTL rather than needing a second rule kept in step. ONE number, on <html>. The width is a CSS custom property, --wekan-left-menu-width, and everything that needs it reads that: the Admin Panel's menu, the All Boards one - whose grid track is auto, so the track follows the menu - and the grip itself, which sits at calc(width - 3px) from the row's inline start. An inline width on one element could not have done that: the menu is a different element in a different template on each page. The default is the number in the stylesheet, and a breakpoint that wants a different default overrides the VARIABLE, never the menu's width - a rule naming .side-menu would beat a dragged width, which arrives as an inline property on <html>, at exactly that one screen size. For the same reason the client REMOVES the property when nobody has dragged it rather than writing the default into it. The Admin Panel menu's own width was min(250px, 32vw), which only ever resolved to 250px above the 800px breakpoint; it is the shared 260px now, because the two pages draw one menu and a menu has one width. The grip is positioned against the row/grid around the menu, not inside it: the menu is its own scroll area, and a handle within it would scroll away with the entries. Being absolutely positioned it is neither a flex item nor a grid item, so it adds no column and no gap - which is why the shared menu template can carry it as a second root and every Admin Panel pane gets it without naming it. Clamped to 160px..min(600px, window - 240px), with no drag on a phone, where the menu is full width above the content, and none while it is folded, where there is no edge to drag. The All Boards menu also takes max-width:100% now, because the phone rules cap its track at 210px and a fixed width ran out past it. Remembered in the same three layers as the fold: a Session value first, then profile.leftMenuWidth, then the wekan-left-menu-width COOKIE when nobody is signed in - the same cookie mechanism the fold uses rather than the localStorage the right sidebar's width uses, so one reader's menu is not remembered in two different places. Saved once, when the drag ends; while dragging, the property is written directly so the edge follows the pointer without a database write per pixel. The server method clamps again and refuses NaN, which passes check(width, Number) and would otherwise store a width no page could recover from. Thanks to xet7 ! |
||
|
|
8ef151696d |
Folded, the left menu is gone - and the pane title brings it back.
Folded, the menu was a narrow strip with the caret alone in it. A strip is still
a column: it holds width, it keeps the page from starting at the window edge,
and a caret alone in it is a target that has to be aimed at.
Folded now means gone - no column and no strip - and the way back is the PANE
TITLE beside it: the caret moves to the inline start of the heading, and the
caret and the title are ONE target, so clicking anywhere on it brings the menu
back. Nothing is lost by drawing nothing, because the way back is the largest
thing on the page rather than the narrowest. The heading is drawn even for a
pane with no title of its own - paneTitle() returns {} when no entry is active -
so a folded menu can never be a menu you have lost.
One caret template still, included in both places on both pages, so they cannot
drift. Beside a title it is handed the pane's text as paneTitleKey / paneLabel
rather than the titleKey / label paneTitle() itself uses, so the caret at the
top of the menu, which inherits whatever context the menu sits in, can never
pick a title up by accident. It is an anchor with no href, so it carries
role="button", tabindex="0" and a keydown handler for Enter and Space: without
them the menu could be folded with a mouse and only with a mouse. Its tooltip
and aria-label are one string from a helper that names the pane as well beside a
title, because an aria-label REPLACES the text inside the element and the bare
word would have silenced the heading.
Which element takes the collapsed class differs by page, and that is the point.
The Admin Panel marks its menu: it is a flex row, and a hidden flex item closes
the row up by itself. All Boards marks the GRID, because display:none takes an
element out of a grid but the TRACK it was placed in remains - hiding only the
menu would have left the boards in the auto column with an empty 1fr one beside
them. The grid drops to one column and hides the menu in the same rule, with
!important, because the phone rules set both tracks with an !important of their
own and a phone would otherwise be the one screen still holding an empty column
open.
Thanks to xet7 !
|
||
|
|
5df6f28421 |
Left menus fold away, with the caret a list already has.
At the top of both left menus - All Boards and the Admin Panel - there is now a caret that folds the menu away, and the same caret brings it back. It is the control a list has on a board: pointing down while the thing is open and right once it is folded, with the same two words in its tooltip, so there is nothing new to learn. Folded, the menu is a strip holding only its caret and the page beside it takes the width back. Folded rather than hidden outright: a menu with no way back is a menu you have lost. Everything but the caret goes through a :not() on the caret rather than a list of names, so a row added later cannot be left sticking out of a narrow strip. On All Boards the width moved from the grid track onto the menu itself, because a fixed 260px column would hold the gap open beside a folded menu. One state for both pages: they draw one menu, and a reader who folds it away on one of them has said what they want on the other. It is a Session value first, so the fold is instant rather than waiting for a round trip, then profile.leftMenuCollapsed on the user document, and a cookie when nobody is signed in - a public board has this menu too - through the same cookie helpers the public list and swimlane collapse states already use. One caret template for both menus, so the two cannot drift into two different carets, and the helper that reads the state is global because the panel that takes the class is a different element in a different template on each page. Thanks to xet7 ! |
||
|
|
40325c88fd |
Left menus keep the neutral panel with the themed selected row.
Both left menus - All Boards and the Admin Panel - are a light grey card, and the entry you are on is filled with the theme colour with a white label and icon: the same treatment the selected tab gets in the bar above it. A menu is chrome, and tinting the whole card fights the content beside it. The panel, the labels, the hover, the dividers, the group headings and the counts are all as they were, and every theme's own header rule names the selected row again - including the colour slide of a clear* theme, which a --theme-accent value cannot carry. The guards and docs/Design/Page/Left-Menu.md describe this arrangement. Thanks to xet7 ! |
||
|
|
83e832e9e7 |
Left menus: the menu carries the theme, and the selected row is the white one.
Both left menus - All Boards and the Admin Panel - were a light grey card with one row filled in the theme colour. That made the filled row the only part of the page answering to the theme, so a menu read as a plain grey column with a coloured stripe in it rather than as a side of the app, next to the header bar it sits under. Inverted: the PANEL is the theme colour with white labels and icons, and the row you are on is a white block cut out of it with dark text. It is also the easier selection to find - the eye goes to whatever differs from its surroundings, and one white row in a coloured column differs more than one coloured row in a white one. The menu is the colour of the first header bar above it, including the colour SLIDE of a clear* theme, which a --theme-accent value cannot carry. Every theme's own header rule now names both menus: before this only six of them named the All Boards menu, so most themes coloured one menu and left the other one plain. No theme rule may name the selected row any more - it would paint that row the same colour as the menu behind it and leave nothing to show which row is selected - and a guard checks that. Hover on an unselected row is a wash of white over the theme colour rather than solid white, which would be indistinguishable from the selected row. The dividers, the group headings and the counts went with the rows, for the same reason: a dark rule on a coloured panel is a rule nobody can see. Two pairs of duplicate count rules were merged while doing this. Each had a base rule and a colour override with the same selector, which is how a guard came to read the wrong one. Documented in docs/Design/Page/Left-Menu.md. Thanks to xet7 ! |
||
|
|
39dcdcb79e |
Header labels: measure whether they fit, instead of guessing from the width.
The labels were hidden below 1100px, and a width cannot answer the question. A board carries ten controls, All Boards four, an Admin Panel page four tabs, and the words are as long as the reader's language makes them. xet7's screenshots show both failures at once: at 2266px the labels were shown and the bar wrapped anyway, and at 1810px they were hidden with a whole row to spare. fitHeaderLabels() shows the labels, asks the bar whether it wrapped - its last item sitting lower than its first - and hides them if it did. A tolerance rather than equality, because items of different heights sit on slightly different offsets within one row and align-items: center moves them. It always measures from the SHOWN state. Hiding the labels is what makes the bar fit, so measuring after hiding would answer "it fits", show them again, and do that once per frame forever. Removing the class before measuring costs one reflow per resize and is the whole reason this cannot oscillate - the guard pins that ordering, because it is the one thing here that is not obvious from reading. It runs from the same place that publishes --wekan-header-height, which already has a ResizeObserver on this bar - and wrapping is exactly what that observer exists to catch. Also in this commit, from the same screenshots and the same session: The pager buttons are FILLED with the theme and their arrows white, instead of an outline on transparent that put the theme in a 1px border and left the button a ghost beside solidly themed chrome. They read --theme-accent-fill, a new variable, because --theme-accent is one COLOUR and a colour-slide theme's fill is a gradient: a button reading the accent came out flat while the header above it slid. activeFill() resolves it - a custom pair beats the theme's own slide, the way a custom colour beats an accent - and the pressed state darkens that fill rather than replacing it, which keeps a slide sliding. And both left menus run from directly under the header to the bottom of the window, flush to its left edge. The Admin Panel's row carried a top padding that put grey above the menu; the main body carries it now, because content is not meant to be flush against a bar. Both menus lost their border and corner on the three flush sides: a rounded corner on a flush edge shows the grey behind it, which is the gap being removed. All Boards' grid uses column-gap, since a gap is between tracks and never insets the menu from the window edge. One correction of mine: activeFill's comment claimed it answers null for an unknown theme. accentOf answers '' and activeFill defers to it, so it answers '' too. The comment now says so - the two functions sit side by side and a reader should not have to remember which returns which kind of nothing. Thanks to xet7 ! |
||
|
|
4332677fbe |
The converted checkbox rows are rows, not full-height columns.
`.flex` is `display: flex; height: 100%`, which is right for a pane column and wrong for an anchor that is ONE ITEM of a row: it stretched to the row's height and pulled the box away from its words. The storage rows and the Backup include row now place their items - centred, only as tall as they need - whether the item is a label around a native checkbox or the material one that replaced it. Thanks to Alishara and xet7 ! |
||
|
|
3487d2519d |
One icon set: Font Awesome. The Grey Icons feature is removed.
WeKan used colourful Unicode emoji as its icon set in 8.00-8.24 only; before and after, the icons are Font Awesome 4.7. A handful of emoji had survived that change - every notification type, the board star, the vote-against thumb, the spent-time badge, the reaction and add buttons, the list width toggles, the bookmarks star, the back arrow, the custom-field pencil, the notification bin, the sidebar's plus and hash, the four date badges in cardDate.css and minicard.css, the mobile drag handle, the multi-selection tick, and the gantt day markers. Each of those is a different picture on every platform, at a size and colour the stylesheet does not control. They are Font Awesome glyphs now: either an `i.fa` element, or the codepoint (`content: "\f11e"`) with the font named, since `time::before` is not an `.fa` element. The helpers that produced an emoji return a class name instead, and their templates render an `<i>`. "Grey Icons" in Member Settings existed to grey exactly those emoji. It ran a MutationObserver over every rendered subtree, for the whole session, wrapping any text node that was one of ~50 emoji in a span it could greyscale - and only 13 of those emoji were still anywhere in the app. With them gone it has nothing left to find, so the feature is removed whole: the menu entry, the click handler, the `toggleGreyIcons` method, the `hasGreyIcons` helper, the `profile.GreyIcons` schema field and its published-fields entry, the `userGreyIcons` publication and its subscription, unicode-icons.js/.css and the feature import, twelve `body.grey-icons-enabled` CSS rules across six stylesheets, the `grey-icons` string in all 147 language files, the field in public/api/wekan.yml and wekan.html, and the two mentions in docs/DeveloperDocs. The language flags in the language picker stay: Font Awesome 4.7 has no flags. tests/fontAwesomeIcons.test.cjs fails on an emoji in any template or any CSS `content:`, checks the date badges name the font and use the four codepoints, checks the icon-producing helpers return class names, and checks that no part of the removed feature is left anywhere. Thanks to xet7 ! |
||
|
|
5a75558f80 |
Admin Panel checkboxes: undo the -9999px offset too, or only the tick shows.
The app-wide rule that hides a native checkbox hides it in THREE ways at once: display, visibility, and `inset-inline-start: -9999px`. The Admin Panel rule undid the first two, so the box was on screen - 9999px to the side. Unchecked it was simply not there; checked it appeared, because the checked state sets its own -3px offset. That is exactly what "only the checked state is visible" was, in the S3/MinIO, Azure and GCS panes and everywhere else a native checkbox is used. `inset-inline-start: auto` (and `top: auto`) undoes the third. The test now reads the hiding rule and requires the Admin Panel to undo every property it hides with, rather than a list written by hand - so a fourth way of hiding one would fail here instead of on screen. Thanks to xet7 ! |
||
|
|
f054ad9e71 |
Admin Panel checkboxes: undo the form-field height floor.
The material declarations were right, but one thing still fought them: forms.css styles `input:not([type=file])` as a form FIELD - grey background, 6px radius, padding, bottom margin, and `min-height: 41px`. Everything else was overridden; the height floor was not, so a 13px box was drawn as a tall rectangle and the tick it turns into was stretched with it. That is why the checked state looked roughly right and the unchecked one did not, in Attachments / Limits / Avatars, in the S3/MinIO, Azure and GCS storage panes, and everywhere else a native checkbox is used. `min-height: 0` (and `min-width: 0`) undoes it - the same reset `input[type="radio"]` does a few lines below that rule in forms.css, for exactly this reason. The test now asserts every part of the form-field styling is undone, naming the 41px floor, so this cannot come back unnoticed. Thanks to xet7 ! |
||
|
|
7f01afdc20 |
Admin Panel / Attachments / Backup: pick the schedule's day from buttons.
Day of week was a text field. It only ever accepted an English day name, typed exactly right, from an admin reading a page in their own language - and nothing said so. It is seven buttons now, each labelled in the reader's language. Day of month was a number spinner: 27 clicks to reach the end of the month, and no sign that the 29th to the 31st are not offered at all - a schedule there would skip February. It is 28 buttons, one per date. What is STORED is unchanged: the English day name and the number, because that is what the cron sentence is built from (models/lib/backupPaths.js scheduleText). Only the labels are translated. The chosen one is filled with the theme colour, the way the selected left-menu entry is, and the rows wrap rather than squeeze. The choice is template state now, seeded from the saved schedule when it arrives - and not overwritten by it once the admin has picked something. Thanks to xet7 ! |
||
|
|
17f41eb15b |
Admin Panel / Attachments / Backup: the three include checkboxes are one row.
"Attachments, Avatars, Data (text)" already draw as the Admin Panel's checkbox - the plain square when off, the green tick when on, animated between, like Announcement's "Active System-Wide Announcement" - since the checkbox style was made the material one for every native checkbox in the panel. What they lacked was layout: three inline labels, so a label could wrap away from its own checkbox, and the box shifts a few pixels as it turns into the tick, which unaligned text follows. They are one flex row now, each label holding its box and its words together. Thanks to xet7 ! |
||
|
|
b7d7453f5c |
Admin Panel: every popup's Save is the same button as a pane's Save.
The Save inside the New and Edit popups for Translation, User, Organization and Team is an `input[type=submit].primary.wide` in a flex `.buttonsContainer` - and `.wide` never reached it, because the rule for it in forms.css is written as a DESCENDANT selector, `input[type="submit"] .wide`, which an input can never match. So those Saves were the right colour but a different, cramped size from the Save in a pane (People / Login, People / E-mail, Visibility). All eight popups are now listed with the panes' own Save declarations - the theme accent, the same padding, weight and states - and each Save takes its row, which is what `.wide` was for. The popups are named one by one on purpose: `.buttonsContainer` is board-sidebar and member-menu markup too, and those are not Admin Panel buttons. The test walks the Admin Panel templates and fails if a popup with a Save is not in that list, so the next popup added cannot quietly get a plain button. Thanks to xet7 ! |
||
|
|
a315a23cb7 |
Admin Panel checkboxes: the unchecked square and the animation, not just the tick.
The first attempt drew the checkmark with a pseudo-element over the box. That got the checked state right and lost the other two thirds of the checkbox: the plain grey square when unchecked, and the 0.2s morph between them that Announcement's "Active System-Wide Announcement" checkbox has. The rules are now `.materialCheckBox` and `.materialCheckBox.is-checked` applied to the input itself - the same square, the same morph into the same green tick, the same transition - with `appearance: none` as the only addition, to take the browser's own rendering out of it. A native Admin Panel checkbox and a WeKan one are now the same checkbox in every state. The test compares them declaration by declaration against forms.css, so a change to the material checkbox that is not carried over here fails rather than quietly leaving the two different again. Thanks to xet7 ! |
||
|
|
83ddeee57d |
Admin Panel: the edit popups' Save is the same button as a pane's Save.
A pane's Save is a `button.primary`, which forms.css themes. The Save inside the Admin Panel edit popups (Edit User, Edit Organization, Edit Team) is an `input[type=submit].primary.wide` in a flex row - and `.wide` never reached it, because the rule for it in forms.css is written as a DESCENDANT selector, `input[type="submit"] .wide`, which an input can never match. So the popups' Save was the same colour but a different, cramped size. Both are listed with the same declarations now - the theme accent, the same padding, weight and states - so they cannot drift apart again, and the popups' Save takes its row, which is what `.wide` was for. Also: a checkbox written as `label > input + text` (Attachments / Limits / Avatars, and the Backup checkboxes) gets the gap between box and words that the .materialCheckBox markup gets from its own layout. Thanks to xet7 ! |
||
|
|
362b14c3d9 |
Admin Panel: one checkbox look, and Allow Email Change becomes a checkbox.
WeKan hides the native checkbox app-wide and draws its own square with a green tick - `.materialCheckBox`, which is what Admin Panel / Settings / Announcement shows for "Active System-Wide Announcement". But several Admin Panel panes use a real <input type="checkbox">: the storage Read toggles, the Organizations and Teams feature columns, the Backup checkboxes, the Problems summary. Those were either invisible, because nothing re-enabled them, or re-enabled pane by pane and then drawn by the BROWSER - on Ubuntu a big orange box that ignored the chosen theme entirely (orange under clearblue), at a different size in every pane. The Admin Panel now styles them itself: `appearance: none` takes the browser's rendering out of it, and the tick is drawn the same way .materialCheckBox draws it - two borders of a rotated box, in the same green - so a native checkbox and a WeKan one are the same checkbox to look at. Grey icons, disabled and keyboard focus are handled with it, and the panes no longer each re-enable and re-size their own. Admin Panel / People / E-mail / Allow Email Change is one such checkbox now instead of a Yes/No radio pair: the setting is on or off. Save below writes it as it wrote the radios, and only when the checkbox is on screen. Thanks to xet7 ! |
||
|
|
d726759060 |
Admin Panel: the selected left-menu row is painted like the second header bar.
It used to be filled with `--theme-accent`, one flat colour. That is close for most themes and wrong for clearblue, whose bar is a colour SLIDE - a gradient no single accent value can express. Every theme's own `#header` rule in boardColors.css now names the selected row as well, so the two are painted by exactly the same declaration, theme by theme: a flat colour stays flat, a gradient stays a gradient, and adding a theme cannot make them drift apart. The `--theme-accent` rule stays as the answer for an instance with no theme at all. tests/themeAccents.test.cjs asserts every allowed theme paints the row, and that the selector is only ever added to a rule that also paints the header - never to a copy of the colour. Thanks to xet7 ! |
||
|
|
19a5ea0b71 |
Theme: every named theme publishes its accent, so the whole UI follows it.
Choosing a named theme recoloured the header - which has a `.board-color-<name>#header` rule of its own - and left everything that reads the `--theme-accent` CSS variable on the stock blue: the Admin Panel's selected left-menu row, its pane buttons, every Save button, the table-page controls and the popup header. That variable was only ever set when a user picked a CUSTOM colour for a flat/clear theme. models/lib/themeAccents.js now maps every allowed theme to the colour that theme paints its header with, and globalThemeColor.js publishes it as --theme-accent whichever theme is in force: the user's own override, the board's colour, or the site theme. A custom colour still wins over it, and the has-custom-theme-* classes stay tied to a custom colour - they exist to override a named theme's own header rule, which a named theme must not do to itself. tests/themeAccents.test.cjs parses boardColors.css and fails if the map and the stylesheet ever disagree, so a theme cannot be added in CSS alone and quietly fall back to blue. The Admin Panel edit popups (Edit User, Edit Organization, Edit Team) also got their layout fixed: they are centred on the window rather than positioned from the table row that opened them - which pushed their right-hand side, and the Save button, off the screen - and their fields lay out in as many columns as the window has room for, so a long form no longer has to be scrolled to reach Save. No popup can be wider than the window any more. And two smaller things in the Admin Panel: the Wait Spinner setting shows a live preview of the spinner beside its dropdown, which wraps below the dropdown when there is not enough room; and the Translation table's New column moved to the left, where every other Admin Panel table page has it. Thanks to xet7 ! |
||
|
|
36b899b9d6 |
Multitenancy: one WeKan server for many domains, with Organizations as tenants.
Implements option D of docs/Design/Multitenancy/Multitenancy.md, which that document now describes as shipped. An Organization may claim hostnames (Admin Panel / People / Organizations -> Edit), carry its own branding - product name, logos, help link, legal notice and theme colour - and have its own Organization admins, appointed from the row's "..." menu. The request's host picks the Organization; its branding replaces the instance branding for that request, and the client bundle that host serves points its DDP connection back at that host instead of at the one ROOT_URL. An Organization admin administers their own Organization and nothing else: its people, its Organizations row, its theme colour and its backups. They can never grant the site-wide Admin flag, never manage a site admin, and never see another Organization's people or archives. Per-tenant backup and restore is one new control in Admin Panel / Attachments / Backup - Scope. An Organization's archive holds its boards and everything on them plus the attachments those boards use, and no accounts, no instance settings and no org/team documents, because those are shared. A restore may only write to boards that Organization owns: the board ids are the intersection of what the archive claims with what the Organization really owns, every document is checked against that, and "replace all" replaces that Organization's documents rather than everyone's. Admin Panel / Settings / Visibility gains a Change color section above Logo: the site theme, rendered by the SAME shared picker as Board Settings and Member Settings - one template for all three, the way one shared table page serves every table. Its design is the new docs/Design/Page/Theme.md. The order of themes is WeKan's default theme, then the site theme (an Organization's own value on its own hosts), then a user's own override; a board's own colour still owns the board page. All of it is OFF unless the server is started with MULTITENANCY=true (plus MULTITENANCY_TRUST_PROXY_HOST=true when a trusted proxy sets X-Forwarded-Host), so an instance that has never heard of tenants answers exactly as before. One WeKan server per customer remains the supported topology for customers who must not share a process, and the design says plainly what this does NOT isolate. The decisions are three pure modules - models/lib/tenants.js, tenantAdmin.js and tenantBackup.js - so the same rules run on the client, on the server and in the tests. Four new suites pin the separation rather than the plumbing: forged Host headers, cross-tenant queries, privilege escalation and cross-tenant restores. Thanks to xet7 ! |
||
|
|
671262ddb1 |
Admin Panel / Settings / Visibility: four named groups instead of one long list.
Top to bottom, under the pane title:
All Boards boards visibility (allow private only), don't show board
activities on All Boards, hide card counter list, hide board
member list, wait spinner
URL Support (link, enable, title/content), custom help link URL,
custom legal notice URL, custom URL schemes
---
Product name the custom product name
---
Logo hide logo, the login logo image/link/text, the top-left corner
logo image/link/height
The settings themselves are untouched, and so is every input id - the one Save
button at the bottom looks its fields up by id, not by position, so grouping them
changed nothing about what it writes. The three dedicated Save buttons (board
activities, Support, and that one) stay with what they save.
A group title uses .admin-pane-group-title: 1rem against the pane title's
1.25rem, so the page reads as one heading with groups under it rather than as
several pages stacked. Three new English strings for the titles that had no key -
URL, Product name, Logo; All Boards reuses the key it already has.
Thanks to xet7 !
|
||
|
|
fc0fe31779 |
Admin Panel / Problems: Broken cards is a report, and the menu says which group is which.
Broken cards was the one entry in this menu with a different set of controls: no
search box, no total, no "page X / N", just a prev/next of its own - because it
ran on the global-search machinery (CardSearchPaged, a session document and the
nextPage/previousPage publications) instead of the shared table page. It is a
column spec in REPORT_TABLES now, like Files, Rules, Boards and Cards, driven by
the same loadReport(): a new admin-only `brokenCardsReport` publication takes a
search term plus limit/skip and publishes ONE page manually (a returned
sorted+limited cursor hangs on FerretDB's OpLog, as with the other reports), and
`getBrokenCardsReportCount` gives the total behind the counter.
What "broken" means - no board, swimlane or list, or a type that is not a card
type - is now one selector shared by the report and by the standalone
/broken-cards page, which still runs on the global search and keeps its own
publication unchanged.
The menu is two named groups. Summary, then a rule and a "Settings" title over the
two panes that came from Admin Panel / Features, then a rule and a "Reports" title
over the reports. A title is a new kind of menu item - `{ heading: true, labelKey }`
- with no id, no icon and no handler class, so there is nothing to click, nothing
for the page's click handler to read a data-id from, and it can never be the active
row (or a group name could end up as a pane title). Both use an i18n key the app
already has, so no language has to translate anything new.
Performance moves down to sit with the Speed, Tests and CPU usage streams it is
about, below Impersonation Report - it was three groups away from them, up with the
other two Features panes.
While there: the separator between groups is styled with the menu itself. The rule
for it lived in adminReports.css, twice, targeting a class the shared menu does not
render - so it had never applied to anything.
Thanks to xet7 !
|
||
|
|
d232194070 |
Admin Panel: the tables fit, every pane has a title, and Version opens first.
Reported one after another, all in the Admin Panel, and they turned out to share
two causes: a stylesheet deciding a table's width from outside the design that
owns it, and a pane having to write for itself what every pane needs.
The tables
* Admin Panel / People / People rendered NOTHING - no table, no search box, no
pager. `buildFilters` and `buildActions` were used in peopleTablePageData but
never imported. That is not a build error: it is a ReferenceError thrown inside
a helper while rendering, which Blaze answers by rendering nothing at all.
Organizations, Teams and Domains use neither function, so they drew normally,
which is what made it look like a People-only problem.
* The right-hand side of a table was off screen - reported on Domains, and just
as true of Admin Panel / Version, where the value column was cut off at the
window edge. Two admin stylesheets forced `min-width: 1200px !important;
width: max-content !important` with nowrap cells on a bare `table` selector.
peopleBody.css had no page in the selector at all, so it reached every table in
WeKan, and `!important` beat the shared table page's own width:100% +
table-layout:fixed. The same rules also made a SHORT table shrink to its
content, which is why Domains sat at a third of the panel on a narrow window.
No admin table is forced wide any more: it fits its panel and its cells wrap,
and the phone-width exception that used to undo the floor is simply the rule at
every width. The shared table page's width and wrapping are `!important` now -
a guarantee a stylesheet in another folder can silently override is not a
guarantee.
* An empty table page rendered no table at all, and the "New" link of
Organizations, Teams, People and Translation is a column HEADER - so an empty
pane had no way to create the first row. The table always renders now; the
"no items" message moved below it.
* The controls row: every control shares one height and no margin. forms.css is
`button { display: block; margin-bottom: 14px }`, written for stacked form
buttons, so a button that kept that margin was centred higher than one that did
not - "Unlock all users" sat lower and shorter than "Teams" beside it, since it
also carried a 20px margin and a 28px height from the old hand-written header.
Action buttons are themed with the pager, in the one stylesheet that owns those
colours, every state spelled out, or a bare <button> falls through to the
forms.css fallback, which is literally black.
Admin Panel / Settings / Translation now renders through the shared table page
(docs/Design/Page/Table.md) instead of a hand-written table: four columns, an
interactive row, the "New" link as a column header. It pages ONE page of 25
server-side with limit/skip and a count method, where it used to grow a window by
infinite scroll; the publication publishes the field it is sorted by, so the
client's sort matches the server's page.
The pane title
Every Admin Panel pane opens with the same heading, and the heading is the ACTIVE
LEFT MENU ENTRY's own label - `paneTitle()` in models/lib/leftMenu.js, one class
`.admin-pane-title`, which the shared table page's own title carries too. Before
this only the paginated table pages had a title at all: Domains said "Domains"
while Login, Announcement, Accessibility, PWA and Version opened with no heading.
Deriving it from the menu is what keeps them identical - a pane cannot end up with
a title of a different size or none at all - and it is why a table page inside the
Admin Panel now passes no titleKey: the section already rendered the heading.
The menus
* Version is the FIRST pane of Admin Panel / Settings and the one that opens with
the page, so what an admin sees first is the version, database and system
information they usually came for. Its page, its one-entry menu and its tab are
gone - a page whose menu had a single entry was a page in name only - and
/information redirects to Settings, the same move Translation made.
* Admin Panel / People: Domains moves up beside E-mail, the settings it is about.
* Admin Panel / Attachments: Backup moves to the top.
Tests: tests/tablePage.test.cjs gains the Translation conversion, the empty-table
header, the one-height controls row, the themed actions and a guard that no admin
stylesheet may force a table's width; tests/leftMenu.test.cjs gains the pane title
(helper, template, every page renders it, one shared size) and Version as the
first Settings pane; tests/translationPane.test.cjs is rewritten for the pane that
is left once the shared design owns the table.
Thanks to xet7 !
|
||
|
|
a4990a4741 |
Admin Panel: a long left menu scrolls inside its panel instead of spilling out.
Admin Panel / Problems is the longest menu - 15 entries since Performance, Security and Notifications joined it - and its last four sat on the page's grey with no panel behind them. The panel is a flex item stretched to the row's height, so its background, border and rounded corners end at the bottom of the page. With the default `overflow: visible` the entries simply kept rendering past that edge. Nothing was hidden and nothing was unclickable; the menu just stopped looking like a menu halfway down. It scrolls now. `min-height: 0` goes with it: a flex item does not shrink below its content without it, so the box would stay as tall as the list and the overflow would never engage - the rule would look right and change nothing. Whatever is visible is now always on the panel, at any window height and for any menu length, rather than depending on the menu being short enough. Tests: 1380 passing. Thanks to xet7 ! |
||
|
|
73cd930a44 |
Admin Panel: table pages fit their panel, and Translation lists its rows again.
Two reports, one of them the same bug in a third place. Domains - and with it every other shared table page - needed scrolling to the right to see its last columns. settingBody.css gives EVERY table in the admin body a 1200px floor, `width: max-content` and nowrap cells, written years ago to force a horizontal scrollbar. Applied to `.table-page-table` that overrode exactly what makes the shared page fit: width:100%, table-layout:fixed and wrapping cells (docs/Design/Page/Table.md). The three rules now exclude `.table-page-table`; the genuinely wide admin tables - GridFS statistics, Version, Translation - keep them. The panel's `overflow-x: scroll` becomes `auto` in the same breath, so a page whose content fits no longer shows a scrollbar with nothing to scroll to. Admin Panel / Settings / Translation showed no rows and no way to add one. `translationList` is a helper of Template.translationSettings, but `each translation in translationList` is written inside translationGeneral - a different template. Blaze resolves a name against the current template's helpers, the global helpers and the data context, never an enclosing template, so the list came out undefined and the tbody was empty. The parent hands the list down now. This is the third instance of that one mistake today: Organizations, Teams and People had it too. Its Search button was BLACK. forms.css styles every bare <button> from `var(--theme-accent, #000)`, and with no per-user theme chosen that fallback is literally black. It takes the same colours as the other admin buttons now - the accent when one is set, the WeKan button blue when it is not. Every state is spelled out (:hover, :focus, :active, :active:hover) because forms.css sets each of those from the same variable with its own black-ish fallback; overriding only the resting state leaves a button that turns black the moment you touch it. tests/uiDensity.test.cjs asserted against the old unscoped td/th selectors and now asserts the scoped ones, with a note about which tables they are for. Tests: 1352 passing. Thanks to xet7 ! |
||
|
|
e26706799e |
Admin Panel: the selected left-menu entry looks like the selected tab above it.
Replaces the darker-and-bold label from
|
||
|
|
b775ee1e1b |
Admin Panel / People: the tables are back, and the selected menu entry stands out.
Organizations, Teams and People drew their search box and their pager but NO TABLE. Their wrappers said `+tablePage(orgTablePageData)` while that helper was registered on Template.people - the PARENT template. Blaze resolves a name against the current template's helpers, the global helpers and the data context; it never searches an enclosing template. So the context came out undefined, and a table page with no rowCount draws its chrome and stops. Nothing threw and every test passed. Domains is the control that proves it: its helper sits on Template.domainGeneral, the template that uses it, and Domains kept working the whole time. The parent builds the context now - where the helper actually lives - and hands it down, so each wrapper renders `+tablePage(this)`. The named arguments the wrappers used to take (orgList, orgCurrentPage, hasOrgPrevPage, ...) went unused once these panes moved to the shared page, so they go too. A new test walks every `+tablePage(name)` in that file, works out which template it is written in, and requires `name` to be a helper OF THAT TEMPLATE unless it is `this`. Verified it flags `orgGeneral -> orgTablePageData` when the bug is put back. Also: the selected left-menu entry is darker and bold, so the menu says at a glance which page is showing on the right. Its colour fell back to `inherit`, which made it exactly the same grey as every unselected entry - the white background and soft shadow alone were easy to miss. A per-user theme accent still wins; only the fallback changed, from `inherit` to a grey darker than the panel's. The icon takes the same colour as its label. Tests: 1347 passing. Thanks to xet7 ! |
||
|
|
357283cf68 |
Admin Panel: no page-title bar on any page - just the left menu and the pane.
Every Admin Panel page except Problems drew a title bar under the top bar, repeating the name of the pane you were already looking at: "Registration" above Settings, "Info" above Version, and so on. The top bar already says which section you are in and the left menu highlights the open pane, so the third line only cost vertical space. Problems has never had one; the rest match it now. Settings, Version, Features and Attachments carried nothing but a title, so their bars are simply gone. People's bar was not only a title: the Organizations and Teams panes searched from a box and button inside it, and it showed their row counts. The searches move into the shared table page's controls row - which is where People's own pane already searched from - and the counts were already shown there as the table's total, so they needed no new home. One keydown handler now dispatches on the open pane, the way the pager and the filters already do, and each pane keeps its own search term so switching panes does not carry a search across. What the bars left behind goes with them: the `.ext-box` rules in peopleBody.css and translationBody.css, `.content-title` in settingBody.css, and the three count helpers that fed the bar - all dead once the markup went, and all verified unreferenced first. CSS was removed rule-by-rule with a brace-balance check before and after, because line-filtering this same file orphaned five rule bodies once already. Three existing tests asserted things that were true only while the bars existed - the themed search button, the search handler's scoping, the PWA pane header - and now assert the same properties in their new homes. Tests: 1346 passing. Thanks to xet7 ! |
||
|
|
a5850296ad |
Mobile mode: the board fits the width, and the titles sit on their centre line.
The lists area was a little too wide - a horizontal scrollbar with a small amount to
scroll right and nothing there to see. Two causes.
`100vw` again. It was fixed in boardHeader.css in
|
||
|
|
d03cd03007 |
Stop elements resizing with the browser window, this time inside clamp().
Reported on a board in mobile mode in desktop Firefox: widening the window made the
swimlanes, lists and cards taller; narrowing it shrank them again. The same complaint
as /sign-in and /sign-up, and the same cause - a size measured against the WINDOW
instead of being a size.
The earlier sweep converted 355 bare `vh`/`vw` values but explicitly ALLOWED
`min()`, `max()` and `clamp()`, on the grounds that they are caps. `clamp()` is not.
It is only a cap at its two ends; between them it tracks the viewport exactly like a
bare `vw`. So `font-size: clamp(18px, 2.5vw, 32px)` on a swimlane header, a list
header and a minicard is a font that grows with the window - and since those rows are
sized by their text, the rows grow with it. There were 75 of these across 17
stylesheets, 36 of them in the mobile-mode board rules.
All 75 are converted to the size they already rendered at on a phone - the lower bound
of each clamp. That is the value these rules were designed around (below ~800px the
clamp was pinned to it anyway), it is in line with the rest of the UI's fixed sizes,
and picking the upper bound instead would have made every phone bigger than it is
today.
Also converted, same behaviour by other spellings:
* `.board-sidebar { width: clamp(320px, 30vw, 560px) }` -> a fixed 420px. Its own
comment recorded 420px as the intended width; the clamp was added to stop a bare
30vw doubling on wide screens, but it still resized in between.
* `min-height: 3vh` on the mobile minicard -> 24px.
* `min-height: 60vh` on a collapsed list -> 540px, which is exactly what the
`height: 540px` on the very next line already says.
* `min-height: 60vh` (settings body) -> 540px; `min-height: 14vh` (search popover)
-> 126px.
* `max-width: 13vw` on a minicard custom-field chip -> 160px.
tests/noViewportSpacing.test.cjs no longer allows clamp() or a viewport `min-*`, and
says why. What stays allowed is a full-viewport box (100vh/100vw), a `max-height` /
`max-width` cap, and `min(400px, 52vw)` - a shrink-only cap, flat at the px above the
crossover width and giving way only below it so a box fits a narrow screen. It never
grows with the window, so it is not this bug; `max(...)`, which does grow without
bound, is not allowed. Both argument orders are accepted.
tests/sidebarWidth.test.cjs required `clamp()` for the sidebar - that was the fix for
the doubling, and it is now the thing being removed. It asks for a fixed px width and
no viewport unit at all, which is a stronger form of what it was guarding.
Tests: 1321 passing.
Thanks to xet7 !
|
||
|
|
40de0df00f |
Stop element size and spacing changing when the browser window is resized.
Reported on /sign-in and /sign-up: making the window taller made every element
taller and every gap wider; making it shorter shrank them. That is what vh does -
`padding: 3vh 3vw`, `margin-top: 6vh`, `min-height: 4.5vh` - the box is a
percentage of the WINDOW, so the page reflows continuously as you drag the edge
and the same layout looks different on every screen.
It was not only those two pages. 355 such values across 24 stylesheets, on
padding, margin, gap, height, line-height, font-size, border-radius and
box-shadow. They are now the pixel sizes they rendered at on the window they were
tuned for (1vh -> 9px, 1vw -> 14px), so each page looks as it did at that size and
stays that size everywhere else.
Two of them were documented bugs already: minicard.css carries two comments
explaining that the global `.viewer { min-height: 2.5vh }` "reserves a big empty
band under a one-line title, so half of every minicard was white space" on tall
screens. That floor is 22px now, and the modal body's 20vh is 180px.
Viewport units are still right for three things and are kept: a full-viewport box
(100vh/100vw), a CAP that stops content overflowing a small screen (min(), max(),
clamp()), and max-/min-width limits. 274 such uses remain, all deliberate.
The conversion was a token substitution - it cannot move or delete a rule - and
brace balance was asserted unchanged for every file before writing it.
Tests: tests/noViewportSpacing.test.cjs scans every stylesheet under client/ and
fails on any size or spacing measured in vh/vw, while still permitting the three
legitimate shapes (it checks both directions). It blanks block comments first, so
the two minicard.css comments ABOUT this bug are not reported as uses of it. One
existing test pinned the literal `2.5vh` global floor; it now pins a px floor, and
the dependency it documents - that the minicard override compensates for a global
floor - is unchanged.
Thanks to xet7 !
|
||
|
|
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 ! |
||
|
|
33d95e4eb6 |
Admin tables fit the screen and wrap their text on a phone.
Admin Panel / Version needed a horizontal scroll to read a value that easily fits
on screen: "WeKan Version" sat at the left edge and its version number about a
thousand pixels away.
The cause is deliberate, and applies to EVERY admin table:
.setting-content .content-body .main-body table { min-width: 1200px !important }
.setting-content .content-body .main-body table td { white-space: nowrap }
with the comment "Force tables to always trigger horizontal scrolling". That is
reasonable for the wide data tables, but a two-column table like Version is
pushed to 1200px for no reason, and nowrap cells can never use a second line.
At small width the table is now allowed to be as wide as the screen and no wider,
and cells may use as many lines as they need; long unbroken values (version
strings, paths, URLs) break instead of pushing the table wide again. The label
column keeps a 45% share so it does not collapse to one character per line beside
a long value. Horizontal scrolling still works where a table genuinely cannot
fit - it is simply no longer forced on tables that would fit comfortably.
The override is last in the file and repeats the same selectors, so it wins on
source order at equal specificity.
Thanks to xet7 !
|
||
|
|
52acd4b754 |
Buttons follow the theme: global button base + primary buttons use var(--theme-accent).
WeKan buttons hardcoded their colors, so a Member Settings → Change color theme override never reached most of them (customTheme.css only themed `button[type=submit].primary`, not plain `button.primary`, and the global button base was solid black). Now the global button base and the primary buttons in client/components/forms/forms.css use `var(--theme-accent, <original>)`, and the admin action buttons (settingBody.css) and People-panel buttons (peopleBody.css, incl. ext-box / add-remove-team / unlock-all) do the same. The fallback keeps the default look identical, but once the user picks a theme accent, the buttons across the app follow it. Guarded in tests/buttonThemeColors.test.cjs. Thanks to xet7 ! |