Commit cac421c
authored
* feat(admin): put the admin UI on the Saddle Violet palette
Replaces the monochrome accent (#171717) with the brand palette, as
consumer-side --pp-* overrides in Saddle's own stylesheet. Nothing in
node_modules or the library is touched; the DS defines its tokens inside
:where(), which has zero specificity, so a plain class selector wins
without !important. Both .pp-app and the body class are targeted because
portaled overlays render outside .pp-app and would otherwise lose every
token.
The rule the whole palette follows: every color has a bright value for
FILLS and a darker same-hue value for TEXT. This is not a stylistic
choice — three of the four given hexes cannot carry text at all (lime
1.98:1 on white, cyan 2.43, coral 3.67), and the DS derives
--pp-tone-text from --pp-tone for status, so a lime --pp-success would
have meant lime badge text at 1.9:1: materially worse than what ships
today. The readable partners go back at the tone layer, the same seam
the accent tone already uses.
Lime, cyan and amber each move one step down their own ramp for the
MARK tier too. A status dot or a 2px lane rail has to clear 3:1 on a
white card to be seen, and at the -500 step they are at 1.98 and 2.43 —
invisible. Coral already clears it and is used exactly as given. The
Permissions lane rails take the readable step for the same reason: a
2px hairline at 1.9:1 is not there at all.
Warning stays amber rather than folding into coral. Saddle says two
different things with those: amber is "powerful, asks first" (the
Remove lane, the shield chip, the write-tier pill) and red is "blocked
or failed" (a denied call, a connection error). They need opposite
reactions from the reader.
Also here, because they are all color decisions in the same block:
- Neutrals warmed onto #FBFBFA / #111111. The ramp is the only lever
needed — no DS component reads --pp-n-* directly, all eleven feed ten
semantic aliases — and the lightness steps are unchanged, so no
hierarchy moves. Muted text goes 4.40 -> 4.50, clearing AA.
- --pp-focus set explicitly. It is a separate literal that no accent
file touches, so Saddle has been shipping a monochrome accent with a
WordPress-blue focus ring this whole time.
- Radii tightened to 3/4/6px and elevation flattened, to sit closer to
wp-admin's own register while staying a hair softer. Pills untouched.
- .pp-code--dark's ground pinned to near-black. It reads --pp-code-bg
from --pp-action but hard-codes its border, muted and body colors, so
a violet action token would have left 35 CodeBlock/Snippet instances
violet-backed with muted text at 2.26:1.
- The brand mark is recolored through the nav lockup, never in the SVG:
editing the file would break the `black` sentinel that core's
svg-painter needs to repaint the wp-admin menu icon.
Four token references were already broken and would have stayed broken
through any re-brand: --pp-fg-muted, --pp-fg and --pp-fg-subtle do not
exist in @plugpress/ui 0.12.0, and --s-accent was referenced by the
Cookbook recipe bar but defined nowhere in the repo.
Refs #153
* feat(admin): one flat rail, a Dashboard that leads with a sentence
The UX half of the re-brand. Four rules, now recorded in
DESIGN-ALIGNMENT.md, and every change below traces to one of them: one
idea per screen; content over chrome; say nothing rather than say
nothing; plain, task-first names.
**The rail is one flat list.** The three labelled sections were three
more things to read before you could read the thing you came for, and
seven items is not a wall. This is a pure data change — AppNav takes a
mixed array of items and groups, so only what the useMemo returns
changed; the JSX did not.
Two things fell out of it and are cleaned up here rather than left
half-done. TopBar's "group · title" breadcrumb had nothing left to
resolve, so the lookup goes and it shows the title. And the footer was
28 lines of raw <button>s re-implementing the DS's own nav-item markup
by hand; the DS supports footer groups natively (`footer: true` puts a
group in .pp-nav__bottom), which brings aria-current and the
collapsed-rail tooltips with it instead of us maintaining them.
Two labels now say what you do there: Guidance -> Instructions,
Connections -> Apps. Routing keys are untouched, so every #hash link,
the ALIASES map and Pro's routing keep working.
**The Dashboard leads with a sentence.** It opened with four equal tiles
of three different kinds — two counts, a setting and a health state —
which reads as a metrics dashboard for a question that is not a metric.
The answer to "what can my AI do right now" was already written, in
levelFor(tier).one, and the tiles were paraphrasing it down to one word.
So that sentence is the page now, the counts are one quiet line under
it, and the Connection tile is gone: it said "—" on most installs while
a real problem already had its own callout with an explanation and a
fix, so it spent a quarter of the page saying nothing. When there are no
apps the count is dropped too — the callout directly below already says
it.
The LEVELS strings in api.js were raw English, never wrapped in __() —
including the sentence this design just promoted to the page headline.
Fixed, which is most of the 10 new msgids.
**The Cookbook is removed** — tab, screen, CSS, REST route, PHP class
and its 6 tests. Verified not agent-facing first: Saddle_Cookbook is
referenced in exactly three places (itself, its test, one admin REST
callback) and has zero hits across includes/abilities, the system
context, the context bundle, skills, playbooks and the MCP transport.
Not to be confused with Saddle_Recipes, the section recipes behind
saddle/list-section-recipes — different system, untouched.
637 tests (was 643; the 6 are the cookbook's), 0 lint errors.
Refs #153
* docs: session log for the admin re-brand and UX pass
Refs #153
1 parent 6ef59bc commit cac421c
17 files changed
Lines changed: 771 additions & 1727 deletions
File tree
- admin
- build
- src
- components
- includes
- admin
- languages
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
2 | 23 | | |
3 | 24 | | |
4 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
19 | 84 | | |
20 | 85 | | |
21 | 86 | | |
22 | | - | |
23 | | - | |
| 87 | + | |
| 88 | + | |
24 | 89 | | |
25 | | - | |
26 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
27 | 93 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
32 | 103 | | |
33 | 104 | | |
34 | 105 | | |
35 | 106 | | |
36 | 107 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
41 | 119 | | |
42 | | - | |
| 120 | + | |
43 | 121 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments