You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 24aec44
Browse filesBrowse the repository at this point in the historyBrowse files
Tim Sinaeve
committed
feat(sync): integrate computer name in default cloud database filename and add global sync error toast alerts
Copy file name to clipboardExpand all lines: FUNCTIONAL_MANUAL.md
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -260,26 +260,33 @@ DocForge allows you to maintain a complete history of your document's content.
260
260
261
261
### Google Drive Cloud Database Sync
262
262
263
-
Google Drive Cloud Sync lets you back up and synchronize your SQLite database (`docforge.db`) between different machines securely using your own Google account credentials.
263
+
Google Drive Cloud Sync lets you back up and synchronize your SQLite database between different machines securely using your own Google account credentials.
264
264
265
-
#### 1. OAuth Setup & Prerequisites
265
+
#### 1. Hostname-Based Database Separation
266
+
By default, DocForge constructs a target backup filename incorporating your sanitized local computer name (e.g. `docforge-[computer-name].db`). This prevents different machines from accidentally overwriting each other's databases on first connection, allowing home and work databases to exist side-by-side in your private Google Drive space.
267
+
268
+
#### 2. Switching Database Files
269
+
You can select a different synchronization target file at any time by clicking the database dropdown list in **Settings** -> **Cloud Sync**. This automatically resets internal tracking hashes and swaps the active database safely.
270
+
271
+
#### 3. OAuth Setup & Prerequisites
266
272
To connect Google Drive Sync, you must supply your own Google Cloud Console credentials. This ensures your data remains completely private and under your control.
267
273
1.**Google Cloud Project:** Create a project in the Google Cloud Console.
268
274
2.**Enable Google Drive API:** Search for the **Google Drive API** in your project's API Library and enable it. *Note: If this API is not enabled, synchronization will fail with a `Drive search failed: Forbidden` error.*
269
275
3.**OAuth Consent Screen:** Configure the consent screen and add the `https://www.googleapis.com/auth/drive.appdata` scope. Since the application will be in testing mode, make sure to add your Gmail address as a **Test User**.
270
276
4.**OAuth Client ID:** Create credentials of type **OAuth Client ID** and select **Desktop Application**. Copy the generated Client ID and Client Secret.
271
277
272
-
#### 2. Linking Your Account
278
+
#### 4. Linking Your Account
273
279
In DocForge's **Cloud Sync** settings section, paste your Client ID and Client Secret, then click **Connect Account**. A temporary server will bind to `http://127.0.0.1:52080` to listen for the OAuth response. Complete the consent flow in your default browser, after which DocForge will show your connected Google email.
274
280
275
-
#### 3. Sandbox Privacy
281
+
#### 5. Sandbox Privacy
276
282
DocForge utilizes Google Drive's isolated **Application Data folder** (`appDataFolder`). This is a hidden sandbox space that other applications cannot read or access, and DocForge itself cannot access any other files, folders, or documents in your main Google Drive.
277
283
278
-
#### 4. Automatic vs. Manual Synchronization
284
+
#### 6. Automatic vs. Manual Synchronization
279
285
-**Sync on Startup & Shutdown:** Automatically checks for database changes, pushing or pulling the SQLite database as soon as you launch or close the app.
280
286
-**Manual Sync ("Sync Now"):** Manually run a sync check at any point from the settings screen.
281
287
-**Conflict Resolution:** If local and cloud databases have modified concurrently since the last sync, the synchronization pauses and triggers a **Conflict Resolution Modal**. This dialog displays a side-by-side comparison of local and remote database file sizes, modified dates, document counts, and template counts so you can safely choose which database version to keep ("Keep Local" or "Keep Cloud").
Copy file name to clipboardExpand all lines: VERSION_LOG.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,14 @@
1
1
## Unreleased
2
2
3
-
-_No entries yet._
3
+
### ✨ Features
4
+
5
+
-**Computer-Name Suffix for Cloud Sync Databases**:
6
+
- Automatically appends the sanitized local computer hostname to the default Google Drive sync database filename (e.g. `docforge-[computer-name].db`).
7
+
- Supports listing and switching target synchronization databases from other machines via the Database settings dropdown.
8
+
-**Global Sync Status & Error Alerts**:
9
+
- Integrated real-time sync status updates (`syncing`, `conflict`, `error`) into the bottom status bar.
10
+
- Added a global, glassmorphic sync error toast notification that appears on any synchronization failure, displaying clear error diagnostics and a one-click button to jump to **Settings**.
11
+
4
12
5
13
## v0.9.1 - The Google Drive Multi-Database Sync Update
Copy file name to clipboardExpand all lines: docs/FUNCTIONAL_MANUAL.md
+12-5Lines changed: 12 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -260,26 +260,33 @@ DocForge allows you to maintain a complete history of your document's content.
260
260
261
261
### Google Drive Cloud Database Sync
262
262
263
-
Google Drive Cloud Sync lets you back up and synchronize your SQLite database (`docforge.db`) between different machines securely using your own Google account credentials.
263
+
Google Drive Cloud Sync lets you back up and synchronize your SQLite database between different machines securely using your own Google account credentials.
264
264
265
-
#### 1. OAuth Setup & Prerequisites
265
+
#### 1. Hostname-Based Database Separation
266
+
By default, DocForge constructs a target backup filename incorporating your sanitized local computer name (e.g. `docforge-[computer-name].db`). This prevents different machines from accidentally overwriting each other's databases on first connection, allowing home and work databases to exist side-by-side in your private Google Drive space.
267
+
268
+
#### 2. Switching Database Files
269
+
You can select a different synchronization target file at any time by clicking the database dropdown list in **Settings** -> **Cloud Sync**. This automatically resets internal tracking hashes and swaps the active database safely.
270
+
271
+
#### 3. OAuth Setup & Prerequisites
266
272
To connect Google Drive Sync, you must supply your own Google Cloud Console credentials. This ensures your data remains completely private and under your control.
267
273
1.**Google Cloud Project:** Create a project in the Google Cloud Console.
268
274
2.**Enable Google Drive API:** Search for the **Google Drive API** in your project's API Library and enable it. *Note: If this API is not enabled, synchronization will fail with a `Drive search failed: Forbidden` error.*
269
275
3.**OAuth Consent Screen:** Configure the consent screen and add the `https://www.googleapis.com/auth/drive.appdata` scope. Since the application will be in testing mode, make sure to add your Gmail address as a **Test User**.
270
276
4.**OAuth Client ID:** Create credentials of type **OAuth Client ID** and select **Desktop Application**. Copy the generated Client ID and Client Secret.
271
277
272
-
#### 2. Linking Your Account
278
+
#### 4. Linking Your Account
273
279
In DocForge's **Cloud Sync** settings section, paste your Client ID and Client Secret, then click **Connect Account**. A temporary server will bind to `http://127.0.0.1:52080` to listen for the OAuth response. Complete the consent flow in your default browser, after which DocForge will show your connected Google email.
274
280
275
-
#### 3. Sandbox Privacy
281
+
#### 5. Sandbox Privacy
276
282
DocForge utilizes Google Drive's isolated **Application Data folder** (`appDataFolder`). This is a hidden sandbox space that other applications cannot read or access, and DocForge itself cannot access any other files, folders, or documents in your main Google Drive.
277
283
278
-
#### 4. Automatic vs. Manual Synchronization
284
+
#### 6. Automatic vs. Manual Synchronization
279
285
-**Sync on Startup & Shutdown:** Automatically checks for database changes, pushing or pulling the SQLite database as soon as you launch or close the app.
280
286
-**Manual Sync ("Sync Now"):** Manually run a sync check at any point from the settings screen.
281
287
-**Conflict Resolution:** If local and cloud databases have modified concurrently since the last sync, the synchronization pauses and triggers a **Conflict Resolution Modal**. This dialog displays a side-by-side comparison of local and remote database file sizes, modified dates, document counts, and template counts so you can safely choose which database version to keep ("Keep Local" or "Keep Cloud").
Copy file name to clipboardExpand all lines: docs/VERSION_LOG.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,14 @@
1
1
## Unreleased
2
2
3
-
-_No entries yet._
3
+
### ✨ Features
4
+
5
+
-**Computer-Name Suffix for Cloud Sync Databases**:
6
+
- Automatically appends the sanitized local computer hostname to the default Google Drive sync database filename (e.g. `docforge-[computer-name].db`).
7
+
- Supports listing and switching target synchronization databases from other machines via the Database settings dropdown.
8
+
-**Global Sync Status & Error Alerts**:
9
+
- Integrated real-time sync status updates (`syncing`, `conflict`, `error`) into the bottom status bar.
10
+
- Added a global, glassmorphic sync error toast notification that appears on any synchronization failure, displaying clear error diagnostics and a one-click button to jump to **Settings**.
11
+
4
12
5
13
## v0.9.1 - The Google Drive Multi-Database Sync Update
0 commit comments