From aaf577a9711cc16ee81aeb2414830a6e6e5c3e9f Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Tue, 8 Jul 2025 14:33:42 -0500 Subject: [PATCH] Re-write help content, try a modal-like display --- app/assets/stylesheets/terminals.css | 16 +++++-- app/views/commands/_help.html.erb | 63 ++++++++++++++-------------- 2 files changed, 44 insertions(+), 35 deletions(-) diff --git a/app/assets/stylesheets/terminals.css b/app/assets/stylesheets/terminals.css index b6960ff7e..c2f543fb6 100644 --- a/app/assets/stylesheets/terminals.css +++ b/app/assets/stylesheets/terminals.css @@ -47,14 +47,21 @@ } .terminal__help { + background: var(--color-terminal-bg); + border-radius: 1em; display: none; + inline-size: auto; + inset: 50% auto auto 50%; + max-inline-size: 90vw; + + padding: calc(var(--block-space) * 1.5) var(--block-space-double); + position: fixed; + transform: translate(-50%, -50%); + .terminal--showing-help &, .terminal--open .terminal__menu:empty ~ & { - border-block-end: 1px dashed; display: block; - margin-block-end: 0.5lh; - padding-block-end: 0.5lh; } h2 { @@ -74,7 +81,7 @@ dl { display: grid; grid-template-columns: min-content 1fr; - gap: 0.5em 1em; + gap: var(--inline-space); font-size: var(--text-small); margin: 0; } @@ -87,6 +94,7 @@ dd { grid-column: 2; + white-space: nowrap; } } diff --git a/app/views/commands/_help.html.erb b/app/views/commands/_help.html.erb index 07ec470ef..0f0135663 100644 --- a/app/views/commands/_help.html.erb +++ b/app/views/commands/_help.html.erb @@ -1,36 +1,37 @@ -
-

Commands you can use in Fizzy:

+
+

Fizzy do > Help

-

Navigation

-
@username
-
Go to to a someone's profile
-
[id]
-
Jump to a card by ID
+

Search

+
Type keywords to search cards and comments
+
"CSS bug"
-

Filtering

-
#tag
-
Just show cards taggged [tag]
-
[id] [id]…
-
Show multiple cards by ID
-
[/search term]
-
Keyword search
-
/clear
-
Clear all filters
+

Navigate

+
Type a card ID to go to it
+
"137"
+
Type a name to see someone’s profile
+
"@jason"
-

Cards

-
/add [title]
-
Create a new card
-
/assign [person] [person]…
-
Assign visible card(s)
-
/close [reason]
-
Close visible card(s)
-
/tag [tag]
-
Tag visible card(s)
-
/do
-
Move card(s) to doing
-
/reconsider
-
Move card(s) back to considering
-
/stage [workflow stage name]
-
Assign card(s) to a workflow stage
+

Filter

+
Type card IDs to isolate them
+
"131, 137, 39"
+
Type a tag to see just tagged cards
+
"#design"
+ +

Commands

+
Type / to issue commands
+
"/move to Doing"
+ +
Type @ to match people
+
"/assign to @jason"
+ +
Type # to match tags
+
"/tag this #design"
+ +

Tips

+
Combine for powerful actions
+
"/move to Doing and /assign to @jason"
+ +
Or use natural language
+
"Show cards added by Jason this month"