@startujn render { direction: down; arrow_spacing: 24 } journey TRIAL "A free trial that ends" description: "14 days free with no card. Then the workspace goes read-only, and its data is deleted 30 days later" unique_id_friendly: trial start from_signup { description: "Right after sign-up" } action start_trial { title: "Start the trial"; description: "Day 0, no card needed" } data workspaces { title: "Workspace plan"; description: "Trial, read-only or paid"; location: table workspaces } view home { title: "Workspace home"; description: "Banner: days left, Upgrade"; route: /w/:id } action day_11 { type: wait; title: "Until day 11"; description: "If still on trial"; timeout: 11 d } action remind { type: message; title: "Trial ends in 3 days"; channel: email } handoff remind_link { title: "Reminder email"; channel: email; resume: /settings/billing/plans } action day_14 { type: wait; title: "Until day 14"; description: "If still on trial"; timeout: 14 d } action end_trial { title: "End the trial"; description: "Edits blocked, data kept" } action day_44 { type: wait; title: "Until day 44"; description: "If still read-only; a warning email goes out first"; timeout: 30 d } action delete_data { title: "Delete the data"; description: "The workspace and everything in it" } end deleted { type: abandoned; description: "Never came back" } start returning { description: "Signs in later, not yet paid" } action open_ws { title: "Open workspace"; description: "Reads the plan" } view read_only { title: "Workspace, read-only"; description: "Trial ended: view and export, no edits"; route: /w/:id } ref plan { journey: CHOOSE_PLAN; title: "Choose a plan"; description: "Pick a plan, add a card" } end paid { type: success; description: "On a paid plan" } from_signup --> start_trial start_trial --> home start_trial --> workspaces { payload: [plan, trial_ends_at] } start_trial --> day_14 start_trial --> day_11 day_11 --> remind : timeout remind --> remind_link remind_link ..> plan : [Choose a plan] day_14 --> end_trial : timeout end_trial --> workspaces { payload: [plan] } end_trial --> day_44 day_44 --> delete_data : timeout delete_data --> deleted returning --> open_ws workspaces --> open_ws { payload: [plan, trial_ends_at] } open_ws -up-> home : on trial open_ws --> read_only : read-only home --> plan : [Upgrade] read_only --> plan : [Upgrade] plan .right.> paid : upgraded plan ..> open_ws : left without paying @endujn