Commit e6c9f37
feat: Cache repository configurations in frontend (#254)
Implement localStorage-based caching for repository configurations
on the main page ('src/app/page.tsx').
This feature enables the application to remember user-specified
settings for a given repository URL. When a user submits a
repository URL along with configurations such as wiki language,
wiki type, model provider, model selection, custom model options,
and advanced exclusion paths/files, these settings are now cached
locally in the browser's localStorage.
If the user later inputs the same repository URL, the previously
saved settings are automatically loaded and pre-filled in the
configuration modal. This significantly improves user experience
by reducing repetitive data entry for frequently used repositories.
The following configuration items are cached:
- Wiki Language
- Wiki Type (Comprehensive/Concise)
- Model Provider
- Model Selection
- Custom Model (boolean flag and name)
- Selected Platform (GitHub, GitLab, Bitbucket)
- Excluded Directories
- Excluded Files
- Included Directories
- Included Files
Access tokens and other sensitive information are intentionally not
cached to maintain security.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent 0efaec5 commit e6c9f37
1 file changed
+69
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
80 | 124 | | |
81 | 125 | | |
82 | 126 | | |
| |||
262 | 306 | | |
263 | 307 | | |
264 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
265 | 333 | | |
266 | 334 | | |
267 | 335 | | |
| |||
352 | 420 | | |
353 | 421 | | |
354 | 422 | | |
355 | | - | |
| 423 | + | |
356 | 424 | | |
357 | 425 | | |
358 | 426 | | |
| |||
0 commit comments