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
795e687bc8
Fix reaction exporter spec
2023-10-28 02:44:48 +02:00
Andreas Nedbal
20cf1ac85b
Fix rubocop nits
2023-10-28 02:44:48 +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
778d4c7b44
Tighten inbox entry view spec
...
Non-direct questions can't have a non-null answer count
2023-10-22 21:04:30 +02:00
Andreas Nedbal
c09cc85c4f
Adjust class references to question CSS classes
2023-10-22 21:04:30 +02:00
Karina Kwiatek
2432010256
Merge pull request #1403 from Retrospring/feature/avatar-component
...
Install `view_component` and add initial `AvatarComponent`
2023-10-22 16:05:11 +02:00
Andreas Nedbal
ae4210d36f
Add spec for `AvatarComponent`
2023-10-20 12:46:42 +02:00
Andreas Nedbal
f97d98d00a
Include `view_component` testing helpers
2023-10-20 11:46:26 +02:00
Andreas Nedbal
50b925ec48
Prefer render responders in settings controllers
2023-10-20 02:21:52 +02:00
Andreas Nedbal
6e8f8bcc67
Merge branch 'main' into bugfix/inbox-sharing
2023-10-19 23:44:57 +02:00
Andreas Nedbal
25adb11df3
Fix rubocop nits in helper code and specs
2023-10-19 23:41:14 +02:00
Georg Gadinger
c4da510fe7
fix deletion of notification entries when deleting a user
2023-10-18 22:13:25 +02:00
Georg Gadinger
dc41f15097
fix deletion of inbox entries when deleting an user
2023-10-18 21:52:47 +02:00
Andreas Nedbal
274d480ba8
Adjust specs for AJAX answer endpoint
2023-10-18 20:54:41 +02:00
Andreas Nedbal
dc8c5fbf82
Add option to omit URL to `prepare_tweet` helper
2023-10-18 20:01:07 +02:00
Andreas Nedbal
0f0f3ae0c6
Fix sharing view spec test case
2023-10-17 20:14:28 +02:00
Andreas Nedbal
5f0fed8c94
Fix rubocop nits
2023-10-17 20:14:28 +02:00
Andreas Nedbal
e74e233548
Add spec for `answer_share_url`
2023-10-17 20:14:28 +02:00
Karina Kwiatek
ed664c9580
Add view tests for smiles list partial
2023-10-15 18:42:30 +02:00
Karina Kwiatek
81b271ab03
Move reactions to separate view/endpoint
2023-10-15 18:42:30 +02:00
Karina Kwiatek
9563a586c2
Appease the dog overlords (mostly)
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
Andreas Nedbal
6efee0053e
Adjust mute rule test case to now expect an error
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
eed4ed5d4b
Add test for putting IDs on nav entries
2023-08-16 21:19:05 +02:00
Karina Kwiatek
1b05063f4a
Update tests to check for touching of caching timestamps
2023-06-16 18:09:38 +02:00
Karina Kwiatek
46c2412ad8
Update tests for `user_screen_name` to include `target` attribute
2023-05-09 23:08:35 +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
4221f8cee9
Fix incorrect user being notified and mutes not being respected
2023-05-05 16:01:48 +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
Karina Kwiatek
55090a42f8
Merge pull request #1148 from Retrospring/moar-metrics
...
metrics: add counter for created/destroyed users
2023-04-29 09:54:53 +02:00
Georg Gadinger
48e63cf472
typoed_email_validator: add new endings to the typo list
2023-04-22 22:05:15 +02:00
Georg Gadinger
3508f846e7
pet the cyber canine 9000
2023-03-29 08:04:31 +02:00
Georg Gadinger
a9cf00f75e
metrics: add counter for created/destroyed users
2023-03-29 08:01:35 +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
Georg Gadinger
1791ea2d1a
move timeline test data to shared context
2023-03-26 18:28:19 +02:00
Georg Gadinger
920187bc88
filter out non-anon questions from blocked/muted users in public timeline
2023-03-26 18:28:19 +02:00
Georg Gadinger
f1a1321a25
filter out non-anon questions from blocked/muted users in list timeline
2023-03-26 18:28:19 +02:00
Georg Gadinger
765397d813
filter out non-anon questions from blocked/muted users in home timeline
2023-03-26 18:28:19 +02:00
Georg Gadinger
4e150945e5
typoed_email_validator: add new endings to the typo list
2023-03-09 20:08:15 +01:00
Karina Kwiatek
14379acbd3
Fix incorrect access of `unread_inbox_count` in `notification_data`
2023-03-07 19:14:14 +01:00
Karina Kwiatek
68e0f02a2d
Adapt tests to match new counter methods
2023-03-07 19:14:14 +01: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
0451e2fedd
actions/_share: add telegram
2023-02-19 21:15:56 +01:00
Georg Gadinger
4ee2b46b32
add sharing to telegram
2023-02-19 20:58:47 +01:00
Karina Kwiatek
61b7281544
Merge pull request #1085 from Retrospring/fix/markdown-rendering
...
Markdown rendering fixes
2023-02-18 21:00:40 +01:00
Georg Gadinger
a6dc08ad9a
Merge pull request #1086 from Retrospring/view-specs
...
add some view specs for inbox
2023-02-18 19:33:22 +01:00
Georg Gadinger
1a0ca59113
replace matchers in view specs with nokogiri-based ones
2023-02-16 21:50:12 +01:00
Georg Gadinger
caccf8b1b3
add view specs for inbox/_entry.html
2023-02-16 21:26:09 +01:00
Georg Gadinger
221cb6a6c1
add view specs for inbox/_actions.html
2023-02-16 20:35:14 +01:00
Georg Gadinger
63481de48f
add view specs for inbox/_push_settings
2023-02-16 19:51:42 +01:00
Georg Gadinger
61713dda6b
add view specs for inbox/show.turbo_stream
2023-02-16 13:18:51 +01:00
Georg Gadinger
9f082c23a1
add view specs for inbox/show.html
2023-02-16 13:18:40 +01:00
Karina Kwiatek
9988527580
Hard wrap in question markdown
2023-02-15 23:52:10 +01:00
Karina Kwiatek
062ca6e65a
Ensure `hard_wrap` renderer option is respected
2023-02-15 23:51:59 +01:00
Georg Gadinger
8a055341c8
add metrics for sidekiq
2023-02-14 05:31:54 +01:00
Georg Gadinger
64adbb5707
allow /metrics to be reached from private subnets only
...
this commit is not approved by the IPv6 crowd. patches welcome
2023-02-13 22:17:46 +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
dd8f51160f
Add test for unpinning when the answer is not pinned
2023-02-12 20:19:50 +01:00
Karina Kwiatek
baea942975
Add check for pinning when the answer is already pinned
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
Karina Kwiatek
664bf5eab2
Add test for unpin use case
2023-02-12 20:19:50 +01:00
Karina Kwiatek
438884e13a
Add trailing commas (lint)
2023-02-12 20:19:50 +01:00
Karina Kwiatek
5f50a08f03
Adjust answer export test to include pinned_at field
2023-02-12 20:19:50 +01:00
Karina Kwiatek
ed4ec98455
Add use case for pinning answers
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
Andreas Nedbal
0aac4caf45
Register test routes in routes.rb
2023-02-12 20:16:36 +01:00
Andreas Nedbal
72ad8f6699
Add tests for TurboStreamable concern
2023-02-12 20:16:36 +01:00
Georg Gadinger
065d35c288
well_known/node_info: remove twitter as outbound service
2023-02-12 19:04:01 +01:00
Georg Gadinger
71be21cccc
add specs for Settings::SharingController
2023-02-10 21:16:21 +01:00
Georg Gadinger
606629577a
make URI.parse part of the validation for the sharing URL
...
the regexp alone and web browsers allows URLs to contain non-ASCII
characters, which `URI.parse` does not like -- resulting in the inbox
page to suddenly break.
also changed the `redirect_to` in the controller to a `render :edit` so
that validation errors are shown properly
2023-02-10 20:48:15 +01:00
Andreas Nedbal
b0f5294243
Appease the dog overlords
2023-02-05 21:54:51 +01:00
Andreas Nedbal
024127e62f
Remove connected user transformation from TwitteredMarkdown
2023-02-05 21:54:51 +01:00
Andreas Nedbal
d43e27bcd2
Fix data export specs
2023-02-05 21:54:51 +01:00
Andreas Nedbal
4e5aca9ab5
Add specs for URL validation
2023-02-05 21:54:51 +01:00
Andreas Nedbal
f0eaf9c4a2
Remove `Services::Twitter` spec
2023-02-05 21:54:51 +01:00
Andreas Nedbal
06d7db7ff8
Remove ShareWorker
2023-02-05 21:54:51 +01:00
Andreas Nedbal
c327eee38e
Remove services controller
2023-02-05 21:54:51 +01:00
Karina Kwiatek
2517b1330a
Merge pull request #1017 from Retrospring/feature/raised-texts
...
Add new raised text and raised accent text theme fields
2023-01-31 12:57:15 +01:00