harvard-lil / h2o

H2O is a web app for creating and reading open educational resources, primarily in the legal field
https://opencasebook.org
GNU Affero General Public License v3.0
36 stars 30 forks source link

Remove ResourceTypePicker component #1953

Closed lizadaly closed 1 year ago

lizadaly commented 1 year ago

As part of the audit casebook flow (see #1943), a temporary resource title can be clicked on to take the user to this special-purpose page to populate the resource with a case or code:

image

However, the search feature here does nothing when clicked on. It's unclear whether this was unfinished, or has had a regression at some point—it doesn't even error, it just takes no action, so Sentry can't tell us if people tried to use this.

Because most users will populate a temporary resource from the Quick Add (and none of us actually knew that clicking on the temp resource did this), this component should just be removed. Clicking on the temporary resource title should instead just do the same as clicking on "Specify Document":

image

It does the same thing, without taking the user to a new page, and it actually works.