Commit Graph

116 Commits

Author SHA1 Message Date
Jorge Manrubia 969d971616 Use a more consistent approach to highligts dates 2025-10-06 15:17:28 +02:00
Jorge Manrubia 94b5e39281 Generate VCR fixtures
There is probably something to fix here
2025-09-30 06:40:17 +02:00
Jorge Manrubia 1bb8de8564 Fix tests 2025-09-29 13:13:40 +02:00
Jorge Manrubia 5a4cef98c9 Fix tests 2025-09-28 20:50:11 +02:00
Jorge Manrubia d16e0c942c Fix test and adjust prompts to reflect the column 2025-09-28 20:49:25 +02:00
Jorge Manrubia bfe0f5a68b Fix: missing highlights due to not interpreting timezones right 2025-09-23 13:38:25 +02:00
Jorge Manrubia b87a572f58 Fix VCR test 2025-09-16 12:30:23 +02:00
Jorge Manrubia 3d8437bd5f Truncate summaries to keep within API limits
https://fizzy.37signals.com/5986089/cards/1739
2025-09-15 16:14:29 +02:00
Jorge Manrubia 05ba0b703e Update VCR fixtures 2025-09-15 14:27:10 +02:00
Mike Dalessio 5c44a93172 Fix VCR cassettes for user highlights 2025-09-13 10:54:38 -04:00
Jorge Manrubia c386b42e07 Fix VCR fixtures 2025-09-12 19:01:10 +02:00
Jorge Manrubia ba3b782d21 Merge branch 'main' into watchers
* main:
  Fix add card not working in the cards screen
  Submit and refresh results as you type terms
  Fix: When expanding filters, submitting filters should keep the filters expanded
  Invalidate cache when filter changes
  Switch to gpt-5-chat
  Handle filter toggles with JS
  Prevent glitch where you see the filter bar expanded when you clear it
  Remove unused templates
  Fix: all collections link not working after moving to turbo frame
  Restore cache I deleted by mistake
  Speed up filter expansion with turbo stream
  Fix: filtering collections not working after moving menu to turbo frame
  Respect params when loading the menu or they won't be reflected!
  Add HTTP cache for the menu
  Load main menu lazily with a turbo frame
  Inline :has(&) as it's REALLY slow in Safari
  Extract helper method
  Remove transition that is making Safari choke when navigating to Fizzy menus
  Reduce page size to reduce load for processing local times on initial page load
  Avoid having to parse strings

# Conflicts:
#	app/views/cards/index/_add_card_button.html.erb
#	test/vcr_cassettes/period_highlight_test-test_don_t_generate_highlights_for_existing_periods.yml
#	test/vcr_cassettes/period_highlight_test-test_generate_period_highlights.yml
#	test/vcr_cassettes/user/highlights_test-test_don_t_generate_highlights_for_existing_periods.yml
#	test/vcr_cassettes/user/highlights_test-test_generate_weekly_highlights.yml
2025-09-12 18:52:17 +02:00
Jorge Manrubia eabce24415 Switch to gpt-5-chat
Cheaper and good enough

