mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-15 15:10:31 -08:00
Feat/git chart (#651)
* feat: basic git gui using @tomplum/react-git-log * Replace menu bar toggle with mini window shortcut Removed the menu bar toggle option and its Windows-specific logic from the View menu. Added a new menu item for toggling the Tidgi mini window, using a configurable keyboard shortcut from preferences. * update i18n * refactor: use table for default view for cleaner timeline * test: commit * Add realtime git log updates and e2e test support Implements detection and display of uncommitted changes in the Git Log window, adds a commit button for uncommitted changes, and refreshes data in response to git state changes using an observable. Adds e2e test step definitions and log markers for commit, revert, and checkout operations to support automated testing. Removes alert popups from commit, revert, and checkout actions in the UI. * refactor: steps with descripton * fix: watch fs on git checkout * fix: echo of file on start * feat: loading state on revert * feat: ai commit message * feat: check free model * fix: remove duplicated backup action * fix: git method wrong place * fix: model not auto filled * refactor: preload $:/info/tidgi/workspaceID by 'module-type': 'info', * fix: workspace context menu * fix: show correct menu on view * feat: let tooltip show files instead of hash * feat: view dark theme * feat: better diff ui, and upgrade dugite * Update aiCommitMessage.ts * Update gitLog.feature * fix: menu click test * fix: The isInitialLoad check is computed twice * fix: import wiki form cursor position wrong * fix: git log frequently load data * fix: hide wiki menu * fix: import wiki form not working * fix: timer not cleared * onBlur handler that resets the field to the current valid preference value * fix: review error * Update useGitLogData.ts * Update newAgent.feature * Update newAgent.feature * fix: test randomly fail * fix * fix * Update wiki.ts * fix: wait for mark * Git-Sync-JS logger fix * Git-Sync-JS more logs * Git-sync-js fix no commiter email * Update gitOperations.ts
This commit is contained in:
parent
7f5e1aa0cc
commit
ed198d375b
70 changed files with 4802 additions and 833 deletions
|
|
@ -4,7 +4,7 @@ import { logsDirectory, screenshotsDirectory } from '../supports/paths';
|
|||
import { clearAISettings } from './agent';
|
||||
import { ApplicationWorld } from './application';
|
||||
import { clearTidgiMiniWindowSettings } from './tidgiMiniWindow';
|
||||
import { clearSubWikiRoutingTestData } from './wiki';
|
||||
import { clearGitTestData, clearSubWikiRoutingTestData } from './wiki';
|
||||
|
||||
Before(async function(this: ApplicationWorld, { pickle }) {
|
||||
// Create necessary directories under userData-test/logs to match appPaths in dev/test
|
||||
|
|
@ -26,6 +26,8 @@ Before(async function(this: ApplicationWorld, { pickle }) {
|
|||
});
|
||||
|
||||
After(async function(this: ApplicationWorld, { pickle }) {
|
||||
// IMPORTANT: Close app FIRST before cleaning up files
|
||||
// This releases file locks so wiki folders can be deleted
|
||||
if (this.app) {
|
||||
try {
|
||||
// Close all windows including tidgi mini window before closing the app, otherwise it might hang, and refused to exit until ctrl+C
|
||||
|
|
@ -49,6 +51,8 @@ After(async function(this: ApplicationWorld, { pickle }) {
|
|||
this.mainWindow = undefined;
|
||||
this.currentWindow = undefined;
|
||||
}
|
||||
|
||||
// Clean up settings and test data AFTER app is closed
|
||||
if (pickle.tags.some((tag) => tag.name === '@tidgi-mini-window')) {
|
||||
await clearTidgiMiniWindowSettings();
|
||||
}
|
||||
|
|
@ -58,6 +62,11 @@ After(async function(this: ApplicationWorld, { pickle }) {
|
|||
if (pickle.tags.some((tag) => tag.name === '@subwiki')) {
|
||||
await clearSubWikiRoutingTestData();
|
||||
}
|
||||
// Clean up git test data to prevent state pollution between git tests
|
||||
// Removes entire wiki folder - it will be recreated on next test start
|
||||
if (pickle.tags.some((tag) => tag.name === '@git')) {
|
||||
await clearGitTestData();
|
||||
}
|
||||
|
||||
// Separate logs by test scenario for easier debugging
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue