Commit Graph

315 Commits

Author SHA1 Message Date
Kevin McConnell bc5e32e737 Only "published" notifies collection subscribers
The other notifications are only sent to the watchers of the bubble.
2025-03-18 17:46:57 +00:00
Jason Zimdars 28a569c49b Tickets 2025-03-17 21:24:08 -05:00
Jason Zimdars e53052b7e7 Fix visual button regression
`.for-screen-reader` has specific behavior inside `.btn` that makes it unsuitable for use on form elements. This fix adds a second, functionally identical, class `visually-hidden` for those cases. Later we can figure out a way to make it clear when to use which.
2025-03-14 09:58:50 -05:00
Bruno Prieto 7354e74432 Improve bubble readability for screen readers 2025-03-14 01:35:40 +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 65ceb3c5f0 Tighten-up headings so they look good when they wrap to two lines (rare) 2025-03-03 09:04:37 -07:00
Kevin McConnell e7da0d5327 Merge pull request #276 from basecamp/autosave-comments
Autosave comments
2025-02-28 15:30:21 +00:00
Kevin McConnell 5d1206e067 remote-auto-save -> outlet-auto-save 2025-02-28 15:15:09 +00:00
Kevin McConnell a7cde91a10 Don't save draft comment to local storage
Since we already save this to the database, along with the title.
2025-02-28 14:50:26 +00:00
Jason Zimdars ed08b85c25 Fix that remote-auto-save loses markdown formatting by using local autosave 2025-02-26 17:48:02 -06:00
Jason Zimdars cf5ddbbb78 Style watchers block 2025-02-26 16:47:48 -06:00
Kevin McConnell 6157d8b4bd Start watching when participating on a bubble
If you're added as an assignee, or if you comment, then your watching
preference will be toggled on.
2025-02-26 10:53:03 +00:00
Kevin McConnell 694783e5f3 Allow toggling watch preference
We use a true/false preference so we can tell the difference between
disabling the watch vs never having the watch. This is so we can toggle
off and on the preferences for a container (like the bucket) without
losing any bubble-specific preferences.
2025-02-26 10:53:03 +00:00
Jason Zimdars 1d0562f905 Refactor 2025-02-21 10:44:40 -06:00
Jason Zimdars 1fde270b18 Restore back shortcut 2025-02-19 16:05:48 -06:00
Jason Zimdars 0fc85f11a5 Need splat for list items, don't wiggle popped on hover 2025-02-19 13:20:42 -06:00
Jason Zimdars 18707300d4 Try a lighter bubble style and bring back splats for popped 2025-02-18 19:02:00 -06:00
Jason Zimdars 0258f09dd8 When you click a tag, include the bucket scope 2025-02-14 11:56:05 -06:00
Jason Zimdars b54103cdef Sort case insenstive 2025-02-14 11:18:24 -06:00
Jason Zimdars 5313394f18 Just display the names 2025-02-14 10:43:48 -06:00
Jason Zimdars 3e5b531d12 Extract into a single-purpose controller 2025-02-13 17:40:18 -06:00
Jason Zimdars ddfaf8bf33 Paste files in the new editor 2025-02-13 17:04:43 -06:00
Jason Zimdars 7544560e05 Add some constraints to the filter menu so the buttons are always visible 2025-02-13 16:38:56 -06:00
Jason Zimdars bba3794454 Attribute is on the wrong element 2025-02-13 16:16:25 -06:00
Jason Zimdars 68bb5a5e6a Styles for comment input 2025-02-13 10:18:41 -06:00
Kevin McConnell cd9fce9b89 Add auto-save to the draft comment field 2025-02-13 15:16:42 +00:00
Kevin McConnell 85749687f7 Associate the draft comment with the bubble form 2025-02-13 15:05:04 +00:00
Jason Zimdars 946f387e7c Missed this one 2025-02-12 17:27:44 -06:00
Jason Zimdars e16d7f1138 Polish bubble title inputs for WYSIWYG 2025-02-12 17:25:46 -06:00
Jason Zimdars c2112735f8 Try a simpler popped treatment, consistency for small bubbles 2025-02-12 15:54:38 -06:00
Jason Zimdars e5e8f321df Make these sticky 2025-02-12 13:37:03 -06:00
Jason Zimdars ff8a2b56b3 Burst effect for popped bubbles 2025-02-12 13:10:58 -06:00
Jason Zimdars 1b309c8e45 Center title 2025-02-12 10:09:42 -06:00
Kevin McConnell dac2611c57 Auto-pop bubbles 2025-02-12 13:20:05 +00:00
Jason Zimdars 0c57f9cdc5 Polish draft/post UI 2025-02-11 21:48:33 -06:00
Kevin McConnell ce30959bbb Only prompt to recover when creating 2025-02-11 15:24:29 +00:00
Kevin McConnell c65da021dc Don't create history when restore abandoned bubble 2025-02-11 14:34:39 +00:00
Kevin McConnell 4121f68f7d Auto-save edits to bubble title 2025-02-11 14:34:39 +00:00
Kevin McConnell fd1556b298 Decision can belong to subsequently created bubble 2025-02-11 14:34:39 +00:00
Kevin McConnell bb5c767111 Recover recently-deleted bubbles 2025-02-11 14:34:39 +00:00
Kevin McConnell cc3e147e85 When creating, put a form in the bubble title area 2025-02-11 14:34:39 +00:00
Kevin McConnell 334b545fd8 Wire up the publish button properly 2025-02-11 14:34:39 +00:00
Kevin McConnell 70f7f100a9 Add publish/draft/cancel buttons to form 2025-02-11 14:34:39 +00:00
Kevin McConnell 321384b573 Replace "editing" param with creating? state 2025-02-11 14:34:39 +00:00
Jason Zimdars 5107071315 Clean up assignment and tag menus 2025-02-10 17:45:23 -06:00
Jason Zimdars 8ee1e670f9 Remove Hotwire Combobox, adjust related styles 2025-02-10 17:01:42 -06:00
Jason Zimdars e3cdd863e1 Clearer label 2025-02-10 16:17:48 -06:00
Jason Zimdars fe4a024015 Sort alphabetically 2025-02-10 16:13:39 -06:00
Jason Zimdars 0956917546 Display the number of comments on bubbles 2025-02-07 16:44:43 -06:00
Jason Zimdars 410b754d69 Adjust navigation 2025-02-07 16:27:12 -06:00