Commit Graph

3495 Commits

Author SHA1 Message Date
Jorge Manrubia 8f1a6852fa Preferred form of passing the tenant slug 2025-08-28 18:09:13 +02:00
Jorge Manrubia c2fe32cdfc Fix email 2025-08-28 17:59:13 +02:00
Jorge Manrubia 02c538bbb7 Run for each tenant 2025-08-28 17:38:52 +02:00
Jorge Manrubia 5fe66dd602 Fix job class 2025-08-28 17:37:35 +02:00
Jorge Manrubia 5c890bbc34 Bundle every few hours by default 2025-08-28 17:08:22 +02:00
Jorge Manrubia e4ab1366be Add unsubscribe links and headers for emails
https://3.basecamp.com/2914079/buckets/37331921/todos/9002504172
2025-08-28 16:59:24 +02:00
Jorge Manrubia 243779dbcf Copy 2025-08-28 13:07:27 +02:00
Jorge Manrubia 960f074b3f Don't bundle new notifications is bundling is disabled 2025-08-28 12:53:19 +02:00
Jorge Manrubia 4e2717a61f Merge main into bundle-emails branch 2025-08-28 12:42:43 +02:00
Jorge Manrubia c1c359f030 Review existing bundles when changing the pending bundles 2025-08-28 12:29:40 +02:00
Jorge Manrubia 2adb4571e1 Copy 2025-08-28 12:03:49 +02:00
Jorge Manrubia fb95c8aa92 Copy 2025-08-28 12:02:12 +02:00
Jorge Manrubia 53144a379c Add option to change the bundled email notification frequency 2025-08-28 11:56:40 +02:00
Jorge Manrubia 082a10e3d0 Add notification settings model 2025-08-28 11:20:28 +02:00
Stanko Krtalić 41edfae2b5 Alphabetically order concerns (#992) 2025-08-28 11:07:56 +02:00
Jorge Manrubia 169bf490eb Leverage existing polymorphic routes 2025-08-28 10:34:36 +02:00
Jason Zimdars ff130401b1 Copy 2025-08-27 19:03:58 -05:00
Jason Zimdars 2cb98a2e31 Don't show the filter if there aren't any tags 2025-08-27 18:56:06 -05:00
Jason Zimdars f54ee090b8 Add clearer labels for sorting options 2025-08-27 18:49:51 -05:00
Jason Zimdars 65c61c4bab Rename engagement columns 2025-08-27 13:48:36 -05:00
Andy Smith d4f048df9b Fix timestamp alignment on pinned cards 2025-08-27 11:37:09 -05:00
Jason Zimdars eff5185a17 Stub unsubscribe footer 2025-08-27 11:32:16 -05:00
Jason Zimdars 2fb3e192b8 Need to url for collection/card/comment
@jorgemanrubia for some reason `url_for` is not including the host in
here. It seems to be correctly set in the environment configs
2025-08-27 10:55:12 -05:00
Jason Zimdars a106069b7e Link to index 2025-08-27 10:42:12 -05:00
Jason Zimdars adc91b9823 Can just put this in the header 2025-08-27 10:42:02 -05:00
Jason Zimdars e3f5348865 Plain text layout and spacing, squish whitespace to remove action text junk 2025-08-27 10:41:30 -05:00
Jason Zimdars 16d2cd4836 Allow a few more more words 2025-08-27 10:40:36 -05:00
Jason Zimdars 9710be65d2 Smaller avatars, aligned to the top of the title 2025-08-27 10:39:14 -05:00
Jorge Manrubia 93c9855a05 Use URL so that the helper works from emails 2025-08-27 16:52:05 +02:00
Jorge Manrubia ccceeb1699 Add method for delivery job 2025-08-27 15:48:27 +02:00
Jorge Manrubia 80e37bef36 Separate method with two outputs into two 2025-08-27 14:32:13 +02:00
Jorge Manrubia 744faf12c0 Extract "response cost" object to unify calculations around LLM usage costs 2025-08-27 13:18:41 +02:00
Jorge Manrubia 0a32cfd611 Add newline to separate 2025-08-27 12:06:21 +02:00
Jorge Manrubia d9a19a85b1 Add text templates counterparts for the bundle mailer 2025-08-27 12:03:51 +02:00
Jorge Manrubia 13d053d285 Flatten dirs 2025-08-27 11:57:01 +02:00
Jorge Manrubia 1b608ab67b Fix link source 2025-08-27 11:53:49 +02:00
Jorge Manrubia 75a830e9b3 Link to the event/notification source directly
E.g: link to comments
2025-08-27 11:46:48 +02:00
Jorge Manrubia 30d8848057 Move mailer templates to the mailers root 2025-08-27 11:44:11 +02:00
Jorge Manrubia 45d3bb4b3e Set current tenant in mailers 2025-08-27 11:30:08 +02:00
Jorge Manrubia e696c69d60 Merge branch 'main' into bundle-emails 2025-08-27 10:17:32 +02:00
Jorge Manrubia 81d6df3616 Remove comments from card prompts
We don't use to_prompt to generate AI responses anymore, only for events. Grabbing
all the comments don't make as much sense, and I'm sure it is quite expensive
2025-08-27 09:56:13 +02:00
Jorge Manrubia d2dbbe8651 Merge pull request #978 from basecamp/summary-costs
Track costs of generating AI summaries
2025-08-27 09:43:17 +02:00
Jorge Manrubia 0eea4f003c Remove unnecessary guards 2025-08-27 09:41:47 +02:00
Jorge Manrubia 853a75a54f Rename "cost_microcents" => "cost_in_microcents" 2025-08-27 09:38:23 +02:00
Stanko Krtalić 0f467be316 Make Fizzy Ask respond with an error message when a response fails to generate (#975) 2025-08-27 08:59:27 +02:00
Jason Zimdars a1529cadd2 First pass at email styles 2025-08-26 20:56:32 -05:00
Andy Smith 4fb6e365db Merge branch 'main' into combobox-a11y
* main: (26 commits)
  Center figure attachments and use normal size for Save Changes button
  Re-record message response VCR cassette
  Improve link rendering
  Give Fizzy Ask context about who it's talking to
  Show only published cards to Fizzy Ask
  Remove unique index
  Update to latest lexxy (merged renamed branch)
  Fix lexxy events prefix
  Rename Action Text Lexical => Lexxy
  Ensure empty/new transcript isn't narrow
  Source order
  We need this for the events index
  Safari apparently doesn't apply `position` in its internal stylesheet
  Don't allow the pattern to show through buttons
  Button is now in the column, merge fix
  Style tweaks to bar placeholder
  Any press of `esc` should close the dialog
  Copy
  Fix type mismatch
  Make the quota error message friendlier
  ...
2025-08-26 16:11:33 -05:00
Andy Smith 958315acc0 Center figure attachments and use normal size for Save Changes button 2025-08-26 15:27:57 -05:00
Jorge Manrubia 47fb35948b It does not make sense to differentiate unread notifications 2025-08-26 18:15:08 +02:00
Jorge Manrubia d99a835184 Format 2025-08-26 17:41:04 +02:00