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

Style Template creation page & input optional form values #73

Open
haydenrou opened this issue Jun 7, 2024 · 4 comments
Open

Style Template creation page & input optional form values #73

haydenrou opened this issue Jun 7, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request question Further information is requested
Milestone

Comments

@haydenrou
Copy link
Contributor

haydenrou commented Jun 7, 2024

  • Add the updated styles to the template builder
  • How do you specify options in a select box? Implement this
  • How do you specify the min and max numbers for a number & range field? Implement this
  • How do you specify radio + check-box options? Implement this
  • Pass these to the back-end and save them to a templates questions
  • Consider restructuring our components directory
  • Stop the user from being able to drag and drop the inputs on the left-hand-side
@haydenrou haydenrou added enhancement New feature or request question Further information is requested labels Jun 7, 2024
@haydenrou haydenrou added this to the MVP milestone Jun 7, 2024
@jonnyjones99
Copy link
Contributor

@haydenrou

Looking at the current design, I think we might want to change how the template builder works. Instead of users dragging elements from the left to the right, perhaps they should click a button on the right and then be able to drag it around on the right side.

This is likely how it will work on mobile as well.

@haydenrou
Copy link
Contributor Author

Will the button on the right open a popover with different options they can select? Kind of like how Notion lets you do it? If so, then I totally agree. We can make these changes in this PR or if its not quite code WIP yet, we could add another issue in and do that first.

Screen.Recording.2024-06-20.at.15.24.52.mov

@jonnyjones99
Copy link
Contributor

jonnyjones99 commented Jun 20, 2024

That's how I envision it working on the right: when you click one of the inputs inside the form builder itself.

However, what I mean for the left side is that you click the input you want, and it will appear on the right. So users don't need to drag between the left and right, which would be difficult for mobile users.

Alternatively, we could show a mobile-friendly version of the page based on the device's view width.

Probably just keep it how we've done it for now, just thinking about it in the future for mobile users.

@haydenrou
Copy link
Contributor Author

Ah I see what you mean. Yeah that makes sense, in the future we could just hide the left-sidebar on a certain width and have a little bubble icon that you press or something different for mobile.

I quite like ignoring drag-and-drop for the left-sidebar, and just pressing them. Rearchitecturing that won't be very difficult at all, it'll mainly just be removing code and adding an on-click with the function call that's currently being used in the onAdd I believe. If you want to do that in this PR that'd be good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants