Set up a new workspace
Right after signing up, a new user sets up their team's workspace in a three-step wizard: name it and pick its web address, import contacts from a spreadsheet, and invite teammates. Steps 2 and 3 are optional, Back goes from step 3 to step 2, and a web address already in use keeps the user on step 1. Every step is saved, so a user who leaves and signs in later lands on the step where they stopped, and Finish opens the workspace home.
What UJN shows here Point at a note to see its part of the drawing
The source (42 lines)
wizard.puml
@startujnrender { direction: down; arrow_spacing: 24 }journey SETUP "Set up a new workspace"description: "A new workspace in three steps; each step is saved, so a user who leaves comes back to it"unique_id_friendly: workspace_setup start after_signup { description: "Signed in, no workspace yet" }view setup { type: wizard; title: "Set up your workspace"; description: "3 steps"; route: /setup }view name_step { title: "Name your workspace"; description: "Step 1 · name and web address"; route: /setup/name; parent: setup }action save_name { title: "Save step 1"; description: "Creates the workspace" }start later { description: "Signs in later, setup not finished" }action resume { title: "Find saved step" }view import_step { title: "Import contacts"; description: "Step 2 · optional · CSV or XLSX"; route: /setup/import; parent: setup }data sheet { type: file; title: "Contacts spreadsheet"; location: contacts.xlsx }action save_import { title: "Save step 2"; description: "Imports the rows, if any" }data progress { title: "Setup progress"; description: "Next step: 2, 3 or done"; location: "table onboarding · step" }view invite_step { title: "Invite your team"; description: "Step 3 · optional"; route: /setup/invite; parent: setup }ref invite { journey: INVITE_TEAMMATE; title: "Invite a teammate"; description: "Back here once invites are sent" }action finish { title: "Finish setup" }view home { title: "Workspace home"; route: /w/:workspace } later --> resumeprogress -up-> resume { payload: [next_step] }resume --> import_step : left on step 2resume --> invite_step : left on step 3after_signup --> setupsetup --> name_step : [Get started]name_step --> save_name : [Next] { payload: [name, web_address] }save_name .x.> name_step : address takensave_name --> import_step : savedsave_name --> progress { payload: [next_step] }import_step --> save_import : [Next] { payload: [contacts_file] }import_step --> save_import : [Skip]sheet --> save_import { payload: [rows] }save_import --> progress { payload: [next_step] }save_import --> invite_step : savedinvite_step ..> import_step : [Back]invite_step -left-> invite : [Invite people] { returns }invite_step --> finish : [Finish]finish -up-> progress { payload: [next_step] }finish -right-> home@endujn