* schema and backend for warning users
* allow warning and warning acknowledgement
* include warning actions in user history drawer
* fix fixture
* add copy to warn modal
* style warning on stream side
* localize strings
* update warning form
* fix fixtures
* copy updates
* clean up error messaging
* userefetch for users
* ensure user status is refreshed on warn error
* add details about warning to user status details
* update copy for unacknowledged warning
* fix merge conflict
* update copy
* remove unused code
* clean up warning css
* sort imports
* fix copy in comments
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Will mark the comment's metdata as a word list
time out if it happens and also tag them with
suspect or banned word.
Then we show "possible suspect/banned word"
markers on the moderate card so moderators can
manually review them.
CORL-1264
Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
* Remove vertical padding and line height on badges
Allows them to align with the time and user name
text elements.
* Hide report button text on mobile screens
* Allow read more links to wrap text on mobile
* Wrap comment tags when on mobile screens
* Fix collapse alignment on mobile screens
* Update top bar responsive scaling
* Use MatchMedia inside ReportButton
* Fix justification on comment TopBarRight
This will update the admin and user CSV
downloads to include a "Media" column that
will specify the media type and the URL
for the media content.
CORL-1188
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This allows staff members to comment anything
they want, even if it's on the banned word list.
CORL-1255
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* Create preliminary media preferences
Allows user to select whether they want to
automatically show media or not.
CORL-1248
* Fix up the copy around media preferences
CORL-1248
* Rename EmbedPreferences to UserMediaSettings
CORL-1248
* Add error/validation messages to media prefs
CORL-1248
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* fix: fixed types and some unmanaged timeouts
* fix: refetch type
Co-authored-by: Chi Vinh Le <vinh@vinh.tech>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
If the feature flag READ_MORE_NEW_TAB is
set, then clicking on "Read more of this
conversation" will open a new tab.
CORL-1246
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* Disable scrolling on site moderators modal
The site moderator modal already has a scroll bar
inside it and its height is less than 480px. We
don't need a scrollbar on the modal background since
the modal window will always be fully visible on
even the smallest screens.
This eliminates the bug of the modal sliding away
when there are enough sites in the org to cause the
background scroll to be activated.
CORL-1227
* Stop checkboxes from shoving input element down
The checkbox input element that we style away
using ::before css was being shoved down the
dom non-relative to the checkbox root.
Now it's relative to the checkbox root and positioned
accordingly.
CORL-1227
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* Create a common date formatter
Updates all uses of Intl.DateTimeFormat(...)
with re-usable date time formatter functions.
The formatter functions have default formatting
options, but these can be overridden.
CORL-794
* Include options in useMemo
Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
* Make date formatting accept single locale string
Makes formatDate and createDateFormatter accept
string | string[] | undefined for the locales
argument.
CORL-794
Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* fix: ensure user editable time use setLongTimeout
* fix: fixed wrong type
* fix: fixed snapshots
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* fix: added a single retry to user create
* feat: added additional error context
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* mobile display fixes
* show button full text at larger breakpoint
* update snaps
* hardcode in media query for reaction buttons
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* correctly attach media to edited comments
* ensure media can be removed in edits
* fix: updates to support repeat post
Co-authored-by: Kim Gardner <kgardnr@gmail.com>
Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
* feat: Added Site.topStories edge
* feat: Added User.ongoingDiscussions edge
* connect discussions tab to relay
* style discussions tab
* add message if no ongoing discussions
* style site name in story row
* fix: make line-heights relative
* add custom class hooks
* feat: condition display based on feature flag
* add target attribute to story links
* fix: expose some featureFlags
* fix: fixed sorting
* fix: copy fixes
Co-authored-by: tessalt <tessathornton@gmail.com>
Co-authored-by: Chi Vinh Le <vinh@vinh.tech>
* don't save clientMutationId when creating announcement
* move mutationId filtering from resolver to mutation
Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>