legco_ai_assistant/frontend
Woody 0d3e8ce0ce fix(frontend): save button always disabled on System Prompts page
Root cause: PromptEditor useEffect synced localPrompts back to match prompts after every keystroke, making isDirty() always false.

- Delegate disabled control to parent via hasChanges prop (no local sync)

- Derive currentPrompts synchronously to avoid empty-textarea flash

- Add key={selectedProfile} for clean remount on profile switch

- Update PromptEditor tests for new hasChanges prop

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-04-26 18:48:52 +08:00
..
src fix(frontend): save button always disabled on System Prompts page 2026-04-26 18:48:52 +08:00
index.html feat(frontend): Phase 1.1 project scaffold with Vite, Tailwind, and API client 2026-04-23 10:57:20 +08:00
package-lock.json feat(frontend): add PDF viewer page with react-pdf (sub-phase 2.5) 2026-04-24 17:09:32 +08:00
package.json feat(frontend): add PDF viewer page with react-pdf (sub-phase 2.5) 2026-04-24 17:09:32 +08:00
postcss.config.cjs feat(frontend): Phase 1.1 project scaffold with Vite, Tailwind, and API client 2026-04-23 10:57:20 +08:00
tailwind.config.cjs feat(frontend): Phase 1.1 project scaffold with Vite, Tailwind, and API client 2026-04-23 10:57:20 +08:00
tsconfig.json feat(frontend): Phase 1.1 project scaffold with Vite, Tailwind, and API client 2026-04-23 10:57:20 +08:00
vite.config.ts feat(frontend): add PDF viewer page with react-pdf (sub-phase 2.5) 2026-04-24 17:09:32 +08:00