Commit 90d0579
feat: add functionSignatures.json for DashboardEngine editor tab-completion
Backward-compatible, additive: a new editor-metadata file with zero
runtime effect — MATLAB reads it only for code completion, Octave
ignores it. No existing signature, behavior, or serialization changes.
Adds libs/Dashboard/functionSignatures.json covering the DashboardEngine
constructor (Name + Theme/LiveInterval/InfoFile/ProgressMode/
ShowTimePanel) and addWidget. The addWidget `type` argument is modeled
as a `choices` enum of all 19 built-in widget types, so the editor now
suggests the valid types as the user types — surfacing the same list the
run-1 unknown-type error lists, but at the point of entry. Common
options (Position, Title, Tag, Label) are offered too.
Proven: validateFunctionSignaturesJSON returns 0 messages (schema-valid;
the optional positional Name uses the R2025b-required "ordered" kind, not
the deprecated "optional"); runtime smoke confirms addWidget('number')
still returns a NumberWidget and an unknown type still errors
DashboardEngine:unknownType — the file is runtime-inert. No .m changed,
so existing tests and examples are unaffected. Resolves audit finding
F-3b.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 8d7af2c commit 90d0579
2 files changed
Lines changed: 44 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
105 | 117 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments