[Employer Sync 6.1] Rewrite employer login & signup copy (no 'register a new account')
TL;DR: Replace the "separate account / register a new one" copy on the employer login page with the migrated-employer story. While in the file, fix the live setError('email', …) bug — the form field is named identifier, so the email-side error never renders today.
Context
The employer login page in jodapp-web was built before the sync. It tells employers their JodGig and JodApp accounts are separate, and that they must register a new account to use JodApp. After the sync lands, that story is wrong — the JodApp account is the JodGig account.
Problem
A migrated employer who reads the current page goes to /employers/sign-up. Signup collides on their already-synced email (Identities::User has a unique index on email) and fails. The copy is actively pushing users into a broken path.
There is also a real bug in the same file: setError('email', ...) references a form field that does not exist (the field is named identifier). The email-side error never renders today. Fix this while you are in the file.
Direction
In app/routes/employers/employers-login-page.jsx, replace the copy:
- Heading:
Log in to JodApp - Description:
Post and manage your job ads. Use the same email and password as your existing account. - Remove the existing description in full ("This is a separate account…", "You will need to register…", "We will be merging…"). All three are now false.
- Submit button:
Log in(wasLogin to JodBoard). - JodGig pointer: move below the form, render as
Alert variant="light"withborder, text:Managing gig (short-term) jobs? Go to {gigPortalHostname}. - Footer: replace the
btn btn-link"Sign up here" with a plainCard.Footerline:New to JodApp? Create an employer account(link wraps the last three words). Demote it — signup is no longer the primary secondary action; "Forgot password?" (already in the form) is. - Page meta title:
Employer Log In — JodApp(wasSign In).
Fix the live bug: change every setError('email', …) in this file to setError('identifier', …). The form field is identifier.
Update the inline error string to mention phone too (the field accepts both): Invalid email, phone number, or password.
The same wording applies to the signup page (app/routes/org/org-sign-up-page.jsx) — its "Already have an account? Login" line stays; just check the surrounding copy does not imply JodApp and JodGig are separate accounts.
Full layout, components, and class plan are in the UI/UX review attached to 6.5; this issue is the copy-only slice that can ship immediately.
Acceptance
- All four copy strings updated.
-
setError('email', …)→setError('identifier', …)everywhere in the login page. - A test renders the page and asserts the new heading + description + button text.
- No reference to "register a new account", "separate account", or "merging accounts" remains in the employer-facing pages.