Skip to content

Conversation

@oblakeerickson
Copy link

@oblakeerickson oblakeerickson commented Dec 11, 2025

Here are the the conditions for the showing/hiding the create button:

  • Hide create button if user is not logged in
  • Hide create button if user is logged in but not an oxide employee
  • Always show create button in dev mode (no change)
  • Show the the create button if user is logged in and an oxide employee

Added aria-label="Create new RFD" for accessibility and for future testing.

I didn't add any tests because it looks like locally the tests only run in dev mode and so the button would be always visible. Looks like we could add some tests to run in CI and they will run in production mode, but we would have to skip them locally. But even if we ran the production tests in CI we don't have any existing logged-in test infrastructure.

Resolves: #64

Here are the the conditions for the showing/hiding the create button:

- Hide create button if user is not logged in
- Hide create button if user is logged in but not an oxide employee
- Always show create button in dev mode (no change)
- Show the the create button if user is logged in and an oxide employee
@vercel
Copy link

vercel bot commented Dec 11, 2025

@oblakeerickson is attempting to deploy a commit to the Oxide Computer Company Team on Vercel.

A member of the Team first needs to authorize it.

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.

Only show create RFD button to internal users

1 participant