Commit Graph

247 Commits

Author SHA1 Message Date
Andreas Nedbal 796a848110 Add specs for reaction controller create/destroy methods 2023-12-09 00:59:14 +01:00
Andreas Nedbal 4e434dd268 Remove legacy SmileController 2023-12-09 00:59:14 +01:00
Andreas Nedbal 80b0df1ddd
Merge branch 'main' into task/refactor-comment-controller 2023-10-29 21:54:32 +01:00
Andreas Nedbal b7808e85c6 Check proper render result in spec 2023-10-29 21:52:38 +01:00
Andreas Nedbal ca043d56ef Rename `ReactionController` to `ReactionsController` 2023-10-29 21:52:38 +01:00
Andreas Nedbal 5d093c621b Rename `#show` to `#index` action for comment reactions 2023-10-29 21:48:41 +01:00
Andreas Nedbal 91716454c3 Render correct template in spec 2023-10-29 21:34:13 +01:00
Andreas Nedbal e8e833f9bd Move comment reactions into own controller 2023-10-29 21:32:39 +01:00
Andreas Nedbal 5afaef427c Rename `CommentController` to `CommentsController` 2023-10-29 21:30:32 +01:00
Andreas Nedbal e802e0197d Make `turbo does not succeed` example for in `RelationshipsController` 2023-10-28 10:41:24 +02:00
Andreas Nedbal 54fb4d09fd Fix lint nits 2023-10-28 10:41:24 +02:00
Andreas Nedbal fc420a8091 Add specs for `RelationshipsController` 2023-10-28 10:41:24 +02:00
Andreas Nedbal 10473f4ed0 Remove `Ajax::RelationshipController` and spec 2023-10-28 10:41:24 +02:00
Karina Kwiatek 0877b938a3
Merge pull request #1417 from Retrospring/feature/turbo-subscriptions
Move subscription functionality to Turbo Streams
2023-10-28 10:16:20 +02:00
Andreas Nedbal bc0ce6be3f Add specs for comment and modal controller Turbo Frame actions 2023-10-28 04:39:15 +02:00
Andreas Nedbal 1e29d3f86f Rename `Appendable::Reaction` to `Reaction` 2023-10-28 02:44:48 +02:00
Andreas Nedbal 6e6cf5358b Add specs for `SubscriptionsController`
These are mostly the old `AjaxController::SubscriptionController` specs, but adjusted for Turbo (and the proper action names)
2023-10-25 03:14:57 +02:00
Andreas Nedbal 50b925ec48 Prefer render responders in settings controllers 2023-10-20 02:21:52 +02:00
Andreas Nedbal 274d480ba8 Adjust specs for AJAX answer endpoint 2023-10-18 20:54:41 +02:00
Karina Kwiatek 81b271ab03 Move reactions to separate view/endpoint 2023-10-15 18:42:30 +02:00
Karina Kwiatek adf294e6cb Add tests for viewing comments 2023-10-15 18:42:30 +02:00
Andreas Nedbal 9053483952 Fix rubocop nits 2023-10-15 10:16:21 +02:00
Andreas Nedbal bff579661f Add spec for invalid record toasts in `TurboStreamable` concern 2023-10-15 10:16:21 +02:00
Karina Kwiatek d39f37072d Fix lint errors 2023-08-18 19:43:59 +02:00
Karina Kwiatek efb9b03295 Compare time using string representation 2023-08-18 18:22:45 +02:00
Karina Kwiatek a5c58da48c Set time explicitly 2023-08-17 20:54:37 +02:00
Karina Kwiatek 54ac832c91 Ensure inbox caching timestamp gets updated when answering questions and returning to inbox 2023-08-16 21:57:31 +02:00
Karina Kwiatek 1b05063f4a Update tests to check for touching of caching timestamps 2023-06-16 18:09:38 +02:00
Karina Kwiatek 81b279f1b6 Floor times in tests
This passed locally for me on macOS but does not pass on Linux due to a difference in precision for timestamps.
2023-05-07 21:04:33 +02:00
Karina Kwiatek 2aaba3e2d9 Touch `notifications_updated_at` after marking entries as read 2023-05-07 20:54:54 +02:00
Karina Kwiatek ed6bdfe8cb Touch `inbox_updated_at` after marking entries as read 2023-05-07 20:54:44 +02:00
Karina Kwiatek 7a9a7e0d47
Merge pull request #1130 from Retrospring/feature/mark-all-notifications-as-read
Mark all notifications as read
2023-05-07 10:07:11 +02:00
Karina Kwiatek 0132d7b251 Remove usages of `is_active` 2023-05-05 16:01:40 +02:00
Karina Kwiatek a3dbad5265 Fix lint errors in `NotificationController#index` tests 2023-05-05 15:59:45 +02:00
Karina Kwiatek b5a72be288 Add test for marking all notifications as read 2023-05-05 15:59:45 +02:00
Karina Kwiatek 0db44949e6 Move `NotificationsController#index` test into their own `describe` block 2023-05-05 15:59:45 +02:00
Georg Gadinger 1ffa2e5125 filter out non-anon questions from blocked/muted users in questions view 2023-03-26 18:28:19 +02:00
Karina Kwiatek 18421df9d0 Add tests for `QuestionController` 2023-03-26 18:28:19 +02:00
Karina Kwiatek f3c7132103 Allow use of `USE_FOG_IN_TESTS` env var 2023-03-05 20:37:52 +01:00
Karina Kwiatek 36c52db8b9 Fix lint errors 2023-03-05 14:06:16 +01:00
Karina Kwiatek f1809c4dd3 Disable fog in tests 2023-03-05 13:53:27 +01:00
Georg Gadinger 4ee2b46b32 add sharing to telegram 2023-02-19 20:58:47 +01:00
Georg Gadinger 8a055341c8 add metrics for sidekiq 2023-02-14 05:31:54 +01:00
Georg Gadinger bc6806aa89 initial metrics 2023-02-13 22:17:46 +01:00
Karina Kwiatek 793fec7da1 Update pinning tests to match new Turbo Stream behaviour 2023-02-12 21:06:16 +01:00
Karina Kwiatek dcad9073a8 Fix typos in pinning tests 2023-02-12 20:19:50 +01:00
Karina Kwiatek 04303c667e Add tests for pin/unpin endpoints 2023-02-12 20:19:50 +01:00
Andreas Nedbal 5579489a92 Apply review suggestion from @nilsding
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2023-02-12 20:16:36 +01:00
Andreas Nedbal bc52eb8cb5 Add specs for Turbo Stream responses 2023-02-12 20:16:36 +01:00
Andreas Nedbal 4dc88fe1ef Refactor TurboStreamable spec to use an anonymous controller 2023-02-12 20:16:36 +01:00