Skip to content

Make Company optional in the UI (frontend-only)#780

Merged
backnotprop merged 1 commit into
mainfrom
fix/workspaces-company-optional
May 23, 2026
Merged

Make Company optional in the UI (frontend-only)#780
backnotprop merged 1 commit into
mainfrom
fix/workspaces-company-optional

Conversation

@backnotprop
Copy link
Copy Markdown
Owner

@backnotprop backnotprop commented May 23, 2026

Summary

Workspaces waitlist form now treats Company as optional. Frontend-only — no worker, schema, or DB changes.

Changes

apps/marketing/src/pages/workspaces/index.astro

  • Company label: CompanyCompany optional
  • Drop the if (!company) Required client-side validation
  • When the user submits with Company blank, stub (not provided) into the payload before sending so the worker's existing "company required" contract stays untouched

Behavior

Form input What's stored in D1
Typed company the typed string
Blank, corporate email the email-domain inference (e.g. Acme for @acme.com) — server still does this for non-empty stubs? Actually no: the stub is non-empty, so server skips inference and stores (not provided)
Blank, freemail email (not provided)

Trade-off: corporate emails that leave the field blank no longer get the auto-inferred company name (the stub passes the truthy check before inference runs). Most users will type a real value; a few will get (not provided).

Test plan

  • Submit with no company on a gmail address → succeeds, row in D1 has company = '(not provided)'
  • Submit with a real company typed → stored as typed
  • Form no longer shows a required-error on blank Company

Generated with Devin

Form labels Company 'optional', client validation no longer flags it
as Required when blank, and the submit handler stubs '(not provided)'
into the payload when the user leaves it empty so the worker's
existing 'company required' contract stays untouched.

Worker, schema, and DB are not changed.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@backnotprop backnotprop force-pushed the fix/workspaces-company-optional branch from 509f954 to 66dca8f Compare May 23, 2026 01:12
@backnotprop backnotprop changed the title Make Company optional on the waitlist form Make Company optional in the UI (frontend-only) May 23, 2026
@backnotprop backnotprop merged commit ed994f3 into main May 23, 2026
4 checks passed
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