Skip to content

Link authentication and user profile to homepage#394

Merged
taterhead247 merged 9 commits into
devfrom
feat/links-to-homepage
Jun 5, 2026
Merged

Link authentication and user profile to homepage#394
taterhead247 merged 9 commits into
devfrom
feat/links-to-homepage

Conversation

@taterhead247

@taterhead247 taterhead247 commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

This pull request enhances the user experience by improving messaging and discoverability of the broader F3 Nation ecosystem across multiple pages. It updates sign-in confirmation messaging, adds clearer labels for admin-only links, and introduces a new section in the profile form to help users explore related F3 Nation applications.

Ecosystem Discovery Enhancements:

  • Added a new card in Me to the profile form (profile-form.tsx) that introduces users to the F3 Nation ecosystem and provides a prominent link to apps.f3nation.com. [1] [2]
  • Updated the HomePage for Auth sign-in confirmation message to be more welcoming and added a direct link to explore the F3 Nation ecosystem.

UI and Label Improvements:

  • Added a label "Open (region admins only)" to the admin portal link in the homepage app list for better clarity on access restrictions.

Summary by CodeRabbit

  • New Features

    • Added an "Explore F3 Nation" card to the profile header with an external link.
  • Updates

    • Improved authenticated landing message to confirm successful sign-in and redirect.
    • Clarified Admin app access by changing its card button label to "Open (region admins only)".
  • UX

    • Added external links to the F3 Nation site from profile and post-sign‑in screens.

@coderabbitai

coderabbitai Bot commented Jun 2, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@taterhead247, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 23 minutes and 4 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 83f5d208-976c-46de-be9f-5b71ade58376

📥 Commits

Reviewing files that changed from the base of the PR and between 3681344 and f8fe235.

📒 Files selected for processing (2)
  • apps/me/__tests__/lib/auth/validation.test.ts
  • apps/me/vitest.config.ts
📝 Walkthrough

Walkthrough

Three small UI/content updates: auth page sign-in copy now confirms sign-in and links to apps.f3nation.com; homepage Admin app card shows custom "Open (region admins only)" label; profile header becomes a two-column grid with an "Explore F3 Nation" link.

Changes

Navigation and Messaging UI Updates

Layer / File(s) Summary
Auth page confirmation message
apps/auth/src/app/page.tsx
Signed-in landing page replaces placeholder text with copy that confirms the user is signed in, explains the expected redirect-back behavior, and includes a hyperlink to apps.f3nation.com.
Admin app link label
apps/homepage/src/app/page.tsx
Homepage APPS entry for Admin adds a linkLabel so the app card shows "Open (region admins only)".
Profile form header with explore link
apps/me/src/components/profile-form.tsx
Profile header replaced by a responsive two-column grid that preserves the avatar/profile card and adds an "Explore F3 Nation" card linking to https://apps.f3nation.com with rel="noopener noreferrer".

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~15 minutes

Possibly related PRs

  • F3-Nation/f3-nation#335: Both PRs modify apps/me/src/components/profile-form.tsx within the ProfileForm component (different layout/link changes).
  • F3-Nation/f3-nation#326: Modifies apps/homepage/src/app/page.tsx (homepage/app-card rendering) — related to the Admin card change.

Suggested reviewers

  • dnishiyama
  • pstaylor-patrick
  • evanpetzoldt

Poem

A rabbit hops through code so spry,
Updates links and labels in the sky,
"You're signed in" now greets the view,
Admins see notes and users can pursue,
Explore the apps — a cheerful hi! 🐇✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main objective of the PR: improving links and messaging across authentication, user profile, and homepage to direct users to the F3 Nation ecosystem.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/links-to-homepage

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 and usage tips.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves ecosystem discoverability across the F3 Nation apps by adding prominent links to the central apps directory and clarifying an admin-only destination on the homepage directory.

Changes:

  • Adds an “Explore F3 Nation” card to the F3 Me profile header linking to https://apps.f3nation.com.
  • Updates the Auth homepage signed-in confirmation text and includes a link to the ecosystem directory.
  • Adds a clearer link label for the Admin entry on the ecosystem homepage (“Open (region admins only)”).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
apps/me/src/components/profile-form.tsx Adds ecosystem discovery card + link in the profile header area.
apps/homepage/src/app/page.tsx Adds an explicit “region admins only” label to the Admin app card link.
apps/auth/src/app/page.tsx Updates signed-in confirmation messaging and adds a link to the ecosystem directory.

