Commit Graph

61 Commits

Author SHA1 Message Date
Jason Zimdars 28a569c49b Tickets 2025-03-17 21:24:08 -05:00
Bruno Prieto bcda67e114 Div is not a valid parent for list of li elements 2025-03-13 21:25:26 +01:00
Bruno Prieto 4425e0d16a Hide bubbles for SR users for now 2025-03-13 21:24:30 +01:00
Kevin McConnell 16a80ff3a6 More dynamic activity scores
This introduces a more dynamic system of activity scoring, to improve
the way bubbles "bubble up" due to their activity. There are a few
different parts we can tune here, and it's likely we'll need to make
adjustments once we get a feel for how this works in practice.

The basic idea here is:

- We assign points for certain types of event that happen on a bubble. A
  boost gets 1 point, a comment gets 10 points, and so on.
- These points decay over time, at a rate of 50% per day. So old
  activity is worth much less than new activity. Bubbles should rise up
  quickly when acted upon, bit will float back down if left idle.
- Some comments can score higher than others: the first comment from
  each person on a bubble is worth more (20) because it signals that
  more people are getting involved; and comments that follow a comment
  by a different author are also worth more (15) because that signals
  there's ongoing conversation between people, not just a series of
  notes being left by one individual.

In terms of implementation, we persist the score on the bubble
whenever it changes, but we handle the decay on the client side. That
allows us to cache the bubble representation without having to
continually change it while its activity decays.

We also keep a separate `activity_score_order` attribute on the model.
This can be used to sort the bubbles in order of "most active", without
having to think about the decay.
2025-03-05 17:16:31 +00:00
Jason Zimdars 1d0562f905 Refactor 2025-02-21 10:44:40 -06:00
Jason Zimdars 410b754d69 Adjust navigation 2025-02-07 16:27:12 -06:00
Jason Zimdars 346ecc34af Projects -> Collections 2025-02-06 16:24:05 -06:00
Jason Zimdars 65f12378bb Smaller 2025-02-06 16:19:42 -06:00
Jason Zimdars c0f842427d Rework navigation 2025-02-05 17:14:05 -06:00
Kevin McConnell dfae90efb9 Only show own drafts on the bucket preview 2025-01-30 14:06:31 +00:00
Kevin McConnell 4c63f88620 Merge pull request #206 from basecamp/latest-activity
Latest activity
2025-01-28 17:43:06 +00:00
Kevin McConnell a0ed267bcf Only show active bubbles in home page card 2025-01-28 17:08:40 +00:00
Jason Zimdars 49866a121d Merge branch 'main' into latest-activity
* main:
  Don't round up in time distance expression
  Tidy Gemfile
  Banner for draft state
  Drafts should always use the dashed outline wherever they're displayed
  Unnecessary parens
  Use distance to nearest edge
  Simplify overlap logic
  Fix divider drag jankiness
  Use cache-friendly "time ago"
  positionedClass -> installedClass
  Pull out moveDividerTo
  Before comes before After
  DividerElement -> Divider
  Clean up divider-controller
  Drag bubble divider
2025-01-21 13:50:28 -06:00
Jason Zimdars 340ff19a8c Drafts should always use the dashed outline wherever they're displayed 2025-01-16 19:14:58 -06:00
Jason Zimdars 410cc95396 Stub out basic design 2025-01-15 17:16:59 -06:00
Jason Zimdars a596d7cea7 Cancel and go back for forms with autofocused inputs 2025-01-14 16:45:29 -06:00
Jason Zimdars 39ff31b14b esc to cancel here, too 2025-01-14 16:04:41 -06:00
Kevin McConnell febcb6c344 A partial is clearer than a helper here 2025-01-13 14:21:47 +00:00
Kevin McConnell 876083c697 Broadcast new notifications 2025-01-13 14:21:47 +00:00
Kevin McConnell fcce5b85e0 Show notifications on bucket index 2025-01-13 14:21:47 +00:00
Jose Farias 292b323ab9 Revising access shouldn't do a replace turbo-action 2024-12-16 11:36:11 -06:00
Jose Farias 4482a7e5e9 Pull out access_menu_tag 2024-12-13 14:59:31 -06:00
Jose Farias 4095eba266 Can't see bubbles in buckets you've lost access to 2024-12-13 14:37:19 -06:00
Jose Farias ce0577d3c1 Users can remove themselves from buckets 2024-12-13 14:07:48 -06:00
Jose Farias d7e5e0d236 Submit form when toggling all-access + caching 2024-12-12 20:14:09 -06:00
Jose Farias 065b73f889 Can't revoke access to all-access bucket 2024-12-12 19:08:36 -06:00
Jose Farias 59c66923f0 Implement all_access buckets 2024-12-10 19:46:40 -06:00
Jason Zimdars f8f320d76c Adjust position of settings buttons 2024-12-06 17:21:34 -06:00
Jason Zimdars 7456949791 Stub everyone switch 2024-11-19 20:20:15 -06:00
Jason Zimdars b19ca07aee Forget about the dividing line for now 2024-11-19 12:48:18 -06:00
Jason Zimdars ca7cccdb7c Add some structure to buckets index 2024-11-19 12:45:16 -06:00
Jason Zimdars c645e59314 Adjust form 2024-11-19 12:34:58 -06:00
Jason Zimdars dcd819d1ec Restore bucket settings link, adjust styles for filters 2024-11-19 12:32:20 -06:00
Jason Zimdars 5f6cc046b7 No need for inline svg here anymore 2024-11-19 12:30:23 -06:00
Jason Zimdars 939218aa58 Kind of hate that icon, let's try something else 2024-11-19 09:59:02 -06:00
Jose Farias 3d9d169477 Many-to-many relationship for filters and filterables 2024-11-05 21:21:46 -06:00
Jose Farias f2706d0f74 Unnest bubble filters 2024-11-05 13:04:05 -06:00
Jason Zimdars 5740a4be23 Tighten up users lists 2024-10-28 17:20:49 -05:00
Jose Farias 9eb07c559b Bucket views already filter for status 2024-10-25 15:28:23 -06:00
Jose Farias 2387abbe7c Merge branch 'main' into threadables
* main:
  Stub bookmark buttons
  Move delete to filters index
  Move edit to the index
2024-10-24 18:15:54 -06:00
Jose Farias cf22fb454a not_popped -> active 2024-10-23 18:32:27 -06:00
Jason Zimdars 78279cb191 Move delete to filters index 2024-10-23 16:16:04 -05:00
Jason Zimdars 17f744cf0f Move edit to the index 2024-10-23 16:09:47 -05:00
Jason Zimdars 128fc22eb1 Make it look like the filter 2024-10-21 16:39:39 -05:00
Jason Zimdars 6e5b71ea99 Make this a one-liner, no need for hierarchy 2024-10-21 16:03:41 -05:00
Jose Farias 09c003431e Pull out Bucket::BubbleFilter 2024-10-18 11:11:23 -06:00
Jose Farias e7cc426fdc Move bubble filtering to the model 2024-10-17 22:51:02 -06:00
Jose Farias 7e99aabaa1 Bucket::View update/delete 2024-10-17 17:34:31 -06:00
Jose Farias a891af85d6 Pull out path in view partial 2024-10-17 16:58:45 -06:00
Jose Farias 8fd28c3809 Remove unnecesary compact_blank 2024-10-16 17:10:48 -06:00