Skip to content

feat(auth): add guest login prompt for engaged visitors - #411

Merged
trtajim merged 2 commits into
mainfrom
feat/guest-login-prompt
Oct 11, 2026
Merged

trtajim merged 2 commits into
mainfrom
feat/guest-login-prompt

Conversation

@trtajim

@trtajim trtajim commented Oct 11, 2026

Copy link
Copy Markdown
Member

Summary

  • Implemented a floating guest login prompt component in GuestLoginPrompt.vue mounted in AppLayout.vue.
  • Reliable trigger logic using Inertia's router.on('navigate') to count page views across persistent layout transitions.
  • Shows prompt after navigating to a 2nd page (with 1.5s delay) or after 25s of continuous reading on the initial page.
  • Scoped dismissal to sessionStorage so it stays hidden for that tab/session only once dismissed.
  • Added academic GraduationCap icon and redirects to /login?redirect=${currentUrl}.

@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 28 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: hscstack/platform/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: be319080-c025-4490-b307-aa43b2629b17

📥 Commits

Reviewing files that changed from the base of the PR and between 46cbd93 and 9222a40.


📒 Files selected for processing (2)
  • resources/js/components/GuestLoginPrompt.vue
  • resources/js/layouts/AppLayout.vue

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@trtajim
trtajim merged commit 26b608c into main Oct 11, 2026
6 checks passed
@trtajim
trtajim deleted the feat/guest-login-prompt branch October 11, 2026 04:19
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