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

Basic crud page generators for models #118

Open
1 of 3 tasks
eric-burel opened this issue Jul 2, 2021 · 1 comment
Open
1 of 3 tasks

Basic crud page generators for models #118

eric-burel opened this issue Jul 2, 2021 · 1 comment
Labels
enhancement New feature or request vulcan

Comments

@eric-burel
Copy link
Collaborator

eric-burel commented Jul 2, 2021

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
Being able to run CRUD operations on any collection + demo all the available hooks and patterns to do CRUD operations in Vulcan (hooks and smart form).

This is both for learning and for direct usage.

  • Setup the pages
  • Add _middleware in front of /admin folder to do a server-side redirect
  • Add currentUser management in SmartForm. We need to code a useCurrentUser hook and use it in the form

Describe alternatives you've considered

See an early demo of this kind of page: https://github.com/VulcanJS/vulcan-next/blob/940c6c680a41f29cb9f7af5ae2b93f8d39bd762b/src/pages/meteor-demo.tsx

See previous implementation in Vulcan Meteor: VulcanJS/Vulcan#2176

  • Create the same page for a basic model in Vulcan Next
  • Then, create the same page for a list of models, using static generation
    => you get an admin area
@eric-burel
Copy link
Collaborator Author

eric-burel commented Jul 21, 2021

First version has been implemented by @Timi-Duban and visilble in the /admin page

Next step:

  • figuring user creation (difficult because of the password)
  • fix currentUser handling in SmartForm so private fields are present

Then we can call it a v1

@eric-burel eric-burel added enhancement New feature or request vulcan labels Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vulcan
Projects
None yet
Development

No branches or pull requests

2 participants