Commit Graph

79 Commits

Author SHA1 Message Date
Andreas Nedbal 9872d3aace Implement reaction create/destroy with Turbo Streams 2023-12-09 00:59:14 +01:00
Karina Kwiatek b55e6da9a5 Use subqueries to check reaction/subscription state 2023-11-26 19:32:50 +01:00
Karina Kwiatek f91d2f2d7f Pre-emptively fetch answer reaction state 2023-11-07 22:53:10 +01:00
Andreas Nedbal f30b1b820e Add `show_reactions` action and move markup into it 2023-10-28 04:39:15 +02:00
Andreas Nedbal c4959ae548 Remove obsolete question-related partials 2023-10-22 21:04:30 +02:00
Karina Kwiatek 198ea0d50d Use `smile_count` in answerbox 2023-10-22 19:48:04 +02:00
Andreas Nedbal a58e902a01 Replace plain avatar usage with `AvatarComponent` 2023-10-20 11:45:53 +02:00
Karina Kwiatek 849d4f74f2 Move comments to a turbo frame 2023-10-15 18:42:30 +02:00
Karina Kwiatek 7aed99d187 Appease the dog overlords 2023-05-05 16:01:38 +02:00
Karina Kwiatek cc73f84152 Change smile hotkey to `s` 2023-04-29 09:34:28 +02:00
Karina Kwiatek a39696dd3e Add shortcut for writing new comment 2023-04-29 09:34:26 +02:00
Karina Kwiatek 43d80fffcf Add shortcut for jumping to answers 2023-04-29 09:34:15 +02:00
Karina Kwiatek a64a4699b0 Add Stimulus controller for navigation shortcuts 2023-04-29 09:34:15 +02:00
Karina Kwiatek ceb55c656e Appease the dog overlords 2023-03-10 21:06:11 +01:00
Karina Kwiatek abff39557d Allow multi-line comments 2023-03-07 17:57:41 +01:00
Andreas Nedbal e18b9518aa Properly align the hashes 2023-01-22 11:14:24 +01:00
Andreas Nedbal c7cc0da04b Appease the dog overlords 2023-01-22 10:57:05 +01:00
Andreas Nedbal c122652275 Increase allowed comment length to 512 characters 2023-01-22 10:36:23 +01:00
Andreas Nedbal d4c2ca5e5e Don't set the collapse controller for entries that aren't long 2023-01-21 04:43:48 +01:00
Andreas Nedbal e85f9d6867 Re-add support for detail page `display_all` condition 2023-01-12 21:03:44 +01:00
Andreas Nedbal a3b902b747 Add collapse to answerboxes and questions 2023-01-12 21:03:44 +01:00
Andreas Nedbal cea1190ab9 Remove and replace usage of media classes 2023-01-05 10:35:52 +01:00
Andreas Nedbal 09954c15d2 Fix data attributes for functionality in Bootstrap 5 2023-01-05 10:35:52 +01:00
Andreas Nedbal 05494e8822 change fa-mask icon back to fa-user-secret 2023-01-03 17:21:09 +01:00
Andreas Nedbal a7269bb202 Replace some icons with better choices from FA6 2023-01-03 17:21:09 +01:00
Andreas Nedbal 15d05f1699 Merge branch 'main' into feature/stimulus-character-count 2022-10-31 20:56:38 +01:00
Georg Gadinger caf73558d6 views: rename .haml to .html.haml 2022-10-25 20:10:31 +02:00
Andreas Nedbal 941e79d33c Adjust layout of comment input 2022-10-13 22:29:25 +02:00
Andreas Nedbal 724c241bed Count character count downwards instead of up 2022-10-13 22:29:04 +02:00
Andreas Nedbal 0983ffca3a Merge branch 'main' into feature/stimulus-character-count 2022-10-13 22:07:15 +02:00
Andreas Nedbal 99b523bf9c Use appropriate image sizes and lazy loading in answerbox 2022-10-10 23:14:07 +02:00
Andreas Nedbal 93d1a4e2cb Add Stimulus controller to relevant views 2022-10-02 22:10:04 +02:00
Andreas Nedbal eca1e66ea9 Remove superfluous hiding span for comment actions 2022-08-31 20:16:16 +02:00
Andreas Nedbal 0380f7fcab Remove superfluous hiding span for answerbox actions 2022-08-31 18:46:00 +02:00
Andreas Nedbal ba0ee581c4 Remove "frown" state when an answer/comment is smiled 2022-08-30 19:47:18 +02:00
Andreas Nedbal 24be74a5a2 Split and reuse question actions in partial 2022-08-21 15:04:54 +02:00
Andreas Nedbal 2a2f1a9988 Split actions from comments into separate partial 2022-08-21 15:04:12 +02:00
Andreas Nedbal 5562bd0de0 Split actions from answerbox into separate partials 2022-08-21 15:03:42 +02:00
Andreas Nedbal f521b5f160 Implement moderation question view layout 2022-08-21 13:17:45 +02:00
Karina Kwiatek 2d01d9b365 Apply review suggestions
Co-authored-by: Andreas Nedbal <git@pixelde.su>
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2022-08-20 19:05:55 +02:00
Karina Kwiatek ae5d8931af Implement frontend for blocking users site-wide 2022-08-20 19:03:05 +02:00
Andreas Nedbal 2a8711e7db Fix asked header in question and answerbox 2022-08-17 22:18:37 +02:00
Andreas Nedbal 1caac0e2db Translate post time for answerbox comments 2022-07-31 15:14:02 +02:00
Andreas Nedbal 437e72a322 Translate share alt title in answerbox actions 2022-07-31 15:14:02 +02:00
Andreas Nedbal bb47e30ed1 Fix HAML codestyle of answerbox views 2022-07-31 15:14:02 +02:00
Andreas Nedbal f4f581d12f Add new translations for answerbox 2022-07-31 15:14:02 +02:00
Karina Kwiatek e887e8c4fc Refactor action strings 2022-07-30 18:50:46 +02:00
Georg Gadinger 66efa5d4f4 clean up routes
- replace `match` with `get`/`post`/`patch`/`delete`
- format routes.rb
- rename the `show_user_{profile,question,answer}` routes to
  `profile`, `question`, `answer` so `url_for` (used by Rails Admin)
  works fine for these things
- also add `to_param` to the `User` model so that `url_for(some_user)`
  uses the user name
2022-07-23 12:14:06 +02:00
Karina Kwiatek 0cfe5ee964 Replace usages of smiles with reaction appendables 2022-07-05 23:23:37 +02:00
Karina Kwiatek 5f0a546353 Refactor smiling answers to using reactions 2022-07-05 23:23:37 +02:00