* Create preliminary account deletion program flow
Does not validate password as of yet.
Does not submit a mutation to begin deletion scheduling.
CORL-236
* Create preliminary account deletion confirmation form and schema mutation
Hooks up validation and error handling to confirm the user's
password during account deletion.
Scheduling the account deletion is not implemented yet.
CORL-236
* Update requestAccountDeletion to set the user's scheduled deletion date
CORL-236
* Create preliminary cron job for scheduled account deletions
CORL-236
* Show tombstoned comments when the user has deleted their account and comments
CORL-236
* Pull in client locales for date formatting on account deletion steps
CORL-236
* Update more areas due to comment revision being nullable
CORL-236
* Allow users to cancel their account deletion request
CORL-236
* Show account deletion callout at the top of the profile stream tab
CORL-236
* Further comments and edge case handling for deleted comments site wide
CORL-236
* Show account deletion callout in the comments stream tab
CORL-236
* Send out emails during relevant account deletion events
- Confirm deletion requested
- Cancellation of deletion request
- Account deletion completed
CORL-236
* Unset emails when deleting user accounts instead of setting to null
Fixes email index collision error from setting multiple emails to null.
CORL-236
* Show organization email in account deletion steps
CORL-236
* Mark comments as deleted so that we can properly tombstone them in the stream
CORL-236
* Fix improper templating for account deletion completed emails
Sub organization name in where previously we were using the account username.
CORL-236
* Disable user drawer and display deleted flag on users in community
CORL-236
* Check for author before passing inReplyTo in ModerateCardContainer
Sometimes null when user is deleted.
CORL-236
* Tombstone moderate cards when the underlying comment is deleted
CORL-236
* Re-add deleted field to CommentContainer fragment
CORL-236
* Disable commenting or replying when user is scheduled for deletion
CORL-236
* Add snapshot tests around deletion states for comment cards and forms
CORL-236
* Add tests around the account deletion steps
CORL-236
* Set account deletion to run every 30 minutes
CORL-236
* Rename DELETION authorization to PENDING_DELETION
CORL-236
* Change log message for when account deletion tasks finds no more users to delete
CORL-236
* Update snapshots to handle proper deleted flag for scheduled deleting users
CORL-236
* Fix import ordering on various files to match coding standards
CORL-236
* Specify tenantID when querying for user during deletion
CORL-236
* Add back missing clientMutationId on cancelAccountDeletion mutation
CORL-236
* Use $unset to clear the scheduledDeletionDate
CORL-236
* Simplify create of scheduledAccountDeletion CRON function
CORL-236
* Rename and organize scheduledTask creation logic
- Rename startCronJobs to startScheduledTasks
- Return an object of named ScheduledTask items instead of an array of tasks
CORL-236
* Add comment about returning updated user when clearing scheduledDeletionDate
CORL-236
* Remove unnecessary array around tenant.locale in dateTime formatter
CORL-236
* Remove unnecessary non-null enforcement on tenant.id
CORL-236
* Remove string templated React element content
CORL-236
* Move english translated validation error to correct language file
CORL-236
* Simplify rendering of DeletionRequestCallout when deletionDate isn't available
CORL-236
* Use ternary expression instead of multiple {bool && (...)} checks
CORL-236
* Use classes object with line child style to style the step bar
CORL-236
* Update StepBar so that children of Step nodes can be undefined
Allows us to not have to insert empty placeholder strings/elements when
we want to have an empty step node.
CORL-236
* Remove use of luxon from account deletion request callouts for now
We need to decide if the extra 15KB from luxon is worth it in our bundles
before making this change.
CORL-236
* Remove unnecessary embed/deleteAccount endpoint
CORL-236
* Move DeleteAccountModal contents into a separate component
Cleans up the state management when user closes the modal and we
need the modal steps to restart.
CORL-236
* Remove localization around delete account button icon
CORL-236
* Use inline `collection(mongo)` in clearing and setting deletion date
CORL-236
* Simplify form state validation on account deletion confirm page
CORL-236
* Add todo to iterate over tenants in account deletion
CORL-236
* Remove punctuation and add context to logger messages during account deletion
CORL-236
* Break out mongo collection initialization into a shared object
Also adds a try catch error handling around the scheduled deletion
operations. Prevents errors from taking the server down.
CORL-236
* Add TODO to extract out a common formatter for date times
CORL-236
* Update translations for account deletion details
CORL-236
* Update translations for account deletion completion page
CORL-236
* During scheduled deletion, when locking deletion date, return modified user
CORL-236
* Remove un-necessary fragment container around deletion steps component
CORL-236
* Move preventSubmit outside of render function on ConfirmPage
CORL-236
* Convert collections into object of Mongo db collection initializers
Allows us to only initialize the collections we need with our
Mongo instance.
CORL-236
* Remove un-necessary lambda wrapping around collections initializer functions
CORL-236
* wire up suspension modal
* show user suspended callout on stream
* prevent comment actions for suspended users
* set default to 3 hour suspension
* add message field to suspension
* allow custom message for suspension
* show suspend success modal
* fix type errors
* remove unused code
* update styles
* fix fixture for streams
* add suspension ui tests
* fix types
* remove warnings?
* remove snapshot
* fix merge conflicts
* allow custom email message when banning users
* fix typo
* correct message type
* use final-form in suspend modal
* refactor suspend modal to use final-form
* refactor ban modal to use final-form
* refactor userStatusChangeContainer to use useCallback
* feat: improve translated form
* fix: addressed issue caused by i18n refactor
* update getMessage to accept arguments, remove format method
* translate suspend info
* change hour format
* make message a mandatory input for suspend and ban user
* fix types in user table
* Revert "fix types in user table"
This reverts commit d396e90b88bb1bd354c5cdbdd72b6d8f1ab72929.
* fix types for user table
* fix: small review tweaks
* Create unit tests around the user drawer
CORL-443
* Update comment fixture generation to include reason metadata, action counts
CORL-443
* Add a user status drop down to the user history drawer
CORL-227
* Refactor UserHistoryDrawer tabs and queries for consistency
CORL-234
* Create and empty account history tab in the user drawer
CORL-234
* Create preliminary account history tab queries
Massages the suspension and ban history together into a usable format.
Sorts the ban and suspension history by date, ascending.
Ready to process the history data into components to make up the future
table records.
CORL-234
* Style the user drawer account history records into table format
CORL-234
* Fix typo in admin localization around banned text
CORL-234
* Update suspension record to support templated insertion of timespan
CORL-234
* Create localized parsing of suspension times for account history
CORL-234
* Handle errors when loading the user drawer account history
CORL-234
* Adjust margins of tab content relative to the tab controls
CORL-234
* Extract suspension record time calculations out of component
CORL-234
* Handle when a user has no account history
CORL-234
* Adjust line height to prevent cutting off usernames in community table
CORL-234
* Override hover behaviour for user drawer account history rows
CORL-234
* Adjust default column widths in user drawer - account history
CORL-234
* Use react node type instead of any for component substitution
CORL-234
* Rename TabType to UserTabs
CORL-234
* Use nullable type instead of strict typing using OR's
CORL-234
* Set UserStatusChangeContainer fullWidth default to false
CORL-234
* Combine timed suspension localization into one Localized element
CORL-234
* fix: useMemo on history bar
* Rename UserHistoryDrawerAccountHistory to UserDrawerAccountHistory
Cleans up the agglutination's on these file names.
Probably means we should rename UserHistoryDrawer... to
UserDrawer... everywhere. Will get to that later.
CORL-234
* Reorder imports to match alphabetization preferences
CORL-234
* feat: simplication to action table
* feat: visual tweaks
* chore: added notes for deprecating
* Create unit tests around the user drawer
CORL-443
* Update comment fixture generation to include reason metadata, action counts
CORL-443
* Move testRenderer construction outside of act() operations
CORL-443
* Add a user status drop down to the user history drawer
CORL-227
* Update snapshots to handle status change dropdown full width styling
In other areas we want to override the full width: 100% styling of the
status change drop down. By default, we turn it on. This added a class
to the element that needs to be updated in the snapshots.
CORL-227
* Ignore the user history drawer tests for the time being
Getting an Invariant Violation: Unable to find node on an unmounted component.
when the UserStatusChangeContainer is present on the UserHistoryDrawerQuery.
CORL-227
* Align the user drawer status label and button text
CORL-227
* Update community tests to handle removal of dot icon from user status
CORL-227
* Move the user history drawer into shared location that all admin routes access
CORL-443
* Move the moderate card to the shared components for admin
CORL-443
* Add a user drawer to the community area of the admin section
CORL-443
* Touch up missing tabs in UserRow.css
CORL-443
* Create unit tests around the user drawer
CORL-443
* Move toxicity label to new shared component location to fix rebase
CORL-443
* Update comment fixture generation to include reason metadata, action counts
CORL-443
* Rename userDrawerID to userDrawerUserID
CORL-443
* Clean up imports on user drawer unit tests
CORL-443
* Add coral-test to the jest config paths
CORL-443
* Add todo around creating predictable date times for test fixtures
CORL-443
* Move testRenderer construction outside of act() operations
CORL-443