TidGi-Desktop/features
lin onetwo ce332374bc
Fix/misc bug2 (#698)
* fix: hide non-wiki workspaces from menu and disable remove for them (#694)

* fix(workspace): make workspace settings save transactional to prevent data loss

- Move disk write before memory update in Workspace.set()
- Remove error swallowing in writeTidgiConfig() to let errors propagate
- Add error handling in useForm.ts to catch and log save failures
- Add UI error display in EditWorkspace/index.tsx
- Only update Observable after successful persistence

This fixes the issue where save button disappears but changes aren't
persisted to tidgi.config.json, causing data loss when reopening settings.

* feat(i18n): add error messages for workspace save failures

Add SaveError and SaveErrorPrefix translations in English and Chinese
to display error messages when workspace settings fail to save.

* test(e2e): add test for tagNames persistence and missing step definitions

- Add @edit-workspace-save-tagnames scenario to verify tagNames persist
  after save to tidgi.config.json
- Add 'I clear and type' step definition for clearing input before typing
- Add 'I close current window' step definition for closing windows
- This test covers the regression where save button disappears but
  changes aren't persisted

* use 5.4.0

* fix: spaced file in git op

* fix: menu register race condition

* Update pnpm-lock.yaml

* Update wiki

* fix: regenerate lockfile with pnpm 10.33.0 to fix checksum format

* fix: remove unused import and useless constructor

* fix: address Copilot review comments

- Use new path for rename/copy in git operations
- Ensure transactional workspace save (persist before cache update)
- Normalize null label to undefined in menu

* Remove close-window step; simplify UI typing

Remove the Cucumber step that closed the current window and simplify a UI step by calling locator.fill(...) inline (also replace {tmpDir} in the input). Clean up minor whitespace in gitOperations and fix indentation/extra brace around startWiki error handling in the wiki service to correct control flow and prevent accidental scope issues.

* Improve workspace form, git diff, and UI tests

Refactor EditWorkspace form and UI behavior, make git diff/status handling more robust, and update E2E tests.

- Add hasConfigChanges and related effects in useForm to correctly detect config-only changes and control restart requests; fix save button visibility in EditWorkspace and pass currentWorkspace to restart snackbar. Rename workspace section test id from 'workspace-section-search' to 'preference-section-search'.
- Enhance gitOperations.getFileDiff to use porcelain -z and a helper to parse per-path status (getPorcelainStatusForPath) for reliable untracked/deleted detection.
- Add clickBrowserViewElementWithRetry helper with backoff and text-aware selector handling; replace repetitive click logic in browser view step definitions and remove some redundant browser background assertions and a deprecated clear-and-type step.
- Update feature files (gitLog, editWorkspace, vectorSearch) to reflect selector/id/name changes and i18n fallbacks for tab/button text.

* doc

* Use localized draft selector and show e2e window

Update feature tests to target the localized draft tiddler title (data-tiddler-title$='的草稿') instead of the English prefix selector. Applied the change across features/hibernation.feature and features/tiddler.feature to ensure selectors match localized UI. Also enable SHOW_E2E_WINDOW=1 in the test:manual-e2e script in package.json so manual end-to-end runs open a visible window for debugging.
2026-04-21 22:14:43 +08:00
..
stepDefinitions Fix/misc bug2 (#698) 2026-04-21 22:14:43 +08:00
supports Fix/misc bug1 (#697) 2026-04-20 18:42:29 +08:00
agent.feature Feat/discuss note with agent (#685) 2026-03-09 04:07:39 +08:00
agentTool.feature Feat/discuss note with agent (#685) 2026-03-09 04:07:39 +08:00
aiCommitMessage.feature Fix/misc bug (#691) 2026-04-01 15:45:26 +08:00
configError.feature Fix/misc bug (#677) 2026-01-20 11:11:28 +08:00
crossWindowSync.feature chore: upgrade Electron 39->41 + forge 7.10->7.11 + fix native ABI (#692) 2026-04-02 21:45:47 +08:00
cucumber.config.js Fix/misc bug1 (#697) 2026-04-20 18:42:29 +08:00
defaultWiki.feature Fix/misc bug1 (#697) 2026-04-20 18:42:29 +08:00
editWorkspace.feature Fix/misc bug2 (#698) 2026-04-21 22:14:43 +08:00
filesystemPlugin.feature chore: upgrade Electron 39->41 + forge 7.10->7.11 + fix native ABI (#692) 2026-04-02 21:45:47 +08:00
gitLog.feature Fix/misc bug2 (#698) 2026-04-21 22:14:43 +08:00
hibernation.feature Fix/misc bug2 (#698) 2026-04-21 22:14:43 +08:00
newAgent.feature Feat/discuss note with agent (#685) 2026-03-09 04:07:39 +08:00
oauthLogin.feature Fix/misc bug (#677) 2026-01-20 11:11:28 +08:00
preference.feature chore: upgrade Electron 39->41 + forge 7.10->7.11 + fix native ABI (#692) 2026-04-02 21:45:47 +08:00
promptEditAndToolToggle.feature Feat/discuss note with agent (#685) 2026-03-09 04:07:39 +08:00
scheduledTask.feature chore: upgrade Electron 39->41 + forge 7.10->7.11 + fix native ABI (#692) 2026-04-02 21:45:47 +08:00
simplifiedWiki.feature Fix/misc bug1 (#697) 2026-04-20 18:42:29 +08:00
smoke.feature Fix/misc bug1 (#697) 2026-04-20 18:42:29 +08:00
streamingStatus.feature Feat/discuss note with agent (#685) 2026-03-09 04:07:39 +08:00
subWiki.feature Fix/misc bug1 (#697) 2026-04-20 18:42:29 +08:00
sync.feature Fix/misc bug (#691) 2026-04-01 15:45:26 +08:00
talkWithAI.feature chore: upgrade Electron 39->41 + forge 7.10->7.11 + fix native ABI (#692) 2026-04-02 21:45:47 +08:00
tiddler.feature Fix/misc bug2 (#698) 2026-04-21 22:14:43 +08:00
tidgiMiniWindow.feature chore: upgrade Electron 39->41 + forge 7.10->7.11 + fix native ABI (#692) 2026-04-02 21:45:47 +08:00
tidgiMiniWindowWorkspace.feature Fix/misc bug (#677) 2026-01-20 11:11:28 +08:00
tsconfig.json Feat/Native AI Agent (#640) 2025-10-10 17:16:56 +08:00
vectorSearch.feature Fix/misc bug2 (#698) 2026-04-21 22:14:43 +08:00
webviewPalette.feature Fix/misc bug1 (#697) 2026-04-20 18:42:29 +08:00
windowRestore.feature Fix/misc bug1 (#697) 2026-04-20 18:42:29 +08:00
workspaceConfig.feature Fix/misc bug (#677) 2026-01-20 11:11:28 +08:00