Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow deck selection in card creattion #51

Merged
merged 11 commits into from
Apr 20, 2024
Merged

Allow deck selection in card creattion #51

merged 11 commits into from
Apr 20, 2024

Conversation

zsh-eng
Copy link
Owner

@zsh-eng zsh-eng commented Apr 20, 2024

Fixes #49
Fixes #50

This PR adds the ability to select a deck when creating a single / many cards.
I also did some heavy refactoring to convert all existing forms to use react-hook-form for managing form data.
In addition, I extracted all form schemas to form.ts, which is shared between the frontend and backend for input validation.
Together with the schemas, several form input components (for textarea, input, rich text editor, and select) were added to support the new react-hook-form forms.

I also made some minor fixes, such as adding back the spoiler rectangle for the flashcard reveal and fixing the hydration warning error caused by next-themes.

Copy link

vercel bot commented Apr 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
spaced ⬜️ Ignored (Inspect) Visit Preview Apr 20, 2024 7:43am

@zsh-eng zsh-eng self-assigned this Apr 20, 2024
@zsh-eng zsh-eng merged commit b079232 into main Apr 20, 2024
2 checks 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.

Select deck in batch create Render markdown for simple flashcard form
1 participant