Skip to content

[169] feat: organization-created acknowledgement page#169

Merged
BhuvanArn merged 9 commits into
stagingfrom
169-feat-organization-created-page
Jul 16, 2026
Merged

[169] feat: organization-created acknowledgement page#169
BhuvanArn merged 9 commits into
stagingfrom
169-feat-organization-created-page

Conversation

@BhuvanArn

@BhuvanArn BhuvanArn commented Jul 14, 2026

Copy link
Copy Markdown
Owner

What type of PR is this? (check all applicable)

  • ✨ Feature
  • 🛑 Bug
  • ⚠️ Anomaly
  • 📝 Doc
  • 🎨 Style
  • 🧑‍💻 Refactor
  • 🛠️ Setup
  • 🏗️ Build
  • 🔥 Perfs
  • ✅ Test
  • 🔁 CI
  • ⏩ Revert

Description

Adds a post-signup acknowledgement page for self-serve organization creation and upgrades the admin's signup email so it clearly explains what happened.

1. New /organization-created page. Previously org signup redirected straight to /verify-email with no confirmation. Now signup routes to an interstitial page that:

  • confirms the organization was created,
  • shows the generated admin username ({organizationName}_admin) and admin email,
  • tells the user to verify the admin email and sign in as the administrator to manage the org,
  • offers a primary CTA "Verify admin email & continue" (carries the email + /organization redirect) and a "verify later — back to login" link,
  • degrades gracefully when opened without params.

New flow: RegisterOrganizationFormPOST /auth/register-organization/organization-created → CTA → /verify-email?email=…&redirect=/organization.

2. Org-admin welcome email. Org signup no longer sends the generic OTP code. signUpOrganization now passes the org name + admin username through register; the OTP event carries adminUsername, and MailListener sends a dedicated org-admin welcome email: heading "Your organization is ready", what was created (org + admin account) with the admin username, the verification code (15-min expiry), numbered next steps (verify email → sign in as admin to manage the org), and a verify CTA/link. Invited-member emails and ops provisioning are unchanged (they don't pass adminUsername). The admin username is HTML-escaped.

Confirmed as part of this work that org creation already delivers a verification email to the admin, and that the admin's typed password is honored.

Linked GitHub Ticket

Closes EpitechPromo2027/G-EIP-600-NAN-6-1-eip-tugdual.de-reviers#NNN

Workspace

  • 🖥️ Web
  • 🛠️ Server
  • 🔁 CI
  • 🤖 Ai
  • 📱 App

Screenshots

/organization-created page (light theme, no success-icon per review):

Organization created → org name intro → Admin username / Admin email card → "verify the admin email and sign in" instructions → Verify admin email & continue CTA + "verify later — back to login".

Org-admin welcome email (branded TalkUp shell):

Your organization is ready → "Your organization Acme School has been created … (username: AcmeSchooladmin)" → "Verify this admin email … Next steps: 1) enter the code … 2) sign in as AcmeSchooladmin to manage Acme School …" → code chip 482913 (expires in 15 minutes) → Verify admin email & continue button + link → anti-phishing note → sign-off.

Both surfaces were driven end-to-end in a real browser during development.


Verification

  • tsc --noEmit (web + server), oxlint 0/0, prettier — all clean.
  • Server suite: 824/824 pass (incl. 5 new mail-listener tests for the admin email).
  • Web suite: 2312 pass (incl. 4 new component tests for the page).
  • e2e (org-flow.spec.ts) updated for the new interstitial redirect — this is the check that was red before (it still asserted the old direct /verify-email handoff).

@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
talk-up-ai-dev Ready Ready Preview, Comment Jul 16, 2026 8:16am

@railway-app
railway-app Bot temporarily deployed to talk-up-ai / TalkUp.AI-pr-169 July 14, 2026 01:28 Destroyed
@railway-app

railway-app Bot commented Jul 14, 2026

Copy link
Copy Markdown

🚅 Deployed to the TalkUp.AI-pr-169 environment in talk-up-ai

Service Status Web Updated (UTC)
Backend ✅ Success (View Logs) Jul 14, 2026 at 4:54 pm

@BhuvanArn BhuvanArn self-assigned this Jul 14, 2026
@railway-app
railway-app Bot temporarily deployed to talk-up-ai / TalkUp.AI-pr-169 July 14, 2026 02:22 Destroyed
@Andriamanampisoa
Andriamanampisoa marked this pull request as ready for review July 14, 2026 11:32
@Andriamanampisoa
Andriamanampisoa marked this pull request as draft July 14, 2026 11:50

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@railway-app
railway-app Bot temporarily deployed to talk-up-ai / TalkUp.AI-pr-169 July 14, 2026 16:53 Destroyed
…ion-created-page

# Conflicts:
#	web/src/routeTree.gen.ts
@railway-app
railway-app Bot temporarily deployed to talk-up-ai / TalkUp.AI-pr-169 July 16, 2026 08:15 Destroyed
@BhuvanArn
BhuvanArn merged commit a3be90a into staging Jul 16, 2026
6 checks passed
@BhuvanArn
BhuvanArn deleted the 169-feat-organization-created-page branch July 16, 2026 08:21
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.

3 participants