mirror of
https://github.com/nexu-io/open-design.git
synced 2026-08-03 06:05:05 +08:00
* feat(web): simplify Home composer (drop plugin-inputs form & example pill, move Design Agent next to Send) - Remove the inline plugin-inputs form (ARTIFACT KIND / AUDIENCE / TEMPLATE) from the Home composer; required inputs no longer gate Send (defaults still flow to the backend). - Remove the dismissible "selected example" pill above the editor; picking an example still seeds the prompt. - Move the Design Agent toggle from the footer-left group to sit directly left of the Send button. * fix(web): keep client-side required-input gate on Home composer Dropping the inline plugin-inputs form left pluginInputsAreValid() always returning true, so a required field with no default that the user blanks out in an editable Home scenario kept Send enabled and only failed at click-time apply with a generic "Failed to apply …" error (the daemon's validateInputs rejects missing required inputs). Restore a client-side gate that mirrors the daemon's required-input rule and names the missing field in the submit error, so these Home flows fail fast. Extracts the pure check into utils/pluginRequiredInputs with unit coverage. * fix(web): drop example from active-row mount condition With the example pill removed from the Home composer active row, keeping selectedPromptExample in showActiveContextRow mounted an empty .home-hero__active row when an example was picked with no other active context. Remove it from the condition so the row only renders when it has visible content. --------- Co-authored-by: qiongyu1999 <2694684348@qq.com> Co-authored-by: lefarcen <935902669@qq.com>
2.0 KiB
2.0 KiB