* 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>
* pass custom stream css url through to html
* rename streamcssURL to customCSSURL
* only enable custom css query on stream route
* Update src/core/server/app/router/client.ts
Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
* simplify template for client html
Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
Shows "Network error. Please refresh your page
and try again." when the retry middleware times
out from too many attempts on failed/timed out
requests.
CORL-1199
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
When we set up a Slack channel, you can select to have
"All comments" sent to the slack channel. If we do this
we want staff comments to come through as well.
This wasn't happening before because there is a `staffCreated`
flag instead of `created` when a staff member comments.
So we change the trigger return type to an array, and when
a staff comment appears, return `staffCreated` as well as
`created` so the all filter lets it through.
I also changed `getBlocks(...)` to `getContent(...)` as it
now returns a JSON object with both a `blocks` array and a
`text` string field. This fixes the problem where Slack would
notifications would say "this content cannot be displayed".
Now it will say the text provided.
CORL-1172
* fix bug where dashboard would not display data for sites beyond first page of results
* remove unused param
* remove unused file
* undo rename
* rename selectedSite to site
* check that sites.edges.length is greater than 0
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
* translate error from iframe embeds
* use transtlate function for iframe error message
* fix import order
* Fix typo in translation key
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>