about summary refs log tree commit diff
path: root/src/components/ProfileHoverCard
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade `@types/react` to 19 and run codemod (attempt 2) (#8918)Samuel Newman2025-09-091-2/+0
| | | | | | | | | | | | | * update dependencies * rm `import type React from 'react'` * run codemods * patch discord types * update types/react-dom * Update yarn.lock
* add profile hover card to notif items (#8666)Samuel Newman2025-08-073-3/+6
|
* Fix anchor text overflow in threads v2 (#8530)Eric Bailey2025-06-182-3/+5
|
* Hover card on anchor displayName/handle (#8479)Samuel Newman2025-06-131-1/+0
| | | | | | | | | | | * add hover to anchor display name / handle * use newer link component * Wrap using a single hover element --------- Co-authored-by: Eric Bailey <git@esb.lol>
* fix hover card width (#8392)Samuel Newman2025-05-201-3/+9
|
* Live (#8354)Samuel Newman2025-05-102-10/+42
|
* Verification (#8226)Eric Bailey2025-04-181-8/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP * Alignment with icon * Add create/remove prompts * Fill out check dialog a bit * Reorg * Handle was verified state * Add warning to edit profile * Add warning to handle dialog * Decent alignment in posts on all platforms * Refactor alignment for posts, chatlist, hover card * Disable on profile * Convo header * Compute simple verification state * Add other icon, rename, integrate * Swap in simple state for profile edits * Clean up utility hooks * Add verifications UI to dialog * Add edu nux * Revert change * Fix wrapping of check on profile * Rename * Fix gap under PostMeta * Update check dialogs * Handle takendown verifiers in check dialog * alf composer reply to * Refactor verification state * Add create/remove mutations, non-functional for now * Fix up post-rebase * Add check to first author noty * Do cache updates after mutations * DRY up hook, add to profile updates too * Add to drawer * Update account list * Adapt to new types * Hook up mutations * Use profile shadow in feeds * Add to settings * Shadow currentAccountProfile * Add invalid state to verifications * Fix alignment and overflow in Settings and Drawer * Re-integrate post rebase * Remove debug code * Update copy * Add unverified notification support * Remove link * Make sure dialog closes * Update URL * Add settings screen * Integrate new setting into verification states * Add metrics, bump package, fix bad import * NUX fixes * Update copy * Fixes * Update types * fix search autocomplete * fix lint * add display name warning to new dialog * update default prefs * Add parsing support for notifications * Bump pkg * Tweak noty styles * Adjust check alignment * Tweak check alignment * Fix badge for verifier * Modify copy --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com> Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Fix jumpy web animation for modal backdrop (#6673)dan2024-11-231-2/+2
|
* Sort imports (#6009)dan2024-10-291-2/+2
| | | | | * Mark import sort/order/style rules as error * npm run lint -- --fix
* Fixing hover card for labeler accounts (#5414)Wesley2024-09-201-0/+3
| | | | | * Fixing hover card for labeler account * removing memo
* Localize dates, counts (#5027)Eric Bailey2024-08-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | * refactor: consistent localized formatting * refactor: localized date time * refactor: localize relative time with strings * chore: fix typo from copy-paste * Clean up useTimeAgo * Remove old ago * Const * Reuse * Prettier --------- Co-authored-by: Mary <git@mary.my.id>
* Fix RTL text rendering for display names (#4747)Hailey2024-07-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * header display name rtl support * highlighted post rtl * move `NON_BREAKING_SPACE` to an external constant * rtl support in search dropdown * profile card rtl * old profile card rtl * hover card * wizard list card * new chat * account card * chat header * clean up notifications * just force LTR on meta display name
* Unify label pills (#4676)Eric Bailey2024-07-031-2/+3
| | | | | | | | | | | | | | | * 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>
* add flex shrink (#4597)Hailey2024-06-221-1/+1
|
* Disable newskie dialog tap in hover card web (#4562)Eric Bailey2024-06-181-1/+1
|
* fix native post meta (#4530)Hailey2024-06-161-1/+14
|
* Fix profile hover card blocked state (#4480)Eric Bailey2024-06-131-25/+54
| | | | | | | | | * Fix: mini profile on hover allows following a blocker/blocked user (#4423) (#4440) * Tweaks --------- Co-authored-by: Michał Gołda <michal.golda@hotmail.com>
* Show social proof in hovercards (#4502)dan2024-06-131-0/+15
| | | | | * Add social proof to hovercards * Close it more reliably
* Revert "Fix undefined block (#4471)" (#4472)Eric Bailey2024-06-111-6/+3
| | | This reverts commit 7cac413f3b397fee95681033f075d51c7c4ee153.
* Fix undefined block (#4471)Eric Bailey2024-06-101-3/+6
| | | | | | | | | | | | | | | * Fix undefined block (#4378) * Fix undefined block * Changing text and handling all blocks. * Tweaks * Hide follow button in hover card if user blocked --------- Co-authored-by: Josh <hi@oracularhades.com>
* [🐴] Don't submit the message on return press when on a phone (web input) ↵Hailey2024-05-231-2/+1
| | | | | | | | | | | | | | | (#4203) move this to the `onKeyDown` prop Revert "do the same for tablets" This reverts commit 47c709e2734f2acf34f89dd5aca42a75a2b56270. do the same for tablets don't submit message if the device is a phone on web move `onTouchStart` to `browser.ts` globals
* check `maxTouchPoints` is greater than 1, not zero (#4158)Hailey2024-05-211-1/+1
|
* [🐴] Disable hover card when blocked or blocking (#4041)Hailey2024-05-162-1/+6
|
* Fix overflowing text on web and iOS in `PostMeta` (#3982)Hailey2024-05-131-5/+5
| | | | | | | | | | | | | | | | | * `flexShrink` on iOS and web `flexShrink` on iOS and web `flexShrink` on iOS and web actually, `flexShrink` use `flex` * adjust web * `expect-error` `onMouseUp` * ignore ref type check
* Remove unnecessary Trans tags (#3888)Minseo Lee2024-05-071-7/+5
|
* Improve localization marks (#3285)Minseo Lee2024-05-061-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update Lightbox.tsx * Change strings for easier localization * Update DeleteAccount.tsx * Update LabelsOnMeDialog.tsx * Update FeedCard.tsx * Update index.tsx * Update LabelsOnMeDialog.tsx * Update index.tsx * Update FeedCard.tsx * Update SelfLabel.tsx * Update Hashtag.tsx * Update index.tsx * Update Hashtag.tsx * Update ChangeHandle.tsx * Update index.web.tsx * Update index.web.tsx * Update index.tsx * Remove unnecessary `<Trans>` tags * Update Drawer.tsx
* Replace pluralize by plural by @tkusano (#3882)Paul Frazee2024-05-061-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Replace pluralize with plural or Plural * Replace all pluralize (defined by src/lib/strings/helpers.ts) with plural or Plural (defined by @lingui/macro) to make some UI elements translatable. * Delete pluralize() and related test. * Import @formatjs polyfill libraries for plural on ios and android - ios and andorid: import `@formtjs/intl-locale` and `@formatjs/intl-pluralrules` to polyfill `Intl.Locale` and `Intl.PluralRules` which are used in `plural()` and '<Plural />'. - update `plural` use in notification messages for better translation. * Rewrite to pass lint * Add Catalan plural polyfill * more replacement * import zh plural data for zh-CN * Refactor feed header components (#2964) * Move home-related files to view/com/home * Add HomeHeader in front of FeedTabBar * Move isDekstop check outside FeedsTabBar * Remove PWI logic from tabbar * Separate platform-specific layout from shared logic * Rename Home Feed Prefs to Following Feed Prefs (#2965) * use `useOpenLink` hook for links in ALF (#2975) * use `useOpenLink` hook for links in ALF * web only for `outline` * increase timeout to 15s (#2958) * Normalize relative day (#2874) * fix: normalize relative date * chore: add comments * refactor: skip flooring normalized diff * refactor: let -> const * fix: get own copy of date to prevent mutating * refactor: rounding does the same trick * Add handle validation to create account UI (#2959) * show uiState errors in the box as well simplify copy update ui for only letters and numbers add ui validation to handle selection * simplify names * Fix accidental text-node render --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> * Make dim theme dim (#2966) * Make dim color scheme dim * Tweaks * Overall tweaks * We have to go darker * Tweak saturation of blues in dim * Increase contrast on dark-dark mode * adjust dim --------- Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: Paul Frazee <pfrazee@gmail.com> Co-authored-by: Hailey <me@haileyok.com> * Fix dim mode unread notif color * use `showControls` to show/hide live text icon on ios (#2982) * Update .po files * fix reversed icons in validator 🤦 (#2991) * Adjust `windowSize` on `PostThread` `FlatList` (#2989) * adjust window size, cells batching period * rm batching period change * Pluralize 'follow(s)' * Include a space between the msgid count and "follower(s)/following(s)" so the translator can adjust the translated count line to fit within the Drawer. * pluralie '# following' * Fix & Update * Rewrite to use Plural * rmeove unused import * When commiting changes, disable 'simple-import-sort' plugin in .eslintrc.js to sync with bluesky-social:main * Revert simple-import-sort/imports related changes * Move ProfileHoverCard web to plural util * Followings -> following * Add plural following to hovercard * Followings -> Following --------- Co-authored-by: Takayuki KUSANO <kusano@tkusano.jp> Co-authored-by: Takayuki KUSANO <65759+tkusano@users.noreply.github.com> Co-authored-by: dan <dan.abramov@gmail.com> Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Mary <148872143+mary-ext@users.noreply.github.com> Co-authored-by: Eric Bailey <git@esb.lol>
* Performance improvements: structural sharing & moderation opts context (#3785)Paul Frazee2024-04-301-1/+1
| | | | | | | | | | | | | * Fix: correctly apply structural sharing to preferences object * Move moderation opts into a context * Fix import * Remove log * Pass userdid directly * Pass moderationPrefs directly
* Reduce hovercard false positives, add them to display names and handles (#3739)dan2024-04-281-5/+13
| | | | | | | * Don't trigger hovercards on scroll * Add display name / handle hovercards * Increase hovercard delay
* properly animate the profile hover card (#3590)Hailey2024-04-171-6/+6
| | | | | | | * properly implement with `isOpen` and `isPositioned` * well, this works just as well * add `willChange`
* Add hovercards to "Reply To" (#3587)dan2024-04-161-3/+3
| | | | | * Add hovercard for Reply To * Tweak durations
* Scrolling while target is hovered and card is visible should hide the card ↵dan2024-04-161-36/+78
| | | | | | | | | | | | | | | | | | | (#3586) * Don't remove the effect, it's not needed here (and wrong) * Differentiate between hovering target and card * Group related code closer * Hide on scroll away * Use named arguments * Inline defaults * Track reason we're showing * Only hide on scroll away while hovering target
* Restructure feed hover state machine code (#3550)dan2024-04-161-57/+77
|
* Fix hover card animation with a reducer (#3547)dan2024-04-141-85/+138
|
* Fix oopsie (#3538)dan2024-04-131-0/+1
|
* Fade in animation for card (#3521)Hailey2024-04-131-59/+107
| | | | | | | | | | | | | | | | | | | | | | | | | * fade in and out the card one more fix dont leave an invisible card behind okay just about there move styles glitch clear hide timeouts on card enter about there * Tweak timings * Rewrite with explicit states --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* Profile hovers (#3518)Eric Bailey2024-04-132-1/+5
| | | | | | | | | * Add hover card for mentions * Reposted by * Fix key * Add to composer reply to
* wait a sec before showing card (#3516)Hailey2024-04-121-9/+13
|
* Profile card hover preview (#3508)Eric Bailey2024-04-123-0/+301
* feat: initial user card hover * feat: flesh it out some more * fix: initialize middlewares once * chore: remove floating-ui react-native * chore: clean up * Update moderation apis, fix lint * Refactor profile hover card to alf * Clean up * Debounce, fix positioning when loading * Fix going away * Close on all link presses * Tweak styles * Disable on mobile web * cleanup some of the changes pt. 1 * cleanup some of the changes pt. 2 * cleanup some of the changes pt. 3 * cleanup some of the changes pt. 4 * Re-revert files * Fix handle presentation * Don't follow yourself, silly * Collapsed notifications group * ProfileCard * Tree view replies * Suggested follows * Fix hover-back-on-card edge case * Moar --------- Co-authored-by: Mary <git@mary.my.id> Co-authored-by: Hailey <me@haileyok.com>