Andreas Nedbal
cc7fa787e8
Pass IDs to Reaction usecases instead of user instances
...
For some wild reason this locally sometimes causes coercion errors in the user instance check, restarting fixes it (temporarily?) so letting the UseCase resolve users is a cleaner solution here.
2024-03-19 22:45:19 +01:00
Andreas Nedbal
b4cfc95c83
Adjust accessors to pull values from attributes if they exist
...
This has to be done because using multiple queries in a select statement does not automatically map into an ActiveRecord model and the values we want wait in the `self.attributes` hash.
2024-03-19 22:45:19 +01:00
Andreas Nedbal
536d50f53d
Add uniqueness validation to Reactions
2024-03-19 22:45:19 +01:00
Andreas Nedbal
b7e8187cd4
Add max question content limit of 32,768 characters
2024-03-10 21:23:14 +01:00
Andreas Nedbal
597c859c2d
Refactor comments into CommentComponent
2024-03-10 18:23:28 +01:00
Andreas Nedbal
07cafb9b30
Use new date format in notifications
2024-03-10 17:29:55 +01:00
Andreas Nedbal
04931b627c
Adjust manual tooltip initializations
2024-03-10 17:29:32 +01:00
Andreas Nedbal
95c79216cb
Update tooltip helper to use `data-controller` instead
2024-03-10 17:29:32 +01:00
Andreas Nedbal
7f93fabb62
Remove tooltip initializer from Bootstrap file
2024-03-10 17:29:32 +01:00
Andreas Nedbal
94f027f546
Add Stimulus tooltip controller
2024-03-10 17:29:32 +01:00
Georg Gadinger
96794029b3
use time_tooltip for comments, fixes #1650
2024-03-10 01:59:13 +01:00
Andreas Nedbal
900fc1c646
Remove linking of (possibly) anonymous questions
...
I'll come back to properly linking this up later
2024-03-02 22:43:39 +01:00
Andreas Nedbal
54cff294b2
Re-add pinned indicator to answerboxes
2024-03-02 22:43:39 +01:00
Andreas Nedbal
6c38f61d5c
Fix coloring of action toggle in new inbox entries
2024-03-02 22:43:39 +01:00
Andreas Nedbal
b3cbfc762b
Initialize Bootstrap dropdowns on the toggle data attribute
2024-03-02 22:43:39 +01:00
Andreas Nedbal
e264a785f4
Remove hidden overflow styling from question user heading
2024-03-02 22:43:39 +01:00
Andreas Nedbal
45907c9260
Use ellipsis icon for action dropdowns
2024-03-02 22:43:39 +01:00
Andreas Nedbal
f4095c42ec
Adjust `time_tooltip` method to show shorter time format
2024-03-02 22:43:39 +01:00
Andreas Nedbal
e8f661f555
Remove hidespan helper method
2024-03-02 22:43:39 +01:00
Andreas Nedbal
9bc41e31ec
Remove human-readable "Answered by" answerbox text
2024-03-02 22:43:39 +01:00
Andreas Nedbal
fb6e6458c4
Remove conditional profile layout in answerboxes
2024-03-02 22:43:39 +01:00
Andreas Nedbal
8b3690fcf2
Remove full-width class from reaction icons
2024-03-02 22:43:39 +01:00
Andreas Nedbal
92c9ed011f
Fix rubocop nits
2024-03-01 23:58:35 +01:00
Andreas Nedbal
3a801baf1a
Add highlight to moderation panel link if there are new reports
2024-03-01 23:58:35 +01:00
Andreas Nedbal
34421b34f3
Set `has_new_reports` global in ApplicationController
2024-03-01 23:58:35 +01:00
Andreas Nedbal
f3cba7b620
Set `last_reports_visit` when visiting the reports listing
2024-03-01 23:58:35 +01:00
Andreas Nedbal
507c27da06
Add Bluesky to answerbox sharing options
2024-03-01 21:14:59 +01:00
Andreas Nedbal
4ed9cf5a32
Add Bluesky to inbox entry sharing dialog
2024-03-01 21:14:59 +01:00
Andreas Nedbal
e90b4b8580
Add Bluesky link to sharing options
2024-03-01 21:14:59 +01:00
Andreas Nedbal
50097d629e
Add `SocialHelper::BlueskyMethods`
2024-03-01 21:14:59 +01:00
Andreas Nedbal
04d3e050ab
Show actions to moderators on banned profiles
2024-02-29 00:06:19 +01:00
Andreas Nedbal
1914c56b05
Adjust what content gets hidden on banned user profiles
2024-02-29 00:06:19 +01:00
Andreas Nedbal
22886934db
Use `dropdown` instead of `btn-group` for dropdowns
2024-02-28 22:23:06 +01:00
Andreas Nedbal
5077039035
Give answerbox actions proper margins and paddings
2024-02-28 22:23:06 +01:00
Andreas Nedbal
fbb6fcdf7b
Fix text color of answerbox actions
2024-02-28 22:23:06 +01:00
Andreas Nedbal
af666c7733
Fix lint nits
2024-02-28 00:57:26 +01:00
Andreas Nedbal
2db1d998b7
Fix not being able to unset administrator privileges in UI
2024-02-28 00:57:26 +01:00
Andreas Nedbal
d87a4adf96
Add links to user actions to filter reports by/from users
2024-02-27 23:58:05 +01:00
Andreas Nedbal
aa66ac4500
Fix haml-lint nits
2024-02-27 22:55:54 +01:00
Andreas Nedbal
50126cc4c4
Implement report filtering interface
2024-02-27 22:55:54 +01:00
Andreas Nedbal
6211747ec4
Remove report filtering navigation entries
2024-02-27 22:55:54 +01:00
Andreas Nedbal
020b7db712
Remove ordered_inbox method and related paginator
2024-01-27 20:28:45 +01:00
Andreas Nedbal
d12e3b020e
Use `InboxFilter` in `Moderation::InboxController`
2024-01-27 20:28:45 +01:00
Andreas Nedbal
62ba205d3e
Fix rubocop nits
2024-01-27 19:21:07 +01:00
Andreas Nedbal
658cb0442b
Rename all occurences of associative inbox entry access
2024-01-27 19:21:07 +01:00
Andreas Nedbal
ba7ba359b4
Rename user/question associations to `:inbox_entries`
2024-01-27 19:21:07 +01:00
Andreas Nedbal
06b2421f2c
Rename all occurences of `Inbox` class to `InboxEntry`
2024-01-27 19:21:07 +01:00
Andreas Nedbal
af9cbcdb11
Rename `Inbox` model to `InboxEntry`
2024-01-27 19:21:07 +01:00
Andreas Nedbal
b96651fa70
Disallow `author` and `anonymous` inbox filter combination
2024-01-25 22:08:37 +01:00
Andreas Nedbal
134c575e40
Add missing expire times to cache keys
2024-01-25 21:23:02 +01:00