about summary refs log tree commit diff
path: root/src/components/moderation
Commit message (Collapse)AuthorAgeFilesLines
* Fix post thread item hider line height crop (#8028)Samuel Newman2025-03-201-1/+3
|
* Add context for toast messages (#7902)Minseo Lee2025-03-061-1/+1
| | | | | * add context for toast * add
* Add report dialog e2e tests (#7913)Eric Bailey2025-03-051-0/+6
|
* Add metrics to reporting flow (#7871)Eric Bailey2025-03-011-2/+21
| | | | | * Add metrics to reporting flow * Remove vestigial state
* New reporting flow (#7832)Eric Bailey2025-02-288-0/+1191
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add option to align web dialogs to top * Add new wait util * Pipe through feed view to feed components * Reset unneeded change to main * Copy over fresh report dialog based on old * Hack in temp testing data * Swap in new dialog in all cases but chat * Cleanup * Add load and initial error state * Fill in states * Add copyright link * Handle single labeler case * Comment out debug code * Improve centering of type in circles * Open details if Other is selected * Remove debug code * Tweak colors * Bump SDK * Tweak Admonition for better x-platform styles * Add retry button * Add close button * Remove todo not covered in this PR * Translate Retry
* label pref alignment (#7844)Samuel Newman2025-02-251-0/+1
|
* Dedupe profile labels (#7833)Samuel Newman2025-02-242-6/+6
| | | | | * dedupe labels * apply to postalerts
* [APP-1049] show label expiration in frontend (#7738)Eric Bailey2025-02-182-37/+115
| | | | | | | | | | | | | * Add support for label exp to LabelsOnMeDialog * Add exp to PostAlerts, align with LabelsOnMe UI * Bump weight * Improve translations * Expiry should round up * Add a little visual alignment hack
* Refine accessibilityHint (#7554)Minseo Lee2025-02-112-4/+4
| | | | | | | | | | | | | | | * `accessibilityHint` * accessibilityHint * Update Co-Authored-By: jason-me <mail@jason-hester.me> * Update LoginForm.tsx --------- Co-authored-by: jason-me <mail@jason-hester.me>
* refine plural marks (#7065)Minseo Lee2024-12-121-11/+17
|
* Leverage jsx transform to remove unnecessary react imports and update eslint ↵Paul Coroneos2024-11-194-4/+0
| | | | | | | | | config (#6516) * update eslint config with jsx runtime * leverage jsx transform to remove unnecessary react imports and update eslint config * run yarn lint --fix to remove eslint disables related to react/prop-types that is now disabled
* Optimize ContentHider (#6501)dan2024-11-181-9/+31
|
* Make `ToggleButton` full width everywhere (#6302)Eric Bailey2024-11-131-5/+4
| | | | | | | | | * Fix 'Show badge' button label being cut off (#6215) * Make em full width --------- Co-authored-by: Khuddite <62555977+khuddite@users.noreply.github.com>
* fix warning on labeler profile: emoji detected but emoji not enabled (#6011)Ben Harris2024-10-301-3/+5
|
* Sort imports (#6009)dan2024-10-292-3/+3
| | | | | * Mark import sort/order/style rules as error * npm run lint -- --fix
* Add graphic media self label (#5758)Hailey2024-10-161-3/+65
| | | | Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* Fix layout bugs in appeals dialog (#5657)Hailey2024-10-081-1/+3
|
* Restored the dot in the message displayed in the moderation details dialog ↵Takayuki KUSANO2024-10-071-0/+1
| | | | (#5622)
* Enclose the entire message in Trans tags for translation (#5616)Takayuki KUSANO2024-10-052-19/+23
|
* [Sheets] [Pt. 1] Root PR (#5557)Hailey2024-10-042-51/+53
| | | | | | | Co-authored-by: Samuel Newman <mozzius@protonmail.com> Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: dan <dan.abramov@gmail.com> Co-authored-by: Hailey <me@haileyok.com>
* [Neue] Handle emoji within custom font (#5449)Eric Bailey2024-09-242-4/+10
| | | | | | | | | | | | | * Support emoji in text with custom font * Add emoji support to elements that need it * Remove unused file causing lint failure * Fix a few more emoji locations * Couple more * No throw
* [Neue] Font weights (#5442)Eric Bailey2024-09-203-14/+7
| | | | | | | * Align all font weights * Only load necessary fonts * Also comment out from hook
* [Neue] Buttons (#5406)Eric Bailey2024-09-201-2/+2
| | | | | | | | | | | * Re-align button sizing (cherry picked from commit bcec243bb59dfe468313d98ba61f464d9750feec) * Use large, small, tiny (cherry picked from commit 1dc333c2993ab7f2e0ac750c0670dcec9a7069d0) * Tweaks
* Ensure profile labels can be appealed separately from account labels (#5154)Eric Bailey2024-09-042-21/+11
|
* Detached QPs and hidden replies (#4878)Eric Bailey2024-08-212-6/+27
| | | | Co-authored-by: Hailey <me@haileyok.com>
* Fix hidden list for author (#4968)Eric Bailey2024-08-211-1/+1
|
* Add `list hidden` screen (#4958)Hailey2024-08-202-2/+91
| | | | | Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Eric Bailey <git@esb.lol>
* Remove .withProxy() calls (#4929)dan2024-08-131-29/+14
|
* Fix overflow on posts (#4899)Samuel Newman2024-08-081-20/+2
| | | | | | | | | | | | | | | | | * overflow posts, via contentHider * margin->padding for a bit more leeway * overflow notifications * overflow on header * revert from contenthider, put on text in all places * fix zalgo text in handle in composer --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* Respect labels on feeds and lists (#4818)Eric Bailey2024-08-021-6/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Prep * Pass in optional moderation to FeedCard * Compute moderation decision, filter contentList contexts, pass into card * Let's go a different route * Filter from within search queries * Use same search query for starter packs * Filter lists from profile tabs * Cleanup * Filter from profile feeds * Moderate post embeds * Memoize * Use ScreenHider on lists * Hide both list types * Fix crash on iOS in screen hider, fix lineheight * Memoize renderItem * Reuse objects to prevent re-renders
* Add labels to mod details dialog (#4839)Eric Bailey2024-07-251-3/+10
|
* Add labels to a few missing places (#4838)Eric Bailey2024-07-252-6/+15
|
* Use appropriate icons for toasts (#4803)Samuel Newman2024-07-231-1/+1
| | | | | | | | | | | | | * use appropriate icons for toasts * use info for session expiry * tweak size * message -> safeMessage --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* [Session] Experiment: Don't use withProxy (#4762)dan2024-07-101-9/+30
| | | | | * Reorder statements * Remove withProxy() usage behind a gate
* Unify label pills (#4676)Eric Bailey2024-07-033-185/+43
| | | | | | | | | | | | | | | * New label pills * Fix type errors, add default case * Remove negative margin, only works in some places * Fix alignment edge case * Add a bit of padding --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Collection of moderation fixes (#4566)Paul Frazee2024-06-192-2/+12
| | | | | | | | | | | | | | | * Fix: dont blur parents in threads that embed blocks * After tapping 'Show hidden replies', show the individual hider cards * Add shape override to UserAvatar and fix the fallback avi for labelers * Fix precedence * Detect shape for DefaultAvatar --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Fix profile hover card blocked state (#4480)Eric Bailey2024-06-131-2/+11
| | | | | | | | | * Fix: mini profile on hover allows following a blocker/blocked user (#4423) (#4440) * Tweaks --------- Co-authored-by: Michał Gołda <michal.golda@hotmail.com>
* Only enable keyboard controller when necessary (#4483)Samuel Newman2024-06-111-2/+0
| | | | | | | | | | | | | | | | | | | * Only enable keyboard controller when necessary * make it screen only * rm keyboard padding * rm keyboardpadding file * revert using keyboard controller in composer * remove styles.outer (unnecessary for revert) * continue to use keyboard padding in the report dialog for dms --------- Co-authored-by: Hailey <me@haileyok.com>
* [🐴] Add labels to chats (#4293)Eric Bailey2024-05-311-1/+3
| | | | | | | | | | | * Add labels to chat list * Add to convo header * Prevent click through on PostAlert buttons * Fix space * Fix alignment
* [🐴] Record message (#4230)Samuel Newman2024-05-311-7/+10
| | | | | | | | | | | | | | | | | | | | | | | * send record via link in text * re-trim text after removing link * record message * only show copy text if message + add translate * reduce padding * adjust padding * Tweak spacing * Stop clickthrough for hidden content * Update bg to show labels --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Interpret 'hide' setting as ALWAYS hiding from thread replies (#4263)Paul Frazee2024-05-301-1/+4
|
* Improve the visual clarity of labels on profiles and posts (#4262)Paul Frazee2024-05-302-15/+53
| | | | | * Update PostAlerts rendering to show the avi of the labeler rather than the display name; also add size variations * Update ProfileHeaderAlerts to match PostAlerts behavior
* Replace getAgent() with reading agent (#4243)dan2024-05-281-2/+2
| | | | | * Replace getAgent() with agent * Replace {agent} with agent
* Improve moderation behaviors: show alert/inform sources and improve UX ↵Paul Frazee2024-05-243-30/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | around threads (#3677) * Dont show account or profile alerts and informs on posts * Sort threads to put blurred items at bottom * Group blurred replies under a single 'show hidden replies' control * Distinguish between muted and hidden replies in the thread view * Fix types * Modify the label alerts with some minor aesthetic updates and to show the source of a label * Tune when an account-level alert is shown on a post * Revert: show account-level alerts on posts again * Rm unused import * Fix to showing hidden replies when viewing a blurred item * Go ahead and uncover replies when 'show hidden posts' is clicked --------- Co-authored-by: dan <dan.abramov@gmail.com>
* Add padding to dialogs when keyboard is open on Android (#4182)Hailey2024-05-231-1/+2
| | | | | | | | | * add keyboard padding to android dialogs * missing `keyboardDismissMode` for `ScrollableInner` * add to `MutedWords` * add to `LabelsOnMe`
* [🐴] Appeal form for disabled DMs (#4126)Samuel Newman2024-05-201-9/+19
| | | | | | | * add appeal dialog * use useMutation for the labels on me dialog * replace text button with small button
* fix typo (#4060)Hailey2024-05-161-2/+2
|
* Make more localizable (#3962)Minseo Lee2024-05-141-4/+4
| | | | | | | | | | | | | | | | | * Update ProfileList.tsx * Update NoFollowingFeed.tsx * Update LabelsOnMeDialog.tsx * Update LabelsOnMeDialog.tsx * Update NoFollowingFeed.tsx * Update SavedFeeds.tsx * Revert "Update SavedFeeds.tsx" This reverts commit db128eb27d76d27dffa87e0e70e34f603da75778.
* Show "label has been placed..." even for self-labels (#3874)Hailey2024-05-112-38/+62
| | | | | | | | | | | | | | | | | | | * show labels placed on your content even if it's a self-label even friendlier wording friendlier wording remove unnecessary `export` temp revert reordering show labels placed on your content even if it's a self-label * Bump api 0.12.9 --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Movable following feed (#3593)Eric Bailey2024-05-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Handle home algo with backwards compat * Remove todo, fix pwi view * Simplify filter logic * Handle edge case * Handle home algo in FeedSourceCard * Fix handling of pinned feed if home algo is disabled * Handle home algo on ProfileFeed screen * Rename * Fix pinned feeds key * Improve perf of pinned feeds with primary algo * Update statsig API * Revert unneeded changes * Support following feed as well * Better formatting * Clarify primary algo usage * Better comment * Handle saved feed screen edge case * Restore Feeds sparkle, fix line height * Move gate call down * Filter out primary algo from feeds page * Filter dupe from Feeds screen * Simplify logic * Missing following handling * Hide primary feed setting outside exp * Revert testing change * Migrate usePinnedFeedInfos * Migrate FeedSourceCard * Migrate Feeds screen * Migrate SavedFeeds screen * Handle timeline in feed infos * Finish migrating ProfileFeed, FeedSourceCard * Migrate ProfileList * Finalize mutation hooks * Allow unsaving lists * Handle following feed on Feeds screen * Handle following on SavedFeeds * Get rid of deprecated interface usages * Handle no pinned feeds * Handle no feeds on Feeds screen * Reuse component on SavedFeeds screen * Handle no following feed * Remove primary algo references * Migrate to new plural APIs * Remove unused event * Prevent duplicate keys * Make handling much more clear * Dedupe useHeaderOffset * Filter unknown feed types at source * Use just following * Immprove key handling * Resume from last tab * Bump sdk * Revert Gemfile * Additional protection in FeedSourceCard * Fix ProfileList save/unsave handling * Translate * Translate * Match existing handling post-signup * Ensure onboarding results in correct selected feeds * Some testing tweaks on create/onboarding * Revert primary algo consderations * Remove comment * Handle default feed setting * Rm unnecessary type cast * Remove premature gate check * Remove nullable check in onPageSelecting, assume the pager checks bounds * Use null for default selected feed * Rm unrelated change * Remove the concept of __key__ I don't think this concept is consistent. It's introduced on FeedSourceInfo which is used both by pinned feeds and by useFeedSourceInfoQuery. Pinned feeds use the pinning ID there. But there is no pinning ID for useFeedSourceInfoQuery. So this means this field is sometimes one thing and sometimes some other thing. That is a decent sign that it shouldn't be on that type at all. It's not used anywhere except the desktop feed enumeration. It seems reasonable to assume there that we wouldn't want to show the same feed URL twice. (And if it does occur in the array twice, IMO we should solve that at the API level and dedupe it on read or next write.) So I think we should just use the URL in that place. (I used the descriptor, which is equivalent.) * Dedupe pinned feeds by URL on read * Filter timeline out of mergefeed sources * Put FeedDescriptor into FeedSourceInfo * Group saved info with feed for pins This removes a loop within a loop within a loop. * Fix Feeds link on native --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>