Repository navigation
Commit 01ac5fb
authored
Warn before the free trial runs out, and shorten the dialog at the end (#2692)
* Warn before the free trial runs out, and shorten the dialog at the end
- From 80% of the free trial used, a line under the message box says how
much is used, with Add a card where the server sends the way to add
one, or "Ask an admin to add a card" for a member.
- The used-up dialog says it once: title, one line that also says Bots,
conversations and memory are kept, the price ("$5 per member per
month") with what it covers, then Not now and Add a card. No full bar
and no sentence repeating the button.
- A member is told which admins to ask, by name, from the members list.
- The Plan row in Settings draws an 8px bar with row-size labels, says
what happens at 100%, and offers Add a card beside the bar from 80%
where the server sends the way.
- The CopilotKit employee dialog is unchanged.
* Redesign the free-trial dialog: paused Bots, the bar, a plan card
- The person's Bots sit at the top, faded, with a Paused pill: up to
four, the rest counted. Left out when there are none or they aren't
read yet.
- The line says how many runs were used and how many Bots that paused,
and that Bots, conversations and memory are kept.
- The free trial bar is back, full.
- An admin gets a plan card: "Keep your Bots running", $5 per member a
month, two lines on what adding the card does, and the organization's
monthly total from the members list once it is read.
- A member gets the owners and admins to ask as rows with their role,
"It's $5 a month for each member.", and Got it.
- A failed payment keeps the same shell with no bar and no plan card.
- The $5 lives in one place; the other prices are built from it.
* Describe the redesigned free-trial dialog in the changelog
* Drop the plan card's monthly total, and put Add a card under the Plan bar
The plan API sends no billed seat count, and the members list includes
people who may not be billed, so a total worked out from it could
disagree with the bill. The plan card keeps the price and the two lines
on what adding a card does.
On the Plan row, Add a card from 80% sits under the bar, as the
employee's button does, so the bar keeps its width in a narrow window.
* Free-trial dialog: design review fixes
- Count and show only the person's own Bots as paused, not Bots shared
with them; with none, the line has no Bot part.
- Use the shared dialog shell and title as they are.
- The plan card is an outline Item, and the admins a member is told to
ask are Items with separators.
- Both bars use the Progress primitive's own height.
- The price reads "$5 per member a month" on the card and in the
member's line.
- Put the Settings page's imports back in their original order.
* Give the plan card's check lines the card's full width
The title and the price stay on one row; the two lines sit under them in an ItemFooter, so each fits on one line at the dialog's width.
* Take main's CHANGELOG.md: the release note lives in the PR description1 parent e302771 commit 01ac5fb
7 files changed
Lines changed: 803 additions & 92 deletions
File tree
- app
- src
- components
- channels/composer
- organizations
- plan
- lib/plan
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
2092 | 2093 | | |
2093 | 2094 | | |
2094 | 2095 | | |
| 2096 | + | |
| 2097 | + | |
2095 | 2098 | | |
2096 | 2099 | | |
2097 | 2100 | | |
| |||
2191 | 2194 | | |
2192 | 2195 | | |
2193 | 2196 | | |
| 2197 | + | |
2194 | 2198 | | |
2195 | 2199 | | |
2196 | 2200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| 90 | + | |
89 | 91 | | |
90 | 92 | | |
91 | 93 | | |
| |||
201 | 203 | | |
202 | 204 | | |
203 | 205 | | |
204 | | - | |
205 | | - | |
206 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
207 | 210 | | |
208 | 211 | | |
209 | 212 | | |
| |||
223 | 226 | | |
224 | 227 | | |
225 | 228 | | |
226 | | - | |
227 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
228 | 232 | | |
229 | 233 | | |
230 | | - | |
| 234 | + | |
231 | 235 | | |
232 | 236 | | |
233 | 237 | | |
234 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
235 | 244 | | |
236 | 245 | | |
237 | 246 | | |
| |||
257 | 266 | | |
258 | 267 | | |
259 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
260 | 284 | | |
261 | 285 | | |
262 | 286 | | |
| |||
0 commit comments