Commit graph

762 commits

Author SHA1 Message Date
Andreas Nedbal
4c393defb7 Add ModalController#close action 2023-10-28 04:39:15 +02:00
Andreas Nedbal
f30b1b820e Add show_reactions action and move markup into it 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
1bc7d04054 Move subscription locales into controller scope 2023-10-25 03:14:57 +02:00
Andreas Nedbal
563f834287 Remove Ajax::SubscriptionController 2023-10-25 03:14:57 +02:00
Andreas Nedbal
cefb805243 Add SubscriptionsController 2023-10-25 03:14:57 +02:00
Karina Kwiatek
e18abd3752
Merge pull request #1071 from Retrospring/dep/rails-7.0.4.2
Bump rails to 7.0.8
2023-10-22 21:06:04 +02:00
Andreas Nedbal
80477d17ac Remove transferred locales 2023-10-22 21:04:30 +02:00
Karina Kwiatek
23dc19a665 Add cookie rotation for switching from SHA1 to SHA256 2023-10-20 08:33:16 +02:00
Karina Kwiatek
488ab85653 Adjust autoloading 2023-10-20 08:33:16 +02:00
Karina Kwiatek
4f1b6ca03e Allow setting extra hosts in development environments 2023-10-17 22:00:48 +02:00
Karina Kwiatek
3bd45c8e96
Merge pull request #1196 from Retrospring/feature/turbo-comments
Move comments to a turbo frame
2023-10-16 18:02:46 +02:00
Andreas Nedbal
6aee2baa45 Name label iOS instead of iPhone 2023-10-16 15:27:34 +02:00
Andreas Nedbal
26e1a9df1a Suggest pure iPhone two factor capabilities 2023-10-16 15:27:34 +02:00
Karina Kwiatek
81b271ab03 Move reactions to separate view/endpoint 2023-10-15 18:42:30 +02:00
Karina Kwiatek
849d4f74f2 Move comments to a turbo frame 2023-10-15 18:42:30 +02:00
greyidol
e082b0da6e use .env and support SMTP configuration 2023-09-05 22:25:19 +02:00
Karina Kwiatek
c9c458252b Add functionality for marking all notifications as read 2023-05-05 15:59:25 +02:00
Karina Kwiatek
d684e8d782 Add shortcut for viewing answer page 2023-04-29 09:34:28 +02:00
Karina Kwiatek
9572f844ec Add hotkey help window 2023-04-29 09:34:28 +02:00
Karina Kwiatek
b5193cd1ac
Merge pull request #1129 from Retrospring/feature/multiline-comments
Allow multi-line comments
2023-04-29 08:52:24 +02:00
Karina Kwiatek
3fa607f39c Clean up User::SessionsController 2023-03-26 18:28:36 +02:00
Karina Kwiatek
06ecdd9e51 Upgrade Devise to 4.9.0 2023-03-26 18:28:36 +02:00
Karina Kwiatek
abff39557d Allow multi-line comments 2023-03-07 17:57:41 +01:00
Georg Gadinger
0451e2fedd actions/_share: add telegram 2023-02-19 21:15:56 +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
Karina Kwiatek
ef828462e1 Remove line about creating paragraphs in formatting help
This is now not needed as line breaks are kept during render
2023-02-18 20:21:28 +01:00
Karina Kwiatek
f5050971e9 Remove raw markdown options 2023-02-18 20:19:31 +01:00
Karina Kwiatek
7635d3a491 Humanise numbers on about page 2023-02-17 15:58:46 +01:00
Georg Gadinger
2de6ed9bf9
Merge pull request #1082 from Retrospring/app-metrics
Export question and comment metrics via Prometheus
2023-02-16 22:10:57 +01:00
Karina Kwiatek
e85aaadb63 Pass Markdown renderer options into renderer 2023-02-15 23:50:55 +01:00
Georg Gadinger
7cc2a1adf7 questions: remove "where do you..." 2023-02-15 23:12:36 +01:00
Georg Gadinger
c5c95a7365 questions: apply suggestions from merge request
Co-authored-by: Karina Kwiatek <6197148+raccube@users.noreply.github.com>
2023-02-15 23:12:36 +01:00
Georg Gadinger
ddc792d0df questions: sort bits alphabetically and combine them where possible 2023-02-15 21:33:20 +01:00
Georg Gadinger
841157c790 questions: remove 'and why is it' and add some new ones 2023-02-15 20:50:33 +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
c338a0c8cc add prometheus initialiser
this ensures it works great in multi-process setups (like with puma)
2023-02-13 22:17:46 +01:00
Georg Gadinger
bc6806aa89 initial metrics 2023-02-13 22:17:46 +01:00
Karina Kwiatek
520f7eb9ef Show toasts on pin/unpin 2023-02-12 20:29:36 +01:00
Karina Kwiatek
de73532bef Show indicator for pinned answers 2023-02-12 20:19:50 +01:00
Karina Kwiatek
410d9b5d8e Implement unpinning answers 2023-02-12 20:19:50 +01:00
Karina Kwiatek
b196909b79 Create frontend endpoint for pinning answers 2023-02-12 20:19:50 +01:00
Karina Kwiatek
3451ae1fb0 Display pinned answers on profiles 2023-02-12 20:19:50 +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
c880fade4e Add TurboStreamable concern to Settings::MutesController 2023-02-12 20:16:36 +01:00
Andreas Nedbal
f2024a990e Add TurboStreamable concern to AnonymousBlock controller 2023-02-12 20:16:36 +01:00
Georg Gadinger
5799a6f4d4 locales/views: reword "share your answers" bit on the landingpage 2023-02-12 19:26:31 +01:00
Georg Gadinger
e1aee89be0 remove expired service connection notifications 2023-02-12 19:26:31 +01:00
Karina Kwiatek
0c3e54de6b Use icons with tooltips instead 2023-02-12 18:21:14 +01:00
Karina Kwiatek
dd3f86988a Localise strings for question visibility 2023-02-12 18:21:14 +01:00
Karina Kwiatek
42a78cd286 Provide a way of using Redis for Rails cache 2023-02-12 18:18:38 +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
Georg Gadinger
c5b442c529
Merge pull request #1043 from Retrospring/configurable-log-levels
allow log level, site_name, and hostname to be configured via ENV
2023-02-06 15:25:44 +01:00
Andreas Nedbal
2ba2367e7e Apply suggestions from @raccube
Co-authored-by: Karina Kwiatek <6197148+raccube@users.noreply.github.com>
2023-02-05 21:54:51 +01:00
Andreas Nedbal
a564bd740b Apply review suggestion from @nilsding
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2023-02-05 21:54:51 +01:00
Andreas Nedbal
247604f48f Remove Twitter API key config values 2023-02-05 21:54:51 +01:00
Andreas Nedbal
83aa4ed1bc Implement new sharing layout 2023-02-05 21:54:51 +01:00
Andreas Nedbal
926be13fa6 Add Settings::SharingController 2023-02-05 21:54:51 +01:00
Andreas Nedbal
a86dcde30a Remove omniauth and twitter (sharing) related gems
`twitter-text` is still required to generate the shared post bodies
2023-02-05 21:54:51 +01:00
Andreas Nedbal
d520755bc2 Remove service model 2023-02-05 21:54:51 +01:00
Andreas Nedbal
c327eee38e Remove services controller 2023-02-05 21:54:51 +01:00
Georg Gadinger
b0644b26c7 allow to set some configuration options via ENV 2023-02-04 07:24:14 +01:00
Georg Gadinger
1f4a92b6d4 allow log levels to be configurable via ENV 2023-02-04 07:07:43 +01:00
Georg Gadinger
3f0e690f28 provide our own default questions file independent from the questiongenerator gem 2023-01-31 23:22:21 +01:00
Andreas Nedbal
6b3342036f Merge branch 'main' into feature/raised-texts 2023-01-29 19:38:32 +01:00
Karina Kwiatek
452266b77a
Merge pull request #1015 from Retrospring/sentry-filtering
Add filtering for events reported to Sentry
2023-01-29 00:46:22 +01:00
Karina Kwiatek
9ef6e8fdc1 Use class instead of class name for matching exception types 2023-01-28 22:30:03 +01:00
Karina Kwiatek
354407cd79 Use next to return out of before_send 2023-01-28 22:29:41 +01:00
Karina Kwiatek
272b98c954 before_send should be assigned a lambda 2023-01-28 22:18:43 +01:00
Karina Kwiatek
da9a170e67 Set event fingerprint for exceptions relating to external services 2023-01-28 22:14:02 +01:00
Karina Kwiatek
7d5104d09d Filter out user-facing errors from Sentry 2023-01-28 22:10:14 +01:00
Karina Kwiatek
e9c397a013 Replace @title and @type ivars 2023-01-28 19:08:28 +01:00
Karina Kwiatek
d45c6af853 Remove page parameter from user/friends redirects 2023-01-28 11:08:16 +01:00
Andreas Nedbal
a0a7f4e124 Add raised-text and raised-accent-text theme variables 2023-01-23 23:36:38 +01:00
Georg Gadinger
3b81dc33db routes: remove unused :page param and all :via options 2023-01-22 00:04:33 +01:00
Georg Gadinger
eb7abb33be user: only provide #questions as GET 2023-01-22 00:04:33 +01:00
Georg Gadinger
14f32aa3c0 question: only provide #show as GET 2023-01-22 00:04:33 +01:00
Georg Gadinger
b019f24aaa user: only provide #followers and #followings as GET 2023-01-22 00:04:33 +01:00
Georg Gadinger
989873ba62 user: only provide #show as GET 2023-01-22 00:04:33 +01:00
Georg Gadinger
d572734b96 notifications: only provide #index as GET 2023-01-22 00:04:33 +01:00
Georg Gadinger
77529c2217 moderation/reports: only provide #index as GET 2023-01-22 00:04:33 +01:00
Georg Gadinger
144db471d6 moderation/inbox: only provide #index as GET 2023-01-22 00:04:33 +01:00
Georg Gadinger
59d94d7ba0 timeline: only provide #index, #public and #list as GET 2023-01-22 00:04:33 +01:00
Georg Gadinger
9d7c99fe9b
Merge pull request #974 from Retrospring/refactor/inbox
refactor inbox
2023-01-21 13:59:39 +01:00
Andreas Nedbal
fc30bf8cac Add more explicit message for format validation errors 2023-01-21 13:20:52 +01:00
Andreas Nedbal
7222f36ef3 Add format hint for screen_name input 2023-01-21 13:20:52 +01:00
Georg Gadinger
2f82e3be31 inbox: only provide #show as GET 2023-01-19 11:57:55 +01:00
Andreas Nedbal
3258ea4f0b Implement shared collapse partial 2023-01-12 21:03:44 +01:00
Karina Kwiatek
c919b4913f
Merge branch 'main' into feature/long-questions 2023-01-11 22:24:58 +01:00
Andreas Nedbal
53bc270e08
Apply review suggestions from @nilsding
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2023-01-10 20:49:37 +01:00
Andreas Nedbal
eccb51eab0 Add formatting help markup/translations 2023-01-10 15:48:56 +01:00
Karina Kwiatek
2e7fca67fa Update long question warning to be more descriptive 2023-01-08 17:20:12 +01:00
Karina Kwiatek
7cdb0e4976 Respect long question setting in frontend 2023-01-08 17:12:46 +01:00
Karina Kwiatek
122be928bf
Merge pull request #934 from Retrospring/more-obvious-sharing-options
Make sharing options more obvious
2023-01-08 11:24:50 +00:00
Andreas Nedbal
8b5271df69 Remove Webpacker 2023-01-08 12:19:45 +01:00
Karina Kwiatek
4ac3483f1a Make sharing options more obvious 2023-01-06 17:38:27 +01:00
Georg Gadinger
fc62e2ddb2 fix english 2023-01-05 15:42:56 +01:00
Georg Gadinger
b728c494d7 remove flag leftovers 2023-01-05 10:37:44 +01:00
Andreas Nedbal
7450143311 Remove legacy entrypoint and packages 2023-01-05 10:35:52 +01:00