Commit 01657b2
feat(plugins): surface ep.json disables in plugin card (#395)
Plugins that intentionally remove a baseline Etherpad feature
(ep_disable_chat, ep_disable_change_author_name, etc.) declare which
features they disable in their ep.json `disables` array — see the
contract proposal at ether/etherpad#7648.
Render that list in the plugin card with an amber note ("Disables: chat")
so users see what they're losing before they install. The badge is
gated on `disables` being present and non-empty, so plugins without
a disables field render unchanged.
Note: this UI change is safe to ship now even before the
plugins.viewer.json build pipeline is updated to source `disables`
from ep.json — when the field is absent the badge no-ops.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c4dfae7 commit 01657b2
2 files changed
Lines changed: 28 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
81 | 92 | | |
82 | 93 | | |
83 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
51 | 67 | | |
52 | 68 | | |
53 | 69 | | |
| |||
0 commit comments