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
Redstring supports a special "test mode" that uses completely separate storage, allowing you to test the first-time user experience without affecting your main session.
6
+
7
+
### How to Use Test Mode
8
+
9
+
#### Web/Localhost
10
+
Add `?test=true` to your URL:
11
+
```
12
+
http://localhost:5173/?test=true
13
+
```
14
+
15
+
This will:
16
+
- Use separate localStorage keys (prefixed with `test_`)
17
+
- Use separate IndexedDB database (`test_RedstringFolderStorage`)
18
+
- Not interfere with your main session
19
+
20
+
#### Electron
21
+
Launch Electron with a test flag (you'll need to add command-line argument support):
22
+
```bash
23
+
npm run electron -- --test
24
+
```
25
+
26
+
Or manually add `?test=true` to the initial URL in your Electron main process.
27
+
28
+
### What Test Mode Does
29
+
30
+
When `?test=true` is in the URL, Redstring will:
31
+
32
+
1.**Use separate storage keys:**
33
+
-`test_redstring-alpha-welcome-seen` instead of `redstring-alpha-welcome-seen`
34
+
-`test_redstring_workspace_folder_path` instead of `redstring_workspace_folder_path`
35
+
-`test_RedstringFolderStorage` IndexedDB instead of `RedstringFolderStorage`
36
+
37
+
2.**Show first-time onboarding flow:**
38
+
- Welcome modal appears
39
+
- Storage setup modal appears
40
+
- Can test folder selection and universe creation
41
+
42
+
3.**Keep your real data safe:**
43
+
- Your actual workspace folder is untouched
44
+
- Your actual universe files are not affected
45
+
- Your main session preferences are preserved
46
+
47
+
### Testing Workflow
48
+
49
+
1.**Open test mode:**
50
+
```
51
+
http://localhost:5173/?test=true
52
+
```
53
+
54
+
2.**Go through onboarding:**
55
+
- Click "Get Started"
56
+
- Choose a test folder (create a separate "RedstringTest" folder)
57
+
- Test the universe creation flow
58
+
59
+
3.**Test returning user flow:**
60
+
- Reload with `?test=true`
61
+
- Should load directly into your test universe
62
+
63
+
4.**Reset test mode:**
64
+
- Use Debug menu → "Reset Onboarding Flow"
65
+
- Or manually clear: `localStorage.removeItem('test_redstring-alpha-welcome-seen')`
0 commit comments