Skip to content

Public pages have no navigation, because the only drawer assumes a signed-in user #762

Closed

Description

@thinkclay

Split out of #756 rather than solved there, because it is a design question and
not a routing fix.

The state

DrawerContent is the app's only navigation surface, and it has no signed-out
variant. It reads useUser() unconditionally and renders an avatar, the user's
name or email, and a "Sign out" item at the bottom
(packages/scf-core/features/drawer/DrawerContent.tsx). There is no branch for
"nobody is signed in".

Because of that, every public route renders with no chrome at all —
/jobs/<slug> since #734, /users/<slug>, /support, /privacy, /terms,
and /jobs as of #756. A visitor who lands on a job posting from a search
result gets the posting and nothing else: no way to reach the job list, no sign
in, no way to discover the rest of the product.

The alternative available today is worse, and is what #756 was reported for:
mounting the existing drawer for anonymous visitors shows them account chrome,
including "Sign out", for an account they do not have.

Why it is worth doing

These are the pages search engines actually index, so they are where most
first-time visitors arrive. Right now the top of the funnel is a dead end — the
page answers the query and then offers no next step.

What it needs

  • A decision on what public chrome is: the same drawer with a signed-out
    branch, or a separate lighter public header
  • Sign in / Sign up as the account-area replacement when there is no session
  • Links to the public surfaces that exist — jobs, and whatever else opens up
  • Applied to the whole (public) group, not per route, so the next public
    page inherits it
  • No flash of signed-in chrome while the session resolves, and no flash of
    signed-out chrome for a user who is signed in

Related: #756 (where /jobs became public), #734 (job detail pages), #450
(public pages non-interactive on first load).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions