Commit Graph

2171 Commits

Author SHA1 Message Date
David Heinemeier Hansson b5d6d40462 Use domain language termn 2025-04-17 13:42:23 +02:00
David Heinemeier Hansson bf99da8914 Style 2025-04-17 13:33:45 +02:00
David Heinemeier Hansson a5de4863fa Allow for multiple notifications to be read
cc @kevinmcconnell
2025-04-17 11:39:37 +02:00
Kevin McConnell 6c8fe164b3 Read a card should dismiss all notifications
Previous code assumed that there was a single notification to dismiss
for that card, but in practice there can be zero or many. If it's zero,
we need to avoid the crash. If it's many, we should dismiss them all.

Also re-rendering the notification stack after dismissing enables us to
remove all the removed cards, as well as reveal any older ones that were
previously outside the visible page size.

This reverts commit 6135909b7e.
2025-04-17 09:40:59 +01:00
Jason Zimdars 68d1c3cce5 Merge branch 'main' into add-card-description
* main:
  Fix close card notch state
  Add fizzy-app-102 as a replica
2025-04-16 19:09:45 -05:00
Jason Zimdars 94ccbdb601 Fix close card notch state 2025-04-16 19:06:18 -05:00
Jason Zimdars 7b3b5c471b Add a description filed for cards 2025-04-16 18:53:26 -05:00
Jason Zimdars b5090c4b21 Copy edit 2025-04-16 10:39:24 -05:00
Jason Zimdars 00dd312cd6 Change alignment 2025-04-16 10:39:24 -05:00
Jason Zimdars beae3d9a6b Clearer assignment icon 2025-04-16 10:39:24 -05:00
Jason Zimdars 5c4c06d74c No longer used 2025-04-16 10:39:24 -05:00
Andy Smith 5eccad2659 Pluralize "Day" 2025-04-16 10:23:58 -05:00
David Heinemeier Hansson 7c5a58bf4d Note that this need to be able to dynamically appear 2025-04-16 17:12:31 +02:00
David Heinemeier Hansson 00cbe8101c Slim it down 2025-04-16 17:07:43 +02:00
David Heinemeier Hansson cfa2f2d1f9 Trailing spaces 2025-04-16 17:02:48 +02:00
David Heinemeier Hansson 5ce289642f Rely on caching of notifications 2025-04-16 16:57:54 +02:00
David Heinemeier Hansson 6135909b7e Card readings just need to remove the notification
No need to broadcast everything again
2025-04-16 16:51:18 +02:00
David Heinemeier Hansson ac3307ee23 Allow for the footer frames to be hidden on the notifications page
Otherwise you will have multiple notification dom elements with the same
id.
2025-04-16 16:23:05 +02:00
David Heinemeier Hansson 158b694d31 Simplify the containers
Need to use CSS to hide headings in empty containers
2025-04-16 16:22:36 +02:00
David Heinemeier Hansson f9952e0fd6 Style 2025-04-16 15:57:02 +02:00
David Heinemeier Hansson 13c44ba650 Actually need it for the lazy load of course 2025-04-16 12:00:54 +02:00
David Heinemeier Hansson 980345d176 Drop the frame, we will do it with streams 2025-04-16 12:00:11 +02:00
David Heinemeier Hansson 3fc34257c4 No longer used 2025-04-16 11:59:58 +02:00
Andy Smith f1dbe1bcaf Better prop names 2025-04-15 13:26:41 -05:00
Andy Smith ad80aee38e Stub out working auto close reminder 2025-04-15 13:15:29 -05:00
David Heinemeier Hansson 73f272f132 Use one controller for all notification readings 2025-04-15 19:14:50 +02:00
David Heinemeier Hansson ac65f39c0d Inline anemic partial 2025-04-15 16:32:56 +02:00
David Heinemeier Hansson 2ace519d91 There is only one account, so just check join code directly 2025-04-15 15:35:10 +02:00
Andy Smith ff6464ffef Stub out closing soon badge 2025-04-14 17:02:50 -05:00
Andy Smith a88264ed0a Merge branch 'main' into consolidate-cards
* main: (94 commits)
  Source order seems to be significant
  Use `card.title`
  Nicer flow
  Fix string interpolation
  Fix constant
  Use record lookup
  Always use sole
  Explained less and extracted nothing of value
  Weird double negative
  Remove anemic and indirect method that explained nothing
  Can use record lookup for workflows
  Access control has already been done through the card
  Style
  Use _path in all cases where we are not potentially changing the domain
  Clearer
  Spacing
  Get rid of card_title
  Join the two users controllers but split out role setting
  Ensure user is returned
  We are not using the parameter
  ...