https://3.basecamp.com/2914079/buckets/37331921/todos/9041305517
2025-09-12 16:16:54 +02:00
Jason Zimdars d9d3e9f1a2 Update VCR for highlights tests
I don't see how this is related to my changes but it keeps failing
2025-09-11 22:32:04 -05:00
Jorge Manrubia 4e72566856 Flatten card resource
We only need the parent collection for creating cards. Carrying it in the
rest of actions is a hassle.
2025-09-10 11:24:23 +02:00
Jorge Manrubia c36420800e Fix test (and remove warning) 2025-09-09 12:12:22 +02:00
Jorge Manrubia e89749153f Fix VCR tests 2025-09-09 10:20:15 +02:00
Jorge Manrubia ebfc168266 Make sure it considers the week before if this is invoked on a sunday 2025-09-08 08:38:33 +02:00
Jorge Manrubia d13a9e01db Update VCR fixtures 2025-09-05 18:04:58 +02:00
Jorge Manrubia aad61b36bc Generate highlights in the user timezone, now that we persist it
Also, remove the dates and duration from the highlights records. Those are not relevant, only the events-derived
key is. If two users with different timezones have different activities, they should see different summaries.
2025-09-05 12:39:09 +02:00
Jason Zimdars 3814c17d49 Be defensive about unwanted elements it sometimes inserts 2025-09-04 12:52:01 -05:00
Jason Zimdars 53f06d2554 Adjust summary, style in newspaper format 2025-09-02 22:14:13 -05:00
Jorge Manrubia 0c979a41c5 Format 2025-09-02 11:12:33 +02:00
Jorge Manrubia 5b68750713 Generate weekly highlights instead of daily ones
https://3.basecamp.com/2914079/buckets/37331921/todos/9010176047
2025-09-01 16:01:19 +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
Stanko K.R. 84551d60de Re-record message response VCR cassette 2025-08-26 12:31:21 +02:00
Jason Zimdars 5cf119cbd1 Adjust prompt to force proper link construction; recognize people milestones and events 2025-08-18 10:00:16 -05:00
Jorge Manrubia fa82dc0384 Remove code related to Fizzy Do /command support and filtering
https://3.basecamp.com/2914079/buckets/37331921/messages/8961776532
2025-08-18 13:41:20 +02:00
Stanko Krtalić 9a02716a46 Merge pull request #857 from basecamp/fizzy-ask
Fizzy Ask
2025-08-15 08:40:28 +02:00
Jason Zimdars acfe89ca52 Update prompt to render links and use more casual language 2025-08-14 14:32:53 -05:00
Stanko K.R. a44cff5e15 Re-record VCR cassette 2025-08-13 15:14:12 +02:00
Stanko K.R. c1bd68d0e6 Add tests for OrderClause 2025-08-13 15:14:12 +02:00
Stanko K.R. db4415d6c7 Add tests for conversations and messages 2025-08-13 15:14:12 +02:00
Jason Zimdars e8dc14fda7 Simplify prompt, adjust styles to move away from bullet format 2025-08-11 18:03:48 -05:00
Jorge Manrubia 588f03e927 Remove insight experimental code
Also, downgrade LLM for commands to mini. It's much cheaper and I only upgraded because of the
interpretation complexities that the insight command introduced.

We are implementing a much better approach with Ask.
2025-08-11 13:40:56 +02:00
Jorge Manrubia 8addd4bd50 Remove comment 2025-08-11 12:42:31 +02:00
Jason Zimdars 9362b711d8 Adjust prompt 2025-08-05 16:02:11 -05:00
Jason Zimdars b30a329a1a Surface some fun user activity 2025-07-31 14:30:08 -05:00
Jason Zimdars 7d55069d88 Adjust prompt 2025-07-31 10:30:00 -05:00
Jason Zimdars b795a43d5c Simplify the prompt, try a top 5 points format 2025-07-30 18:14:37 -05:00
Jason Zimdars 0f3aa31943 Bold names, ensure summaries generate correctly structured collection links 2025-07-29 11:57:23 -05:00
Jason Zimdars 3479129721 Update prompt 2025-07-25 10:07:49 -05:00
Jorge Manrubia 539f83eaee Add VCR fixtures for test 2025-07-25 14:51:28 +02:00
Jorge Manrubia 711d9207ed Little refactor + missing test 2025-07-25 10:04:07 +02:00
Jorge Manrubia d5bedd812d Regenerate test's fixtures to see if that fixes it for JZ 2025-07-25 06:27:12 +02:00
Jorge Manrubia c128b07203 Add test 2025-07-24 17:47:42 +02:00
Jorge Manrubia 7de45cc061 Remove vcr_record! and fix VCR fixtures due to different timestamps 2025-07-24 16:48:06 +02:00
Jorge Manrubia e61ee25b47 Suite passing 2025-07-24 16:48:05 +02:00
Jorge Manrubia 5ad2d09eae Move the hack to fetch completed cards to the insight command logic
We need to rework this as part of the filters revamp. "indexed_by" being
a mix of filters keeps biting us.
2025-07-24 16:48:05 +02:00
Jorge Manrubia fc26329daf Restore default to open cards. Use special "all" value instead.
The change could have side effects (e.g: when running commands).

This also include further changes.
2025-07-24 16:48:04 +02:00