Commit Graph

441 Commits

Author SHA1 Message Date
Jason Zimdars bd5d17ff26 Clear indexed_by, too 2025-06-05 16:56:26 -05:00
Jorge Manrubia 7c657a2bd9 Support stalled filtering 2025-06-05 12:07:55 +02:00
Jorge Manrubia c52e49ef91 Merge branch 'main' into stalled-cards
* main: (33 commits)
  Rename helpers since they are not related to collections only anymore
  Simplify
  Reorder method
  Update brakeman
  Fix tests after removing the index action
  Format
  Extract partials
  Format
  Tidy up code
  We're not using this right now
  Wire up knob UI design
  Contain images
  Extract the header so we can explain in context
  Display users and invite on `account/settings`
  Link to workflows
  Link to account settings
  Update to use two-column layout, add title and nav
  Add comment
  Properly parameterize the field name
  Remove leftover console.log
  ...
2025-06-05 10:09:12 +02:00
Jorge Manrubia 540254def4 Fix tests after removing the index action
The show action makes more sense in the controller. Also, the filter
scoped was failing due to Rails raising on missing actions (because we
have deleted the index action). Inlining the concern fixes it and clarifies
where this action is implemented.
2025-06-05 09:12:07 +02:00
Jason Zimdars 6eece93f10 Merge branch 'knobs' into entropy-settings-ui
* knobs:
  Add comment
  Properly parameterize the field name
  Remove leftover console.log
  Correct the reserved area math
  Better a11y
  Connect the range slider
  Basic radio input working
  Expose button so you can delete drafts
  Save button should match card color
  `x` interferes with string entry, try `SHIFT+ENTER` to toggle checkboxes
  Remove unnecessary param and update condition
2025-06-04 20:34:04 -05:00
Jason Zimdars 638bc16b4b Display users and invite on account/settings 2025-06-04 15:16:24 -05:00
Jorge Manrubia 84fdeb4a5e Track events when reopening cards 2025-06-04 17:18:01 +02:00
Jorge Manrubia dd78ec2db2 Shortcut to grab the default entropy configuration 2025-06-04 12:56:11 +02:00
Jorge Manrubia 3c61fc3cdf Add screen to edit account settings to tweak default entropy configuration 2025-06-04 11:25:10 +02:00
Jorge Manrubia 91787a3523 Revamp entropy configuraiton
- Move both settings to its dedicated model entropy configuration
- A collection can have an entropy configuration, or will default to the account if not
2025-06-04 10:41:08 +02:00
Jason Zimdars b942794d15 Remove unnecessary param and update condition
This should have been removed in #581 when this was moved to a separate controller
2025-06-03 16:18:51 -05:00
Jason Zimdars ff403021cc Wire-up keyboard navigation
- Introduces a distinct controller and individual forms for each option so they behave like other pop-ups
- Adds `filter` and `navigable-list` behaviors
2025-06-03 11:05:39 -05:00
Jason Zimdars 902a99ca56 Merge branch 'main' into change-collection
* main: (25 commits)
  Add controller to retarget links
  Use more complete regexp
  dep: bundle update
  refactor: Extract a Card::Entropy concern
  Autolink emails and URLs at rendering time
  Remove the "mirror" storage service
  Update production storage to write to the Pure blob store
  Clean up the purestorage config, and add explanatory comments.
  Drop the action_text_markdowns table
  Mount mission control under `/admin/jobs`
  dep: add mission_control-jobs
  Flip the storage mirror to write to Pure as the primary
  Production mirrors Active Storage to `:purestorage`
  Make sure Sentry is configured for the beta env.
  Update lexical
  update lexical
  update lexical
  Create a distinct "beta" environment
  Revert "Patch for cards missing description"
  Add a kamal "ssh" alias
  ...
2025-06-02 09:34:01 -05:00
Mike Dalessio 704e215eca Production mirrors Active Storage to :purestorage
Also include a script to copy existing blobs to Pure.

Local is still the primary.

