You are browsing as a guest. Sign up (or log in) to start making projects!

3h 24m 47s logged

Edit form & response pages

  • Finally added the form editing page where you’ll be able to edit the entire form (title, description, questions, etc.), view response summaries and statistics, and configure its submission settings and other defaults :thumbs-up:
  • When you click on one of your forms on the forms tab, you get redirected to the edit page that has a top utility bar with the form’s name displayed (you can rename the form by clicking on it) and 3 tabs for you to switch between edit, response, and settings modes
  • On the right of the bar, there’s also an invite button, a preview form button, and a publish button (currently doesn’t work yet :heavysob: )
  • Clicking on the invite button opens a modal where you can either invite another MacWeb account to be a permanent collaborator (of course it doesn’t work yet), or generate a one-time single-use invite link/code that allows anyone (with or without an account) with the access code to edit the form using a custom access token cookie that expires after an hour
  • Making this cookie access thing work was actually a bit more complicated than I thought, so I spent some time debugging the logic but it was pretty fun
  • When you use the access code to edit a form, a page shows up confirming the access, and invalidates the code after confirming
  • When you click on the responses tab, you can see all the responses and answers grouped by question to make visualizing and summarizing people’s responses a lot easier (definitely didn’t take inspo from Google Forms :hehe: )
  • If the question is multiple choice, it shows how many responses each option got with percentages and presents it in sort of a bar graph
  • If the question is free responses, it just lists each response
  • Added placeholder tabs for editing and settings
  • Added SEO for these tabs
  • Updated types and schema
  • Updated styling
0
27

Comments 0

No comments yet. Be the first!