Comment thread apps/me/src/components/profile-form.tsx

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
apps/homepage/src/app/page.tsx (1)

35-40: ⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Align the access label with the actual admin auth contract.

"Open (region admins only)" is narrower than what the admin app actually enforces: apps/admin/src/lib/auth/server.ts:88-105 grants access to users with either roleName === "admin" or roleName === "editor", and apps/admin/src/app/layout.tsx:31-42 applies that check on protected admin routes. This copy will incorrectly discourage authorized editors from opening the portal. Please broaden the label to match the allowed roles (for example, “Open (authorized leaders only)” or similar).

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/homepage/src/app/page.tsx` around lines 35 - 40, The linkLabel "Open
(region admins only)" is too narrow; update it in apps/homepage/src/app/page.tsx
to reflect the actual admin auth contract (apps/admin/src/lib/auth/server.ts
checks roleName === "admin" or roleName === "editor" and
apps/admin/src/app/layout.tsx enforces that on protected routes). Change
linkLabel to a broader phrase such as "Open (authorized leaders only)" or
similar so editors are not discouraged from accessing the portal.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/me/src/components/profile-form.tsx`:
- Around line 71-76: The anchor that renders the external portal link in
profile-form (the <a> element with href "https://apps.f3nation.com") should open
in a new tab and include safe rel attributes to avoid losing unsaved form state;
update that anchor to add target="_blank" and rel="noopener noreferrer" so
clicks open a new tab securely without navigating away from the current form.

---

Outside diff comments:
In `@apps/homepage/src/app/page.tsx`:
- Around line 35-40: The linkLabel "Open (region admins only)" is too narrow;
update it in apps/homepage/src/app/page.tsx to reflect the actual admin auth
contract (apps/admin/src/lib/auth/server.ts checks roleName === "admin" or
roleName === "editor" and apps/admin/src/app/layout.tsx enforces that on
protected routes). Change linkLabel to a broader phrase such as "Open
(authorized leaders only)" or similar so editors are not discouraged from
accessing the portal.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 17e856db-1c09-4384-922d-2e1da34d07bb

📥 Commits

Reviewing files that changed from the base of the PR and between cbabf94 and a7248cf.

📒 Files selected for processing (3)
  • apps/auth/src/app/page.tsx
  • apps/homepage/src/app/page.tsx
  • apps/me/src/components/profile-form.tsx

Comment thread apps/me/src/components/profile-form.tsx
@taterhead247 taterhead247 linked an issue Jun 2, 2026 that may be closed by this pull request
@taterhead247 taterhead247 moved this from Draft to Initiated in F3 Nation Tech (Pull Requests) Jun 2, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/me/src/components/profile-form.tsx`:
- Line 75: In the ProfileForm component update the button/input class string
that currently contains "focus-visible:outline-none" to use
"focus-visible:outline-hidden" instead; locate the className on the interactive
element in profile-form.tsx (the element with the long className including
"focus-visible:ring-2 focus-visible:ring-ring") and replace that token so the
native outline can still appear in forced-colors/high-contrast while keeping
your custom focus-visible ring styles.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: da37e3cd-961b-4797-b387-327a3d29999d

📥 Commits

Reviewing files that changed from the base of the PR and between a7248cf and eb1bc5e.

📒 Files selected for processing (1)
  • apps/me/src/components/profile-form.tsx

Comment thread apps/me/src/components/profile-form.tsx Outdated
@taterhead247

taterhead247 commented Jun 2, 2026

Copy link
Copy Markdown
Contributor Author

@BigGillyStyle , do you mind reviewing this when you get a chance. Apparently I put in a rule that I can't approve my own PRs 😄 . No rush

Comment thread apps/auth/src/app/page.tsx
@BigGillyStyle

Copy link
Copy Markdown
Collaborator

I pulled down the branch locally and compared the Auth, Me, and Homepage screens with what is stated in the PR description. All seems to align. Claude Code did find one minor technical consistency issue.

@taterhead247 taterhead247 merged commit 6e62d61 into dev Jun 5, 2026
7 checks passed
@taterhead247 taterhead247 deleted the feat/links-to-homepage branch June 5, 2026 13:38
@github-project-automation github-project-automation Bot moved this from Initiated to Merged in F3 Nation Tech (Pull Requests) Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

feat: Add useful Links section

3 participants