Skip to content

show disabled request form for logged out users #345

@alishaevn

Description

@alishaevn

Story

When a user is logged out, the new request form should show the form and be disabled. Users should also see a message that says they need to sign in at the top of the form

Goals

  • chris would now like for this workflow to be updated so that unauthorized users can see a request form, but the option to submit will be disabled. they still should not be able to see the "/requests" or "/requests/:uuid" endpoints however.
  • We want people to see the page, see what's expected of them, but not be able to start filling it in and to know that they need to sign in before they can actually send a request.

Acceptance Criteria

  • As a logged out user, on the new request page, I should see a message that prompts me to sign in to create a request.
  • As a logged out user on the new request page, I should be able to see the form for that ware, but the form and submit button will be disabled.

Related

Notes

  • can probably use the existing "Unauthorized" Notice component it just needs to show at the top of the page
  • changes will be made on the page /request/uuid

ref: https://assaydepot.slack.com/archives/C03FZDALABG/p1706298400200599?thread_ts=1706288784.268929&cid=C03FZDALABG

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions