Affected Apps / Packages
Studio (apps/studio)
Description
When a user edits or creates a Cover Letter and navigates back to the dashboard, the document list remains stale. This occurs because the library subscription hook listens only to general storage and resume sync updates, completely missing the "veriworkly:docs-storage-updated" event (DOCUMENT_STORAGE_UPDATED_EVENT).
Steps to Reproduce
- Go to the dashboard.
- Create or modify a Cover Letter.
- Return to the dashboard page.
- Notice that the Cover Letter list does not reflect the change until you manually reload the browser page.
Expected Behavior
The dashboard list should refresh reactively whenever cover letters are updated in local storage.
Environment Information
- OS: Windows
- Browser: Chrome / Edge
- Node.js: 20.x
Relevant Logs
No response
Proposed Fix / Suggestions
Add a listener for DOCUMENT_STORAGE_UPDATED_EVENT in subscribeToDocumentLibrary
Affected Apps / Packages
Studio (apps/studio)
Description
When a user edits or creates a Cover Letter and navigates back to the dashboard, the document list remains stale. This occurs because the library subscription hook listens only to general storage and resume sync updates, completely missing the
"veriworkly:docs-storage-updated"event (DOCUMENT_STORAGE_UPDATED_EVENT).Steps to Reproduce
Expected Behavior
The dashboard list should refresh reactively whenever cover letters are updated in local storage.
Environment Information
Relevant Logs
No response
Proposed Fix / Suggestions
Add a listener for
DOCUMENT_STORAGE_UPDATED_EVENTinsubscribeToDocumentLibrary