Selects wear the house box, and the app stops explaining itself
Browse files at this commit1ae8359dce8e098f051b693958d4307ae7e70424Parent: 70cc24c- fix
- selects wear the house box, and the app stops explaining itself
8 changed files +50 -95
- CLAUDE.md +10 -0
- crates/dizey-web/src/auth.rs +4 -11
- crates/dizey-web/src/board.rs +1 -4
- crates/dizey-web/src/detail.rs +2 -5
- crates/dizey-web/src/pages.rs +2 -4
- crates/dizey-web/src/rules.rs +3 -16
- crates/dizey-web/src/settings.rs +15 -55
- style/main.scss +13 -0
CLAUDE.mdadded+10 -0
| @@ -0,0 +1,10 @@ | |||
| 1 | +# Dizey UI conventions | ||
| 2 | + | ||
| 3 | +1. No bare native form controls. Every `<select>`/`<input>` wears the house | ||
| 4 | + field box (`style/main.scss` `.field-input` / `.field-box` / `.status-form` | ||
| 5 | + pattern) — never an unstyled OS control. | ||
| 6 | + | ||
| 7 | +2. UI text is terse. No instructional/explainer text: refusals state the | ||
| 8 | + fact in one short sentence with no guidance, labels are nouns, no notes | ||
| 9 | + narrating what a control does or restating a limit the form already | ||
| 10 | + enforces. The user is not to be taught his own app. | ||
crates/dizey-web/src/auth.rsmodified+4 -11
| @@ -79,9 +79,7 @@ impl Refusal { | |||
| 79 | Refusal::SignInFirst => "Sign in first.".to_string(), | 79 | Refusal::SignInFirst => "Sign in first.".to_string(), |
| 80 | Refusal::AlreadyClaimed => "This workspace already has an owner.".to_string(), | 80 | Refusal::AlreadyClaimed => "This workspace already has an owner.".to_string(), |
| 81 | Refusal::AddressTaken => "That address already has an account.".to_string(), | 81 | Refusal::AddressTaken => "That address already has an account.".to_string(), |
| 82 | - Refusal::LinkNotUsable => { | 82 | + Refusal::LinkNotUsable => "This link no longer works.".to_string(), |
| 83 | - "This link no longer works. Ask the admin to send another.".to_string() | ||
| 84 | - } | ||
| 85 | Refusal::EmptyTitle => "Give the task a title.".to_string(), | 83 | Refusal::EmptyTitle => "Give the task a title.".to_string(), |
| 86 | Refusal::EmptyName => "Give yourself a name.".to_string(), | 84 | Refusal::EmptyName => "Give yourself a name.".to_string(), |
| 87 | Refusal::BadLimit => { | 85 | Refusal::BadLimit => { |
| @@ -94,21 +92,16 @@ impl Refusal { | |||
| 94 | Refusal::BadSender(problem) => problem.clone(), | 92 | Refusal::BadSender(problem) => problem.clone(), |
| 95 | Refusal::EmptyComment => "Write something first.".to_string(), | 93 | Refusal::EmptyComment => "Write something first.".to_string(), |
| 96 | Refusal::NoFile => "Choose a file first.".to_string(), | 94 | Refusal::NoFile => "Choose a file first.".to_string(), |
| 97 | - Refusal::FileTooBig => { | 95 | + Refusal::FileTooBig => "Too big for this workspace.".to_string(), |
| 98 | - "That file is bigger than this workspace allows. The limit is in Settings." | ||
| 99 | - .to_string() | ||
| 100 | - } | ||
| 101 | Refusal::FileTypeNotAllowed => { | 96 | Refusal::FileTypeNotAllowed => { |
| 102 | "That kind of file is not on this workspace's allowed list.".to_string() | 97 | "That kind of file is not on this workspace's allowed list.".to_string() |
| 103 | } | 98 | } |
| 104 | Refusal::EmptySubject => "Give the rule a subject line.".to_string(), | 99 | Refusal::EmptySubject => "Give the rule a subject line.".to_string(), |
| 105 | Refusal::BadDeadline => "That is not a date.".to_string(), | 100 | Refusal::BadDeadline => "That is not a date.".to_string(), |
| 106 | Refusal::Cycle => "That link would put this task behind itself.".to_string(), | 101 | Refusal::Cycle => "That link would put this task behind itself.".to_string(), |
| 107 | - Refusal::MovedAlready => { | 102 | + Refusal::MovedAlready => "Somebody moved this card first.".to_string(), |
| 108 | - "Somebody moved this card first. This is where it is now.".to_string() | ||
| 109 | - } | ||
| 110 | Refusal::NotFound => "No such task.".to_string(), | 103 | Refusal::NotFound => "No such task.".to_string(), |
| 111 | - Refusal::Unavailable => "Something went wrong. Try again.".to_string(), | 104 | + Refusal::Unavailable => "Something went wrong.".to_string(), |
| 112 | } | 105 | } |
| 113 | } | 106 | } |
| 114 | 107 | ||
crates/dizey-web/src/board.rsmodified+1 -4
| @@ -220,7 +220,7 @@ pub fn Board() -> impl IntoView { | |||
| 220 | Err(_) => { | 220 | Err(_) => { |
| 221 | view! { | 221 | view! { |
| 222 | <main class="scaffold-note"> | 222 | <main class="scaffold-note"> |
| 223 | - <p>"Something went wrong. Reload the page."</p> | 223 | + <p>"Something went wrong."</p> |
| 224 | </main> | 224 | </main> |
| 225 | } | 225 | } |
| 226 | .into_any() | 226 | .into_any() |
| @@ -423,9 +423,6 @@ fn BoardScreen( | |||
| 423 | view! { | 423 | view! { |
| 424 | <div class="board-empty"> | 424 | <div class="board-empty"> |
| 425 | <div class="board-empty-title">"This board is empty"</div> | 425 | <div class="board-empty-title">"This board is empty"</div> |
| 426 | - <div class="board-empty-sub"> | ||
| 427 | - "Create the first task with the New task button." | ||
| 428 | - </div> | ||
| 429 | </div> | 426 | </div> |
| 430 | } | 427 | } |
| 431 | })} | 428 | })} |
crates/dizey-web/src/detail.rsmodified+2 -5
| @@ -667,7 +667,7 @@ pub fn TaskDetailModal( | |||
| 667 | } | 667 | } |
| 668 | Err(_) => { | 668 | Err(_) => { |
| 669 | view! { | 669 | view! { |
| 670 | - <p class="modal-note">"Something went wrong. Reload the page."</p> | 670 | + <p class="modal-note">"Something went wrong."</p> |
| 671 | } | 671 | } |
| 672 | .into_any() | 672 | .into_any() |
| 673 | } | 673 | } |
| @@ -1212,7 +1212,7 @@ fn DetailScreen( | |||
| 1212 | may_comment, | 1212 | may_comment, |
| 1213 | may_delete, | 1213 | may_delete, |
| 1214 | allowed_file_types, | 1214 | allowed_file_types, |
| 1215 | - attachment_limit_mb, | 1215 | + attachment_limit_mb: _, |
| 1216 | } = snapshot; | 1216 | } = snapshot; |
| 1217 | 1217 | ||
| 1218 | let id = StoredValue::new(detail.id.clone()); | 1218 | let id = StoredValue::new(detail.id.clone()); |
| @@ -1449,9 +1449,6 @@ fn DetailScreen( | |||
| 1449 | <button class="file-upload-submit" type="submit"> | 1449 | <button class="file-upload-submit" type="submit"> |
| 1450 | "Upload" | 1450 | "Upload" |
| 1451 | </button> | 1451 | </button> |
| 1452 | - <span class="detail-quiet"> | ||
| 1453 | - {format!("Up to {attachment_limit_mb} MB.")} | ||
| 1454 | - </span> | ||
| 1455 | </form> | 1452 | </form> |
| 1456 | {refused(upload_refusal)} | 1453 | {refused(upload_refusal)} |
| 1457 | } | 1454 | } |
crates/dizey-web/src/pages.rsmodified+2 -4
| @@ -39,7 +39,7 @@ pub fn Landing() -> impl IntoView { | |||
| 39 | view! { | 39 | view! { |
| 40 | <Topbar/> | 40 | <Topbar/> |
| 41 | <main class="scaffold-note"> | 41 | <main class="scaffold-note"> |
| 42 | - <p>"Something went wrong. Reload the page."</p> | 42 | + <p>"Something went wrong."</p> |
| 43 | </main> | 43 | </main> |
| 44 | } | 44 | } |
| 45 | .into_any() | 45 | .into_any() |
| @@ -150,9 +150,7 @@ pub fn Join() -> impl IntoView { | |||
| 150 | <div class="auth-column"> | 150 | <div class="auth-column"> |
| 151 | <div class="auth-card"> | 151 | <div class="auth-card"> |
| 152 | <div class="auth-title">"This link no longer works"</div> | 152 | <div class="auth-title">"This link no longer works"</div> |
| 153 | - <div class="auth-sub"> | 153 | + <div class="auth-sub">"Sign-in links last seven days."</div> |
| 154 | - "Sign-in links last seven days. Ask the admin to send another — it opens the same account, with the same history." | ||
| 155 | - </div> | ||
| 156 | </div> | 154 | </div> |
| 157 | </div> | 155 | </div> |
| 158 | </main> | 156 | </main> |
crates/dizey-web/src/rules.rsmodified+3 -16
| @@ -291,7 +291,7 @@ pub fn RulesPage() -> impl IntoView { | |||
| 291 | Err(_) => { | 291 | Err(_) => { |
| 292 | view! { | 292 | view! { |
| 293 | <main class="scaffold-note"> | 293 | <main class="scaffold-note"> |
| 294 | - <p>"Something went wrong. Reload the page."</p> | 294 | + <p>"Something went wrong."</p> |
| 295 | </main> | 295 | </main> |
| 296 | } | 296 | } |
| 297 | .into_any() | 297 | .into_any() |
| @@ -344,16 +344,13 @@ fn RulesScreen(snapshot: RulesSnapshot, on_change: Callback<()>) -> impl IntoVie | |||
| 344 | <div class="settings-head"> | 344 | <div class="settings-head"> |
| 345 | <h1 class="settings-title">"Mail rules"</h1> | 345 | <h1 class="settings-title">"Mail rules"</h1> |
| 346 | <span class="chip chip-admin">"Admin only"</span> | 346 | <span class="chip chip-admin">"Admin only"</span> |
| 347 | - <span class="settings-note"> | ||
| 348 | - "One sentence per rule. A rule fires when a task on this board matches it. Only the admin writes them — a rule sends mail on everyone's behalf, from the one workspace sender." | ||
| 349 | - </span> | ||
| 350 | </div> | 347 | </div> |
| 351 | 348 | ||
| 352 | {(!sender_connected) | 349 | {(!sender_connected) |
| 353 | .then(|| { | 350 | .then(|| { |
| 354 | view! { | 351 | view! { |
| 355 | <p class="rules-quiet"> | 352 | <p class="rules-quiet"> |
| 356 | - "No sender is connected yet, so nothing leaves the machine. Rules still fire and the mail they owe waits in the queue until you connect one in " | 353 | + "No sender connected — mail waits in the queue until you set one in " |
| 357 | <a href="/settings">"Settings"</a> | 354 | <a href="/settings">"Settings"</a> |
| 358 | "." | 355 | "." |
| 359 | </p> | 356 | </p> |
| @@ -364,14 +361,7 @@ fn RulesScreen(snapshot: RulesSnapshot, on_change: Callback<()>) -> impl IntoVie | |||
| 364 | 361 | ||
| 365 | <div class="rule-list"> | 362 | <div class="rule-list"> |
| 366 | {rows} | 363 | {rows} |
| 367 | - {empty | 364 | + {empty.then(|| view! { <p class="rules-quiet">"No rules yet."</p> })} |
| 368 | - .then(|| { | ||
| 369 | - view! { | ||
| 370 | - <p class="rules-quiet"> | ||
| 371 | - "No rules yet. Nothing on this board sends mail until you write one." | ||
| 372 | - </p> | ||
| 373 | - } | ||
| 374 | - })} | ||
| 375 | </div> | 365 | </div> |
| 376 | </main> | 366 | </main> |
| 377 | </div> | 367 | </div> |
| @@ -462,9 +452,6 @@ fn Composer(columns: Vec<ColumnChoice>, on_change: Callback<()>) -> impl IntoVie | |||
| 462 | "Add rule" | 452 | "Add rule" |
| 463 | </button> | 453 | </button> |
| 464 | </div> | 454 | </div> |
| 465 | - <span class="field-note"> | ||
| 466 | - "A Viewer is never mailed by a rule, on any audience, and neither is whoever caused the event." | ||
| 467 | - </span> | ||
| 468 | </ActionForm> | 455 | </ActionForm> |
| 469 | </details> | 456 | </details> |
| 470 | } | 457 | } |
crates/dizey-web/src/settings.rsmodified+15 -55
| @@ -343,17 +343,17 @@ pub async fn save_sender( | |||
| 343 | .unwrap_or(false); | 343 | .unwrap_or(false); |
| 344 | 344 | ||
| 345 | let complaint = if host.is_empty() { | 345 | let complaint = if host.is_empty() { |
| 346 | - Some("The SMTP host is the server your mail goes out through — smtp.fastmail.com, for instance.") | 346 | + Some("Give the SMTP host.") |
| 347 | } else if host.contains(char::is_whitespace) || host.contains('@') || host.contains('/') { | 347 | } else if host.contains(char::is_whitespace) || host.contains('@') || host.contains('/') { |
| 348 | Some("The SMTP host is a host name, not an address or a URL.") | 348 | Some("The SMTP host is a host name, not an address or a URL.") |
| 349 | } else if !(1..=65535).contains(&port) { | 349 | } else if !(1..=65535).contains(&port) { |
| 350 | - Some("A port is a number between 1 and 65535. 587 is the usual one; 465 is the other.") | 350 | + Some("A port is a number between 1 and 65535.") |
| 351 | } else if username.is_empty() { | 351 | } else if username.is_empty() { |
| 352 | - Some("The username is the account Dizey signs in to the mail server with.") | 352 | + Some("Give the SMTP username.") |
| 353 | } else if password.is_none() && !known { | 353 | } else if password.is_none() && !known { |
| 354 | - Some("A password is needed the first time. It is stored so Dizey can sign in on every send, and is never shown again.") | 354 | + Some("A password is needed the first time.") |
| 355 | } else if !is_address(&from_address) { | 355 | } else if !is_address(&from_address) { |
| 356 | - Some("The from-address is the address people will see this mail come from.") | 356 | + Some("That is not a from-address.") |
| 357 | } else { | 357 | } else { |
| 358 | None | 358 | None |
| 359 | }; | 359 | }; |
| @@ -545,7 +545,7 @@ pub fn SettingsPage() -> impl IntoView { | |||
| 545 | Err(_) => { | 545 | Err(_) => { |
| 546 | view! { | 546 | view! { |
| 547 | <main class="scaffold-note"> | 547 | <main class="scaffold-note"> |
| 548 | - <p>"Something went wrong. Reload the page."</p> | 548 | + <p>"Something went wrong."</p> |
| 549 | </main> | 549 | </main> |
| 550 | } | 550 | } |
| 551 | .into_any() | 551 | .into_any() |
| @@ -564,19 +564,6 @@ fn SettingsScreen( | |||
| 564 | link_refusal: RwSignal<Option<String>>, | 564 | link_refusal: RwSignal<Option<String>>, |
| 565 | ) -> impl IntoView { | 565 | ) -> impl IntoView { |
| 566 | let me = snapshot.me.clone(); | 566 | let me = snapshot.me.clone(); |
| 567 | - // Three roles, three true sentences. A Viewer is never mailed by a rule, so | ||
| 568 | - // the member's line is not merely vague for them, it is wrong. | ||
| 569 | - let role_note = match me.role { | ||
| 570 | - dizey_core::Role::Admin => { | ||
| 571 | - "First account in this workspace. Only you see the sender, limits and member panels." | ||
| 572 | - } | ||
| 573 | - dizey_core::Role::Member => { | ||
| 574 | - "You work the board and the rules mail you. The sender, the limits and the member list are the admin's." | ||
| 575 | - } | ||
| 576 | - dizey_core::Role::Viewer => { | ||
| 577 | - "You read and export the board. No rule ever mails you, and the sender, the limits and the member list are the admin's." | ||
| 578 | - } | ||
| 579 | - }; | ||
| 580 | 567 | ||
| 581 | view! { | 568 | view! { |
| 582 | <header class="topbar"> | 569 | <header class="topbar"> |
| @@ -609,7 +596,6 @@ fn SettingsScreen( | |||
| 609 | <div class="settings-head"> | 596 | <div class="settings-head"> |
| 610 | <h1 class="settings-title">"Settings"</h1> | 597 | <h1 class="settings-title">"Settings"</h1> |
| 611 | <span class="chip chip-role">{me.role.as_str().to_string()}</span> | 598 | <span class="chip chip-role">{me.role.as_str().to_string()}</span> |
| 612 | - <span class="settings-note">{role_note}</span> | ||
| 613 | </div> | 599 | </div> |
| 614 | 600 | ||
| 615 | <ProfilePanel me=me.clone()/> | 601 | <ProfilePanel me=me.clone()/> |
| @@ -664,11 +650,8 @@ fn ProfilePanel(me: Me) -> impl IntoView { | |||
| 664 | /> | 650 | /> |
| 665 | </label> | 651 | </label> |
| 666 | <label class="field"> | 652 | <label class="field"> |
| 667 | - <span class="field-label">"EMAIL — WHERE YOUR NOTIFICATIONS GO"</span> | 653 | + <span class="field-label">"EMAIL"</span> |
| 668 | <input class="field-input" type="email" value=me.email.clone() disabled/> | 654 | <input class="field-input" type="email" value=me.email.clone() disabled/> |
| 669 | - <span class="field-note"> | ||
| 670 | - "Your address is the account. The admin changes it from the member list." | ||
| 671 | - </span> | ||
| 672 | </label> | 655 | </label> |
| 673 | <div class="panel-foot"> | 656 | <div class="panel-foot"> |
| 674 | {move || { | 657 | {move || { |
| @@ -684,9 +667,6 @@ fn ProfilePanel(me: Me) -> impl IntoView { | |||
| 684 | </div> | 667 | </div> |
| 685 | </ActionForm> | 668 | </ActionForm> |
| 686 | <div class="panel-body panel-foot panel-foot-split"> | 669 | <div class="panel-body panel-foot panel-foot-split"> |
| 687 | - <span class="field-note"> | ||
| 688 | - "Signing out ends this browser's session. Anywhere else you are signed in stays signed in." | ||
| 689 | - </span> | ||
| 690 | <ActionForm action=out> | 670 | <ActionForm action=out> |
| 691 | <button class="quiet" type="submit"> | 671 | <button class="quiet" type="submit"> |
| 692 | "Sign out" | 672 | "Sign out" |
| @@ -781,14 +761,11 @@ fn SenderPanel(sender: Sender, on_change: Callback<()>) -> impl IntoView { | |||
| 781 | }} | 761 | }} |
| 782 | </div> | 762 | </div> |
| 783 | <div class="panel-body"> | 763 | <div class="panel-body"> |
| 784 | - <p class="panel-lede"> | ||
| 785 | - "One sender for the whole workspace. Every mail rule, for every member, sends through this account — nobody sets their own." | ||
| 786 | - </p> | ||
| 787 | {(!connected) | 764 | {(!connected) |
| 788 | .then(|| { | 765 | .then(|| { |
| 789 | view! { | 766 | view! { |
| 790 | <p class="panel-lede"> | 767 | <p class="panel-lede"> |
| 791 | - "Nothing is sent until this is filled in. Cards still move and rules still fire — what they owe is kept, and goes out on the next sweep after you save." | 768 | + "Not connected — mail queues until you save." |
| 792 | </p> | 769 | </p> |
| 793 | } | 770 | } |
| 794 | })} | 771 | })} |
| @@ -832,12 +809,6 @@ fn SenderPanel(sender: Sender, on_change: Callback<()>) -> impl IntoView { | |||
| 832 | false => "Needed before anything can be sent", | 809 | false => "Needed before anything can be sent", |
| 833 | } | 810 | } |
| 834 | /> | 811 | /> |
| 835 | - <span class="field-note"> | ||
| 836 | - {match password_set { | ||
| 837 | - true => "A password is stored. It is never shown again — not here, not in any answer this page receives. Leave this empty and the stored one is kept.", | ||
| 838 | - false => "No password is stored yet. It is kept so Dizey can sign in to the mail server on every send, and is never shown again once saved.", | ||
| 839 | - }} | ||
| 840 | - </span> | ||
| 841 | </label> | 812 | </label> |
| 842 | <div class="field-row"> | 813 | <div class="field-row"> |
| 843 | <label class="field"> | 814 | <label class="field"> |
| @@ -919,7 +890,7 @@ fn LimitsPanel(limits: Limits) -> impl IntoView { | |||
| 919 | <ActionForm action=action attr:class="panel-body"> | 890 | <ActionForm action=action attr:class="panel-body"> |
| 920 | <div class="field-row"> | 891 | <div class="field-row"> |
| 921 | <label class="field"> | 892 | <label class="field"> |
| 922 | - <span class="field-label">"ATTACHMENT SIZE LIMIT"</span> | 893 | + <span class="field-label">"ATTACHMENT LIMIT (MB)"</span> |
| 923 | <input | 894 | <input |
| 924 | class="field-input" | 895 | class="field-input" |
| 925 | type="number" | 896 | type="number" |
| @@ -929,12 +900,9 @@ fn LimitsPanel(limits: Limits) -> impl IntoView { | |||
| 929 | value=limits.attachment_limit_mb.to_string() | 900 | value=limits.attachment_limit_mb.to_string() |
| 930 | required | 901 | required |
| 931 | /> | 902 | /> |
| 932 | - <span class="field-note"> | ||
| 933 | - "Megabytes per file, for task attachments and comment files. The limit is enforced when the file arrives, not only in the picker." | ||
| 934 | - </span> | ||
| 935 | </label> | 903 | </label> |
| 936 | <label class="field"> | 904 | <label class="field"> |
| 937 | - <span class="field-label">"PROFILE PHOTO LIMIT"</span> | 905 | + <span class="field-label">"PHOTO LIMIT (MB)"</span> |
| 938 | <input | 906 | <input |
| 939 | class="field-input" | 907 | class="field-input" |
| 940 | type="number" | 908 | type="number" |
| @@ -944,7 +912,6 @@ fn LimitsPanel(limits: Limits) -> impl IntoView { | |||
| 944 | value=limits.photo_limit_mb.to_string() | 912 | value=limits.photo_limit_mb.to_string() |
| 945 | required | 913 | required |
| 946 | /> | 914 | /> |
| 947 | - <span class="field-note">"Megabytes per photo."</span> | ||
| 948 | </label> | 915 | </label> |
| 949 | </div> | 916 | </div> |
| 950 | <label class="field"> | 917 | <label class="field"> |
| @@ -956,9 +923,6 @@ fn LimitsPanel(limits: Limits) -> impl IntoView { | |||
| 956 | value=limits.allowed_file_types.join(", ") | 923 | value=limits.allowed_file_types.join(", ") |
| 957 | placeholder="png, jpg, pdf, zip" | 924 | placeholder="png, jpg, pdf, zip" |
| 958 | /> | 925 | /> |
| 959 | - <span class="field-note"> | ||
| 960 | - "Extensions, separated by commas. An empty list means every type is allowed." | ||
| 961 | - </span> | ||
| 962 | </label> | 926 | </label> |
| 963 | <p class="panel-lede"> | 927 | <p class="panel-lede"> |
| 964 | "A lower limit never touches files already uploaded." | 928 | "A lower limit never touches files already uploaded." |
| @@ -1146,10 +1110,6 @@ fn MembersPanel( | |||
| 1146 | </button> | 1110 | </button> |
| 1147 | </ActionForm> | 1111 | </ActionForm> |
| 1148 | 1112 | ||
| 1149 | - <p class="panel-lede"> | ||
| 1150 | - "You create the account with a name and an address. No password is set — the person picks one the first time they sign in." | ||
| 1151 | - </p> | ||
| 1152 | - | ||
| 1153 | {move || { | 1113 | {move || { |
| 1154 | refusal | 1114 | refusal |
| 1155 | .get() | 1115 | .get() |
| @@ -1160,10 +1120,10 @@ fn MembersPanel( | |||
| 1160 | .map(|path| { | 1120 | .map(|path| { |
| 1161 | view! { | 1121 | view! { |
| 1162 | <div class="member-link"> | 1122 | <div class="member-link"> |
| 1163 | - <span class="field-label">"SIGN-IN LINK — SHOWN ONCE"</span> | 1123 | + <span class="field-label">"SIGN-IN LINK"</span> |
| 1164 | <code class="member-link-value">{path}</code> | 1124 | <code class="member-link-value">{path}</code> |
| 1165 | <span class="field-note"> | 1125 | <span class="field-note"> |
| 1166 | - "Pass it on now. Dizey keeps only its hash, so nothing can show it again — send another link instead. Links expire after 7 days, and an expired link is not a dead account: resending opens the same one." | 1126 | + "Shown once. Expires in 7 days." |
| 1167 | </span> | 1127 | </span> |
| 1168 | </div> | 1128 | </div> |
| 1169 | } | 1129 | } |
| @@ -1173,15 +1133,15 @@ fn MembersPanel( | |||
| 1173 | <div class="role-note"> | 1133 | <div class="role-note"> |
| 1174 | <p class="panel-lede"> | 1134 | <p class="panel-lede"> |
| 1175 | <b>"Admin"</b> | 1135 | <b>"Admin"</b> |
| 1176 | - " holds the sender, the limits and this list." | 1136 | + " — sender, limits, members." |
| 1177 | </p> | 1137 | </p> |
| 1178 | <p class="panel-lede"> | 1138 | <p class="panel-lede"> |
| 1179 | <b>"Member"</b> | 1139 | <b>"Member"</b> |
| 1180 | - " works the board and is mailed by the rules." | 1140 | + " — board and rule mail." |
| 1181 | </p> | 1141 | </p> |
| 1182 | <p class="panel-lede"> | 1142 | <p class="panel-lede"> |
| 1183 | <b>"Viewer"</b> | 1143 | <b>"Viewer"</b> |
| 1184 | - " reads and exports — cannot be assigned a task, cannot comment, and no rule ever mails them." | 1144 | + " — read and export only." |
| 1185 | </p> | 1145 | </p> |
| 1186 | </div> | 1146 | </div> |
| 1187 | </div> | 1147 | </div> |
style/main.scssmodified+13 -0
| @@ -1729,6 +1729,19 @@ a { | |||
| 1729 | } | 1729 | } |
| 1730 | } | 1730 | } |
| 1731 | 1731 | ||
| 1732 | +// A <select> wearing the field-input box still shows the browser's own | ||
| 1733 | +// arrow unless told otherwise. This draws the same chevron the rest of the | ||
| 1734 | +// app uses, so a dropdown looks like a field, not an OS control. | ||
| 1735 | +select.field-input { | ||
| 1736 | + appearance: none; | ||
| 1737 | + -webkit-appearance: none; | ||
| 1738 | + cursor: pointer; | ||
| 1739 | + padding-right: 32px; | ||
| 1740 | + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%238a8578' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); | ||
| 1741 | + background-repeat: no-repeat; | ||
| 1742 | + background-position: right 12px center; | ||
| 1743 | +} | ||
| 1744 | + | ||
| 1732 | // A row that states a fact instead of pretending to be an editable field. An | 1745 | // A row that states a fact instead of pretending to be an editable field. An |
| 1733 | // empty box that silently does nothing is worse than a sentence. | 1746 | // empty box that silently does nothing is worse than a sentence. |
| 1734 | .field-stated { | 1747 | .field-stated { |