Repository navigation
Closed
Labels
enhancementNew feature or request
Description
The October UX review ran on the mock backend (src/dev/mock/, from #780). Each area hit a state it could not show.
Missing scenarios
- Error injection. There is no way to make a command fail. Reviewers wrapped
__TAURI_INTERNALS__.invokeby hand. A URL switch such as?mock=connected&fail=get_foreign_keys,save_connection_profilewould make every error state reviewable. - Connections:
- a lost connection or failing health check (the red tab, "Lost — retrying (n)");
- a wrong-password or timeout connect (the pool-timeout path);
- a MariaDB server that connects;
- a read-write production profile, needed for the production guard dialogs and the agent DDL checkbox.
- Validation:
save_connection_profileandtest_connectionaccept ports outside 1–65535. - App state:
check_for_updatesalways reports up to date (no "update available", "downloading" or error);keyring_availableis always true andstartup_problemsis always empty.
- Data:
- fewer than 100 history entries, so paging can't be tested;
shophas no events;- the SQLite fixture has no view;
- the Users tab is empty, so CreateUser, ChangePassword and EditUser can't be seen with data.
- Agent:
- no production or staging approval;
- no schema-change,
propose_editoropen_draftrequest; - no concurrent approvals;
- no harness with
installed: false; - no session with
toolsAvailable: false.
- Schema writes: the designer's ALTERs aren't reflected in later schema reads, so the refresh after Apply can't be checked. The mock also accepts invalid SQL such as
CREATE TABLE orders (). - Timing: the first backup and import progress event arrives immediately, so the "no indicator before the first event" gap can't be seen.
Mock bugs
- After a backup, the console fills with
[TAURI] Couldn't find callback id …: progress events keep being emitted to listeners that were removed. The emitter should stop once the dialog unlistens or the job ends. - A restore against read-only production with "Stop on error" off reports
partiallyApplied: truewith 0 statements run.
Workflow
vite.config.ts only ignores src-tauri/** when watching. A script written into scripts/ while the dev server runs, such as a Playwright helper, triggers a full page reload, which wiped mid-turn agent states during the review. Add **/scripts/** to server.watch.ignored.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity