Skip to content

Feat: Add Ability to Access Preview Page for Existing Site#18

Open
dev-ahmadbilal wants to merge 1 commit intoNutlope:mainfrom
dev-ahmadbilal:feat/add-preview-button
Open

Feat: Add Ability to Access Preview Page for Existing Site#18
dev-ahmadbilal wants to merge 1 commit intoNutlope:mainfrom
dev-ahmadbilal:feat/add-preview-button

Conversation

@dev-ahmadbilal
Copy link

Add Ability to Access Preview Page for Existing Site

This PR adds the ability for users to access their preview page if they already have a site, improving the user experience by providing quick access to their existing content.
image

Changes Made

  1. Modified app/(private)/upload/client.tsx:

    • Added a "Go to Preview" button that appears when a user has existing resume data
    • Button is placed prominently above the file upload area
    • Uses the existing router to navigate to the preview page
  2. Updated app/(private)/preview/page.tsx:

    • Modified the redirect logic to only redirect if there's no resume data at all
    • Added proper null checks for resume data and file content
    • Improved type safety with additional checks

Testing

To test this change:

  1. Create a new account and upload a resume
  2. Go back to the upload page
  3. Verify that the "Go to Preview" button appears
  4. Click the button and verify it takes you to the preview page
  5. Verify that the preview page shows your existing content

Additional Notes

  • The implementation maintains all existing functionality
  • Added proper type safety and null checks
  • The preview button only appears when there's actual resume data to show

@vercel
Copy link
Contributor

vercel bot commented May 2, 2025

@dev-ahmadbilal is attempting to deploy a commit to the Together AI Team on Vercel.

A member of the Team first needs to authorize it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments