(core) Replace questionnaire for new users with a popup asking for just their primary use-case.

Summary:
- WelcomeQuestions implements the new popup.
- Popup shows up on any doc-list page, the first time the user visits one after
  signing up and setting their name.
- Submits responses to the same "New User Questions" doc, which has been
  changed to accept two new columns (ChoiceList of use_cases, and Text for
  use_other).
- Improve modals on mobile along the way.

Test Plan: Added browser tests and tested manually

Reviewers: alexmojaki

Reviewed By: alexmojaki

Subscribers: jarek

Differential Revision: https://phab.getgrist.com/D3213
This commit is contained in:
Dmitry S
2022-01-13 21:55:55 -05:00
parent ba6ecc5e9e
commit 215bb90e68
19 changed files with 335 additions and 47 deletions

View File

@@ -0,0 +1,4 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M2 10V6H1C0.734784 6 0.48043 6.10536 0.292893 6.29289C0.105357 6.48043 0 6.73478 0 7L0 14C0 14.2652 0.105357 14.5196 0.292893 14.7071C0.48043 14.8946 0.734784 15 1 15H11C11.2652 15 11.5196 14.8946 11.7071 14.7071C11.8946 14.5196 12 14.2652 12 14V13H5C4.20435 13 3.44129 12.6839 2.87868 12.1213C2.31607 11.5587 2 10.7956 2 10Z" fill="#F7B32B"/>
<path d="M15 1H5C4.73478 1 4.48043 1.10536 4.29289 1.29289C4.10536 1.48043 4 1.73478 4 2V10C4 10.2652 4.10536 10.5196 4.29289 10.7071C4.48043 10.8946 4.73478 11 5 11H15C15.2652 11 15.5196 10.8946 15.7071 10.7071C15.8946 10.5196 16 10.2652 16 10V2C16 1.73478 15.8946 1.48043 15.7071 1.29289C15.5196 1.10536 15.2652 1 15 1ZM11.724 6.447L8.724 7.947C8.64777 7.9852 8.56304 8.00327 8.47786 7.99949C8.39268 7.99572 8.30988 7.97022 8.23733 7.92543C8.16478 7.88064 8.10489 7.81803 8.06335 7.74357C8.02181 7.66911 8 7.58526 8 7.5V4.5C8 4.41474 8.02181 4.33089 8.06335 4.25643C8.10489 4.18197 8.16478 4.11936 8.23733 4.07457C8.30988 4.02978 8.39268 4.00428 8.47786 4.00051C8.56304 3.99673 8.64777 4.0148 8.724 4.053L11.724 5.553C11.8069 5.59457 11.8767 5.6584 11.9254 5.73734C11.9742 5.81628 12 5.90723 12 6C12 6.09277 11.9742 6.18372 11.9254 6.26266C11.8767 6.3416 11.8069 6.40543 11.724 6.447Z" fill="#F7B32B"/>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB