mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 23:26:19 +08:00
6d803b0179
* Add a ban user action to the stream moderation drop down CORL-382 * Show banned stated for user in stream moderation drop down If the user is actively banned, the ban user option will be disabled and show a status of "banned". CORL-382 * Create utility for generating random stories, comments, and users CORL-382 * Add ban and suspension values to baseUser in fixtures CORL-382 * Updated banned.spec.tsx to use new test utilities for generating fixture data CORL-382 * Prevent users from being able to ban themselves in the moderation dropdown CORL-382 * Kill optimistic response errors for comment mutations Set the author.status.current to an empty array so it stops complaining about it being unused. CORL-382 * Rename util in tests to helpers/fixture.ts CORL-382 * Remove unused import from CreateCommentReplyMutation.ts CORL-382 * Put back the optimistic ban responses into comment mutations The warnings spewing out during tests are false, for further detail please see: https://github.com/facebook/relay/pull/2760 CORL-382 * Denormalize generated stories and comments CORL-382 * Clean up import ordering in ModerationActionsContainer.tsx CORL-382 * Inject appropriate scoped items into callbacks for moderation dropdown CORL-382 * Set optimistic response author status from known viewer status CORL-382 * fix: Make in stream banning work * feat: Send translated email + reject comment + fix tests * test: add feature test * feat: add copy mentioning comment rejection * chore: improve loading state * chore: add tiny comment