Skip to content

feat: add skeleton loader for document generation preview (#819)#1157

Open
Dharshin1 wants to merge 1 commit into
viru0909-dev:mainfrom
Dharshin1:feature/document-skeleton-loader
Open

feat: add skeleton loader for document generation preview (#819)#1157
Dharshin1 wants to merge 1 commit into
viru0909-dev:mainfrom
Dharshin1:feature/document-skeleton-loader

Conversation

@Dharshin1
Copy link
Copy Markdown
Contributor

@Dharshin1 Dharshin1 commented Jun 4, 2026

Description

This PR improves the loading experience on the Document Generate page by replacing the waiting spinner with a skeleton loader while the legal document is being generated.

Issue Resolved

Closes #819

Changes Made

  • Added a skeleton loading UI for document generation.
  • Updated the document generation flow to navigate to the preview state immediately while the API request is in progress.
  • Display skeleton placeholders until the generated document content is received.
  • Preserved existing document preview and download functionality.

Testing

  • Frontend tests pass successfully.
  • Existing document generation functionality remains intact.
  • Loading state displays a skeleton placeholder instead of only a spinner.

Test Results

Test Files  5 passed (5)
Tests      16 passed (16)

Type of Change

Feature Enhancement

Notes

This change improves perceived performance and provides users with a more informative loading experience while waiting for legal document generation.

@Dharshin1 Dharshin1 requested a review from viru0909-dev as a code owner June 4, 2026 16:57
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 4, 2026

@Dharshin1 is attempting to deploy a commit to the CodeBlooded's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

Hi @Dharshin1, thanks for contributing to Nyay Setu! 🎉

I have automatically:

  • 👤 Assigned this PR to you.
  • 🏷️ Applied the gssoc:approved label.

Our workflows will now analyze your changes to classify:

  • 📈 PR Difficulty: level:*
  • 🧩 PR Type: type:*
  • 🌟 PR Quality: quality:*

Tip

Ensure your PR description references the issue it resolves (e.g. Closes #123). This allows the bot to inherit any additional labels from that issue!

Happy coding! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Add skeleton loaders for Document Generate page

1 participant