The problem was that after redirecting back with morphing, the autosave mechanism
would trigger an autosave call with an empty content.
This is a first patch. The editor shouldn't be triggering these "change" events
in the first place when loading the editor.
* main:
Don't choke when rendering commands where the card was deleted
Update tests
Rework system events
test: add missing assertions
dep: bump active_record-tenanted to fix URI support
Remove hyphen from "Un-do"
Prevent default when handling keyboard shortcuts
dep: update AR::Tenanted to support database URIs
Detect platform and label the correct hotkey shortcut
Things got too tight
Don't require TLS for Beamer at the moment
dep: update dependencies
# Conflicts:
# Gemfile
# Gemfile.lock
# app/assets/stylesheets/comments.css
Without this, any default action would still happen. With Chrome on
Linux, that causes browser features to be triggered with our CTRL+J and
CTRL+K actions.
The "closing soon" bubbles were introduced in #406, and the "falling
back" bubbles in #500. However, these bubbles are part of the cached
card and so as time passes, the relative time doesn't change unless
the card is touched.
This PR introduces a stimulus controller for bubbles, which takes care
of:
- making the bubble visible during the reminder period
- calculating the relative number of days until entropy kicks in
- rendering appropriate text around the day count
ref: https://37s.fizzy.37signals.com/collections/693169850/cards/999009091
- Big simplification of the overall workflow.
- Composite commands store their commands properly, these are undoable now.
- Child commands are excluded from history
It also handles auto selecting when an element is focus. E.g: if you tabulate to the next control in the navigable list, you want selection to update accordingly.
* main: (29 commits)
Ensure that a "reconsidered" card gets an updated timestamp
Try a fresh activity design
Log the authenticated user
Remove leading space when avatar is hidden on pinned cards
Display card number in notifications and events
Ensure that cards with an empty title aren't mysterious in notifs
bin/dev ensures puma runs solid queue
Adjust selection color to feel more terminal-y
Eliminate double-tab behavior
Clear error state when you start editing
Color terminal text on error
Don't indicate spelling errors
The command is lowercase
Remind 7 days before, not 30
Make the icon square
Subtler bubble styles
Variable bubble shapes
Bubble CSS
Rename 'badge' to 'bubble'
Address PR feedback
...
# Conflicts:
# app/javascript/controllers/terminal_controller.js
# app/views/commands/_form.html.erb