Skip to content

feat: add resource type to uploads#52

Merged
p1an0guy merged 1 commit intomainfrom
resource_type
Feb 3, 2026
Merged

feat: add resource type to uploads#52
p1an0guy merged 1 commit intomainfrom
resource_type

Conversation

@wielandrod
Copy link
Copy Markdown
Collaborator

Linked Issues

Closes #31

Summary

Add a required resource type selector to the upload form and send it to the upload API, which now validates and stores resource_type on the resource record. Includes a migration to add the resource_type column + constraint.

How to Test

  1. npm run dev
  2. Open /upload, select a class, pick each resource type, upload a PDF
  3. Confirm the upload succeeds and the resource’s resource_type is saved in the DB

Screenshots / Demos

image image

@wielandrod wielandrod requested a review from p1an0guy February 3, 2026 04:30
@p1an0guy p1an0guy merged commit 40ce2e1 into main Feb 3, 2026
1 check 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.

Add Resource Type to Upload Flow

2 participants