Commit Graph

116 Commits

Author SHA1 Message Date
Jason Zimdars 99af6b1e5c Don't navigate, activate the menu 2025-06-16 18:50:36 -05:00
Jorge Manrubia 50b20c4099 Make sure you can't drag drafts 2025-06-13 10:25:48 +02:00
Jorge Manrubia 303a3faea1 Merge pull request #607 from basecamp/drag-and-drop-cards
Drag and drop cards to move between doing/considering
2025-06-13 10:04:59 +02:00
Jorge Manrubia 69263766ec Make sure that only cards in do/considering are draggable
Not in complete, not in the event timeline
2025-06-13 10:02:31 +02:00
Jorge Manrubia f58aaadba5 Drag and drop cards to move between doing/considering 2025-06-12 11:57:53 +02:00
Andy Smith 4beeb60484 Closing cards on mobile 2025-06-11 11:42:36 -05:00
Jason Zimdars 319050fe94 Merge branch 'main' into public-collections
* main:
  Zoom background on perma
  Flip hover behavior between collection and perma
2025-06-10 10:47:36 -05:00
Jorge Manrubia e5f7d252fe Create dedicate templates for card previews
To remove links and customize as we need to
2025-06-10 10:17:19 +02:00
Jason Zimdars c7cc4fb286 Zoom background on perma 2025-06-09 16:30:12 -05:00
Jorge Manrubia 15d3c0e724 Simplify since the design is identical 2025-06-06 09:19:51 +02:00
Jorge Manrubia f742749b0f Tidy up controller and make sure the different targets are properly separated
If not, it wouldn't show stalled if there were entropy bubbles in the page
2025-06-06 09:15:51 +02:00
Jorge Manrubia 6287acf5ba Tidy up controller
Remove namespace "entropy" since the regions are common now
2025-06-06 09:04:42 +02:00
Jason Zimdars 9d706902e8 Style stalled bubble 2025-06-05 16:25:21 -05:00
Jorge Manrubia 19e27370fa Stimulus can't handle "null" JSON string 2025-06-05 11:10:09 +02:00
Jorge Manrubia fbe12014ab Format 2025-06-05 11:08:37 +02:00
Jorge Manrubia 6e8087ee2e Toggle entropy/stalled container in the bubbles controller 2025-06-05 11:08:20 +02:00
Jorge Manrubia 76119b17bd Entropy, not bubble! 2025-06-05 10:33:02 +02:00
Jorge Manrubia 22ed605884 Namespace bubble-related targets 2025-06-05 10:32:14 +02:00
Jorge Manrubia 2cbd451944 Group entropy options in an object value
We'll add stalling considerations next, this helps keeping things organized.
2025-06-05 10:28:33 +02:00
Jorge Manrubia 5dc33c304c Restore reminder period I replaced by mistake 2025-06-04 17:17:47 +02:00
Jorge Manrubia a6ffbf7ec6 Rename method 2025-06-04 14:56:19 +02:00
Jorge Manrubia db86d17880 Refactor to introduce an entropy model
Instead of keeping two tracks of similar logic (auto-reconsider / auto-close).
2025-06-04 14:40:02 +02:00
Jorge Manrubia e8249d2405 Consider the new default settings for previews 2025-06-04 13:13:45 +02: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 acfc7da551 Merge pull request #548 from basecamp/change-collection
Change collection
2025-06-03 08:56:00 -05:00
Jorge Manrubia c0cd5e1967 Merge pull request #566 from basecamp/fix-caching
Invalidate card caches when editing workflows
2025-06-02 18:09:52 +02:00
Jorge Manrubia 08c5abfbdb Extract common method to query when entropy is cleaned
We were always quering auto_close_at
https://37s.fizzy.37signals.com/collections/2/cards/743
2025-06-02 18:04:14 +02:00
Jason Zimdars 3ab0cb7422 Down arrow glyph 2025-06-02 10:02:27 -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
Jorge Manrubia 51dcf8b25f Invalidate card caches when editing workflows
https://37s.fizzy.37signals.com/collections/2/cards/607
2025-06-02 13:08:54 +02:00
Mike Dalessio 28ed744d0c refactor: Extract a Card::Entropy concern
to encompass behavior related to auto-closing and auto-reconsidering.

Note that putting this code in a single place reveals an asymmetry
between the actions:

- Auto-closing period is an optional attribute of a collection
- Auto-reconsidering period is hard-coded to 30 days for all collections
2025-06-01 16:50:12 -04:00
Andy Smith 68906321e8 Card shadow tweaks 2025-05-30 13:11:36 -05:00
Jason Zimdars c4ca5d34e4 Allow cards to be moved to another collection 2025-05-29 21:41:29 -05:00
Andy Smith c3c5b38b84 Finishing touches 2025-05-22 13:36:20 -05:00
Andy Smith f5dc923b43 Merge branch 'main' into tray-updates
* main:
  Tighten cards
  Stub recently closed filter
  Introduce a list style for all but the first six completed cards
2025-05-21 09:49:33 -05:00
Jason Zimdars f5e3e58be4 Tighten cards 2025-05-20 18:11:18 -05:00
Andy Smith 5a8da321fe Merge branch 'main' into tray-updates 2025-05-20 15:58:30 -05:00
Jason Zimdars e5f25b8d39 Introduce a list style for all but the first six completed cards 2025-05-20 15:43:24 -05:00
Andy Smith 04d01d7d10 Merge notification styles into a card variant 2025-05-20 13:50:53 -05:00
Andy Smith 900fbef686 Add card header to notifications 2025-05-19 15:20:56 -05:00
Andy Smith 8077e85019 Consolidate a few styles for card headers 2025-05-19 14:41:26 -05:00
Mike Dalessio 1d11f31fba Only render bubbles for cards in auto-closing collections 2025-05-16 10:46:04 -04:00
Mike Dalessio dddb33b483 Use a view helper to remove branching from the bubbles controller 2025-05-16 10:32:28 -04:00
Mike Dalessio 388fe2de73 Introduce a stimulus controller for bubbles
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
2025-05-16 10:27:00 -04:00
Andy Smith e7495046d9 Update label to "Falls back" 2025-05-15 09:49:54 -05:00
Andy Smith 15e3802a33 Add basic rules for reconsider bubble 2025-05-14 15:25:17 -05:00
Andy Smith 95298d4fce Stub out considering bubble 2025-05-14 14:53:09 -05:00
Andy Smith d568a7ff13 Create space for bubbles in containers 2025-05-14 14:39:33 -05:00
Mike Dalessio b859c26125 Render the "last active at" timestamp in the card meta
because this is what the "closing soon" bubbles et al are triggered on.
2025-05-12 15:49:13 -04:00
Jason Zimdars ebba9a11fb Merge branch 'main' into jz-5-8-25
* main:
  Fix the flashing notif tray
  Remove unused var
  Update bubble text when 0 days
  More yellow, less orange
  Don't run solid queue in dev by default
  Add more gold to the golden cards
  Remove outlined letters, only use mono for date
  Tweak stroke values for legibility
  Try monospace font
  Text stroke outlines
2025-05-08 17:26:46 -05:00