Beta will keep using local disk service for Active Storage because I
think there are constraints on source IPs for the Pure cluster.
2025-05-31 14:37:35 -04:00
Jason Zimdars c4ca5d34e4 Allow cards to be moved to another collection 2025-05-29 21:41:29 -05:00
Jason Zimdars d17134cb5c Detect platform and label the correct hotkey shortcut
Yes, Platform Agent is overkill for just this but there isn't a one-size JS solution for updating both input placeholders and other HTML text and we're likely to need it later for other things like displaying platform-specific PWA prompts.
2025-05-27 12:14:24 -05:00
Jason Zimdars 6ec0618211 Accidental 2025-05-22 16:21:04 -05:00
Jason Zimdars 7ee65608c9 Show user's activity right on their profile screen 2025-05-22 16:18:28 -05:00
Jorge Manrubia 09f5efc100 Reflect new commands in the history 2025-05-16 13:29:18 +02:00
Jorge Manrubia d49f503af8 Don't redirect if not needed 2025-05-16 13:29:18 +02:00
Jorge Manrubia 2510c1e0ac Major rework of the command/ai abstractions
- Big simplification of the overall workflow.
- Composite commands store their commands properly, these are undoable now.
- Child commands are excluded from history
2025-05-16 13:29:18 +02:00
Jorge Manrubia 0ff984dddd Handle errors in composite commands 2025-05-16 13:29:18 +02:00
Jorge Manrubia f2c80726a3 Handle redirecting in commands that require no confirmation 2025-05-16 13:29:18 +02:00
Jorge Manrubia 9b8ebf09ef Showing insights with a better foundation 2025-05-16 13:29:18 +02:00
Jorge Manrubia cd53ef59eb Better foundation for chat responses 2025-05-16 13:29:18 +02:00
Jorge Manrubia 413dfce5aa PoC running commands 2025-05-16 13:29:18 +02:00
Jorge Manrubia b7ee0b284d Chat responses 2025-05-16 13:29:18 +02:00
Jason Zimdars 0a500612da Just set the clear filter so restore_collections_filter_from_cookie can do the right thing 2025-05-13 08:24:48 -05:00
Jason Zimdars 368ae5ce6a Handle case where no params are sent because nothing is checked 2025-05-12 22:23:16 -05:00
Mike Dalessio 7dee9ed9d6 Log the authenticated user
to help track down issues reported by individuals in the logs
2025-05-07 17:13:25 -04:00
Jorge Manrubia 9c1185055e Instead of removing uncofirmed commands don't create them in the first place 2025-05-07 14:47:15 +02:00
Jorge Manrubia b017a3fd67 Destroy unconfirmed commands so that they don't end up in the user history 2025-05-07 14:43:11 +02:00
Jorge Manrubia 837de05baa Format 2025-05-07 13:54:22 +02:00
Jorge Manrubia 6d0855da28 Format 2025-05-07 13:50:58 +02:00
Jorge Manrubia 189c7e4a87 Serve the last commands in reverse order so that the most recent one is just above 2025-05-07 12:07:13 +02:00
Jorge Manrubia 8697cabbe2 Show confirmation when submitting certain commands
https://3.basecamp.com/2914079/buckets/37331921/todos/8617430347
2025-05-07 10:20:32 +02:00
Jorge Manrubia 55ea460d3e Handle form errors with a stimulus class
We need to keep the focus in place when submitting the form. We are using a data-turbo-permanent for that. We were rendering the error form with a turbo stream. The problem was that turbo streams ignore permanent elements as per this https://github.com/hotwired/turbo/pull/688, so the system wasn't updating the input field as expected.

Handling this as the stimulus level will also help with managing additional error states (such as the one we need for confirmations).
2025-05-07 08:46:47 +02:00
Jorge Manrubia d7164356f1 Format 2025-05-06 11:20:04 +02:00
Jorge Manrubia 0ef83740f7 Format 2025-05-06 11:10:53 +02:00
Jorge Manrubia d510cbd92e Not used 2025-05-06 11:09:07 +02:00
Jorge Manrubia 712b4157bb Extract undo! method that undoes and destroys 2025-05-06 10:49:46 +02:00
Jorge Manrubia 8ad3461d1b Keep focus on error 2025-05-06 10:16:38 +02:00
Jorge Manrubia 0bdbcbf156 Highlight errors 2025-05-06 09:56:12 +02:00
Jorge Manrubia 3e8896ef93 Undo working for assignments 2025-05-06 09:25:52 +02:00
Jorge Manrubia 7a51e13d7c Remove old code 2025-05-06 08:56:56 +02:00
Jorge Manrubia 9d7459f865 Show recent commands 2025-05-06 08:54:58 +02:00
Jorge Manrubia 75558d0056 Move user assignment and validation to the controller 2025-05-06 07:18:27 +02:00
Jorge Manrubia dc4834cb93 Validate commands 2025-05-06 06:55:51 +02:00
Jorge Manrubia 72ffcfac8b Assignments working 2025-05-06 06:45:37 +02:00
Jorge Manrubia 65d809dd8d Basic models for Fizzy do and searches working with them 2025-05-06 06:42:33 +02:00