Commit 51d3d27
authored
Portal policies: SUI setup forms fixes and improvements (Stirling-Tools#6927)
## What this does
Reworks the portal's policy setup screens so a policy reads as **its own
settings**
rather than a list of tools you wire together, and rebuilds the forms on
the
shared design system so they match the rest of the portal.
## Why
Setup showed one card per underlying tool (tool name + a toggle), which
exposed
the "a policy is a pipeline of tools" plumbing. A policy should read in
terms of
what it does to a document, not which tools run under the hood.
## Changes
- **Setup reads as policy settings.** The per-tool cards are now a
plain-language
list of what the policy does — "Redact sensitive information", "Strip
active
content", "Apply a watermark", and so on — each with a short description
and a
toggle, with its options appearing inline when turned on.
- **Consistent design system.** The setup and edit forms use the shared
components instead of one-off styling.
- **Simpler setup.** Removed two sections that aren't part of what ships
here:
Document Types (scope-by-type) and Retries.
- **Watermarks are text-only.** A policy watermark is a text stamp, so
the image
option and the type picker are hidden.
- **The editor always shows as a source** (it used to disappear when no
other
sources were connected), and the source tiles now lay out correctly.
- **Clearer upsell copy.** Locked policies read **"Upgrade to
Enterprise"**
instead of "Coming soon".
## Scope
UI only — no backend changes. Keeping a policy's settings in sync
between the
portal and the editor is a known, separate issue and is **not** part of
this PR.
## Testing
Prettier, ESLint, typecheck (proprietary + saas), and the
unused-translation
guard all pass. Setup screens verified in Storybook.1 parent ccfd22b commit 51d3d27
10 files changed
Lines changed: 290 additions & 237 deletions
File tree
- frontend/editor
- public/locales/en-US
- src
- core/components/tools/addWatermark
- portal
- components/policies
- views
- proprietary/components/policies
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7404 | 7404 | | |
7405 | 7405 | | |
7406 | 7406 | | |
7407 | | - | |
| 7407 | + | |
7408 | 7408 | | |
7409 | 7409 | | |
7410 | 7410 | | |
| |||
7566 | 7566 | | |
7567 | 7567 | | |
7568 | 7568 | | |
7569 | | - | |
7570 | | - | |
7571 | | - | |
7572 | | - | |
7573 | | - | |
7574 | | - | |
7575 | | - | |
7576 | | - | |
| 7569 | + | |
| 7570 | + | |
| 7571 | + | |
| 7572 | + | |
| 7573 | + | |
| 7574 | + | |
| 7575 | + | |
| 7576 | + | |
| 7577 | + | |
| 7578 | + | |
| 7579 | + | |
| 7580 | + | |
| 7581 | + | |
| 7582 | + | |
| 7583 | + | |
| 7584 | + | |
| 7585 | + | |
| 7586 | + | |
| 7587 | + | |
| 7588 | + | |
| 7589 | + | |
| 7590 | + | |
| 7591 | + | |
7577 | 7592 | | |
7578 | 7593 | | |
7579 | 7594 | | |
| |||
7594 | 7609 | | |
7595 | 7610 | | |
7596 | 7611 | | |
7597 | | - | |
7598 | | - | |
7599 | | - | |
7600 | | - | |
7601 | | - | |
7602 | 7612 | | |
7603 | 7613 | | |
7604 | 7614 | | |
| |||
7609 | 7619 | | |
7610 | 7620 | | |
7611 | 7621 | | |
7612 | | - | |
7613 | | - | |
7614 | 7622 | | |
7615 | 7623 | | |
7616 | 7624 | | |
7617 | 7625 | | |
7618 | 7626 | | |
7619 | 7627 | | |
7620 | | - | |
| 7628 | + | |
7621 | 7629 | | |
7622 | 7630 | | |
7623 | 7631 | | |
7624 | 7632 | | |
7625 | 7633 | | |
7626 | 7634 | | |
7627 | | - | |
| 7635 | + | |
7628 | 7636 | | |
7629 | 7637 | | |
7630 | 7638 | | |
| |||
7633 | 7641 | | |
7634 | 7642 | | |
7635 | 7643 | | |
7636 | | - | |
| 7644 | + | |
7637 | 7645 | | |
7638 | 7646 | | |
7639 | 7647 | | |
| |||
Lines changed: 18 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| 35 | + | |
33 | 36 | | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
44 | 51 | | |
45 | | - | |
46 | | - | |
| 52 | + | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
| |||
58 | 64 | | |
59 | 65 | | |
60 | 66 | | |
61 | | - | |
| 67 | + | |
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
| |||
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
70 | | - | |
| 76 | + | |
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
15 | 25 | | |
16 | 26 | | |
17 | 27 | | |
| |||
0 commit comments