2025-04-14 09:40:22 -05:00
David Heinemeier Hansson 5b524254b9 Merge pull request #403 from basecamp/commit-to-single-account
The tenanted db is the account scope
2025-04-13 07:58:12 +02:00
David Heinemeier Hansson cf93da6886 Get rid of card_title
We can just set untitled on assignment of empty
2025-04-12 21:29:56 +02:00
David Heinemeier Hansson a106b1b6a7 Join the two users controllers but split out role setting 2025-04-12 20:30:47 +02:00
David Heinemeier Hansson 6bbf68a4f9 The tenanted db is the account scope 2025-04-12 20:06:34 +02:00
David Heinemeier Hansson 760cbb6c99 Drop boosts
Killed by design.
2025-04-12 18:52:54 +02:00
David Heinemeier Hansson 9359cac330 Style 2025-04-12 11:24:02 +02:00
David Heinemeier Hansson b2b9c99745 Style 2025-04-12 11:23:48 +02:00
David Heinemeier Hansson b8c3ac8145 Cache busting should happen as a comment in the partial, not as an actual key component 2025-04-12 11:22:31 +02:00
David Heinemeier Hansson 6f3ac772ea Merge branch 'main' into comments-refactoring
* main:
  Show more of the summary before truncating
  Improve event summaries
  Add this for debugging empty event cards
  Some actions shouldn't be available to closed cards
  Nicer spacing when the large button isn't present
  Update `card-color` in a couple more places
  Don't show the engagement toggle on closed cards
  Show more of the summary before truncating
  Improve event summaries
  Remove shadows from notifications you can't see
  Add this for debugging empty event cards
  Some actions shouldn't be available to closed cards
  Nicer spacing when the large button isn't present
  Update `card-color` in a couple more places
  Don't show the engagement toggle on closed cards
  Style drafted cards
  Considering needs to include drafted cards or you'll never be able to see them
  This item makes no sense until it's saved
  Tighten engagement switch design, only display it for published cards
2025-04-12 09:56:28 +02:00
Andy Smith 019c16b3e3 Fix issues after merge 2025-04-11 16:09:44 -05:00
Andy Smith 11ecc5d489 Merge in latest from main 2025-04-11 15:39:07 -05:00
Andy Smith 75a46356cc Merge branch 'main' into consolidate-cards
* main:
  Show more of the summary before truncating
  Improve event summaries
  Add this for debugging empty event cards
  Some actions shouldn't be available to closed cards
  Nicer spacing when the large button isn't present
  Update `card-color` in a couple more places
  Don't show the engagement toggle on closed cards
  Show more of the summary before truncating
  Improve event summaries
  Remove shadows from notifications you can't see
  Add this for debugging empty event cards
  Some actions shouldn't be available to closed cards
  Nicer spacing when the large button isn't present
  Update `card-color` in a couple more places
  Don't show the engagement toggle on closed cards
2025-04-11 15:38:57 -05:00
Jason Zimdars 5e608d33e1 Add this for debugging empty event cards 2025-04-11 13:21:47 -05:00
Jason Zimdars d3584adf35 Some actions shouldn't be available to closed cards 2025-04-11 13:21:47 -05:00
Jason Zimdars 89f76a080a Nicer spacing when the large button isn't present 2025-04-11 13:21:47 -05:00
Jason Zimdars c5fc847372 Update card-color in a couple more places 2025-04-11 13:21:47 -05:00
Jason Zimdars a76488fd49 Don't show the engagement toggle on closed cards 2025-04-11 13:21:47 -05:00
Andy Smith d678ce1f60 Cleanup after merge 2025-04-11 12:43:16 -05:00
Andy Smith c853d3c570 Merge branch 'main' into consolidate-cards
* main: (31 commits)
  Style drafted cards
  Considering needs to include drafted cards or you'll never be able to see them
  This item makes no sense until it's saved
  Tighten engagement switch design, only display it for published cards
  Needed to come first
  In order of appearance
  Schema movement -- is this because the dumper doesnt sort deterministically? cc @flavorjones
  Move comments under cards
  Fix indention
  Refresh timers when morphing happens
  Extract helper for card articles, use classes to determine when to show golden status
  Only consider golden those cards in "doing"
  Fix recently completed order for good!
  Place recently closed cards first
  Monkey patch a prepend_order method
  Rename inconsistency: go with goldness
  Touch
  Use gild/ungild
  Format
  Fix test
  ...
2025-04-11 12:43:05 -05:00
Jason Zimdars df96ee80fa Style drafted cards 2025-04-11 12:21:14 -05:00