Skip to content

[FEATURE]: Document Renaming and Controlled Share-Slug Synchronization #93

@Gautam25Raj

Description

@Gautam25Raj

Affected Apps / Packages

Studio (apps/studio), Server (apps/server)

Is your feature request related to a problem?

  1. No Rename Capability: The document dashboard lacked an option for users to rename document/resume titles without entering the full editor interface.

  2. Fragile Shared URLs (Broken Links): If we automatically updated the public share link slug every time a user changed their document title, any previously shared public URLs would instantly break, resulting in 404 errors for external visitors.

Describe the solution you'd like

We have implemented a controlled document renaming feature that gives users full ownership and visibility over when their public URLs change:

Key components of the solution:

  1. Dashboard Rename Action: Added a "Rename" action to the Document Actions menu in both the list and grid layouts.

  2. Rename Document Modal: Launches a dedicated modal to update the document title.

  3. Controlled Slug Synchronization: If the document is synced to the cloud, the modal displays a toggle/checkbox: "Sync Public Share Link Slug".

    • When Checked: Updates the document title and regenerates the public share slug. A warning banner alerts the user: "Warning: Selecting this option will update your public share link slug. Anyone visiting the previous URL will get a 404 error."
    • When Unchecked (Default): Updates the document title locally and on the server, but leaves the existing public share link slug intact. An informational banner reassures the user: "Your public link slug remains unchanged. Your existing shared links will continue to function normally."
  4. Backend Propagation: The DocumentApi.update client service and DocumentService.updateDocument backend service accept a conditional updateShareSlug boolean flag. This ensures database updates to the ShareLink table are only applied when explicitly confirmed by the user.

Describe alternatives you've considered

  • Automated Slug Sync: We rejected updating the share link slug automatically on every title change, as it leads to unexpected breaking of live shared public URLs.

Additional Context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestfrontendUI/client-side codeui/uxDesign or user experience improvements
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions