Skip to content

[BUG]: Dashboard does not update reactively when creating/editing Cover Letters #78

@Gautam25Raj

Description

@Gautam25Raj

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

  1. Go to the dashboard.
  2. Create or modify a Cover Letter.
  3. Return to the dashboard page.
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingui/uxDesign or user experience improvements

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions