Commit Graph

1461 Commits

Author SHA1 Message Date
David Heinemeier Hansson d8f9511e08 Unused 2025-04-12 11:34:56 +02:00
David Heinemeier Hansson 1a9a65fffb Unused 2025-04-12 11:31:50 +02:00
David Heinemeier Hansson 2f8a9bed0e There is only ever one account per database
So there is no protection in scoping things by account cc @jorgemanrubia
2025-04-12 11:30:28 +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 81a89dbda1 Comments should always have messages 2025-04-12 11:23:45 +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 cef8899bda Comments are not currently used as notifiables 2025-04-12 11:18:59 +02:00
David Heinemeier Hansson 9f1c3ae046 Note my discontent 2025-04-12 11:17:01 +02:00
David Heinemeier Hansson 1c4e0d3ccc Not using the destroy callback 2025-04-12 11:11:30 +02:00
David Heinemeier Hansson 63c05220ce Clearer naming 2025-04-12 11:09:55 +02:00
David Heinemeier Hansson ecffdc2af4 Spacing 2025-04-12 11:07:27 +02:00
David Heinemeier Hansson 735a12abfc Better name 2025-04-12 11:07:02 +02:00
David Heinemeier Hansson 9f7bbbef58 Split draft commenting back out to a dedicated concern 2025-04-12 11:05:56 +02:00
David Heinemeier Hansson 27d90abbd6 Reduce the direct knowledge of comments inside the card 2025-04-12 11:04:16 +02:00
David Heinemeier Hansson b698eefa06 Messageables already have access to the card 2025-04-12 11:00:15 +02:00
David Heinemeier Hansson 24b02c42fd Comments are dependents of messages, so need to destroy the latter to get the former 2025-04-12 10:59:59 +02:00
David Heinemeier Hansson 60a0360203 Remove more activity scoring related to comments 2025-04-12 10:52:48 +02:00
David Heinemeier Hansson fb733b9a60 No more tracking commenting as an activity for sorting
We are doing away with all the automated activity scoring, but for now
lets just get rid of it for comments.
2025-04-12 10:50:25 +02:00
David Heinemeier Hansson 81f431d946 Comment-specific behavior needs to live in the comment
This really is a bit of a tangled mess. Everyone knows everything about
everyone else.
2025-04-12 10:39:56 +02:00
David Heinemeier Hansson bb64adfd1b Most important methods first 2025-04-12 10:39:19 +02:00
David Heinemeier Hansson 4d2ba5b432 Use the explicit method for now 2025-04-12 10:27:57 +02:00
David Heinemeier Hansson 80bc1dd163 Reactions dont have any callbacks so can just be deleted 2025-04-12 10:15:38 +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
Jason Zimdars 3ff938f174 Show more of the summary before truncating 2025-04-11 13:21:47 -05:00
Jason Zimdars 188ebc3110 Improve event summaries 2025-04-11 13:21:47 -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 26106f12e4 Remove shadows from notifications you can't see 2025-04-11 13:16:29 -05:00
Jason Zimdars df96ee80fa Style drafted cards 2025-04-11 12:21:14 -05:00
Jason Zimdars 5997ef2c70 Considering needs to include drafted cards or you'll never be able to see them 2025-04-11 12:08:05 -05:00
Jason Zimdars 76336a52d6 This item makes no sense until it's saved 2025-04-11 11:56:26 -05:00
Jason Zimdars ee8559343a Tighten engagement switch design, only display it for published cards 2025-04-11 11:50:09 -05:00
David Heinemeier Hansson 09dd073cf7 Record lookup works here 2025-04-11 18:47:11 +02:00
David Heinemeier Hansson 51341c36d1 New partial isnt cached 2025-04-11 18:45:44 +02:00
David Heinemeier Hansson c8fe83e8f3 Indention 2025-04-11 18:43:52 +02:00
David Heinemeier Hansson 6effc1568f No need for a separate body partial 2025-04-11 18:41:26 +02:00
David Heinemeier Hansson 6f1c802292 Content being required via UI and db constraint is enough
We are not using/displaying model validations anywhere
2025-04-11 18:28:23 +02:00
David Heinemeier Hansson 9ecb85013b Spacing 2025-04-11 18:25:49 +02:00
David Heinemeier Hansson 442fe6087c Use form object so we dont have to manually set the text_field name 2025-04-11 18:25:24 +02:00
David Heinemeier Hansson aefae634c3 Anemic params method
Wont ever get reused here since there is no update
2025-04-11 18:21:44 +02:00
David Heinemeier Hansson 8d36f13fab No longer needing that extra local 2025-04-11 18:20:28 +02:00
David Heinemeier Hansson 06a636bd8d Did need to separate them out for the broadcast 2025-04-11 18:19:33 +02:00
David Heinemeier Hansson 5fa8007397 Loaded directly in the partial 2025-04-11 18:19:10 +02:00
David Heinemeier Hansson f0aa48b75d Indention 2025-04-11 18:13:29 +02:00
David Heinemeier Hansson fadf167630 Avoid needing to pass an extra variable to the reactions partial
Thanks to inverse_of, there's no extra query getting the comment from
the reaction.
2025-04-11 18:12:52 +02:00
David Heinemeier Hansson 227d5a8757 It is both reacting and reactions
So stick with the simpler dom id scope
2025-04-11 18:10:26 +02:00