Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profile card hover preview #3508

Merged
merged 29 commits into from
Apr 12, 2024
Merged

Profile card hover preview #3508

merged 29 commits into from
Apr 12, 2024

Conversation

estrattonbailey
Copy link
Member

@estrattonbailey estrattonbailey commented Apr 12, 2024

Closes #2867

Key things:

  • added follow button (see new hook util)
  • awaited profile prefetch so FloatingUI can correctly calculate position on first go
  • did some debouncing to cut down on flicker + handle prefetch
  • added press handlers to all links to close when clicked
    • added to RichText as well
  • disabled on mobile web
  • I decoupled the Link from the hover card itself, see usages

Re: closing on click of a link, I didn't think it was a good experience to close on any click inside e.g. the Follow button. Seemed to make sense to handle individually.

Also I chose not to enable hashtags in profiles, but we potentially could.

CleanShot 2024-04-12 at 15 26 27@2x
CleanShot 2024-04-12 at 15 26 40@2x
CleanShot 2024-04-12 at 15 26 52@2x
CleanShot 2024-04-12 at 15 27 05@2x

mary-ext and others added 11 commits February 14, 2024 12:35
* origin/main: (455 commits)
  Use getSuggestions endpoint behind the gate (#3499)
  Added `new_profile_scroll_component` to `Gate` type (#3487)
  Fix useGate lint rule (#3486)
  Make bio area scrollable on iOS (#2931)
  Improve Android haptic, offer toggle for haptics in the app (#3482)
  Search - only enable queries once tab is active (#3471)
  [Statsig] Mark Testflight as staging tier (#3470)
  [Statsig] Typecheck gates (#3467)
  Bump to 1.77 (#3468)
  Search - extra tabs (#3408)
  notify slack on production builds (#3461)
  notify slack on production builds (#3460)
  1.76 release preparations (#3459)
  Update zh-CN translation (#3433)
  Italian Localization (#3388)
  [Statsig] Send prev route name (#3456)
  [Statsig] Instrument feed display (#3455)
  Small logic cleanups (#3449)
  Use ALF for the embed consent modal (#3336)
  Onboarding tweaks (#3447)
  ...
* origin/main:
  Fix stale Notifications after push (#3507)
  Fix: dont let notifications count go behind the icon (#3505)
  QT Jump Pt. 2 - Remove code duplication (#3506)
  Fix optimistic like/repost (#3503)
  remove build-embed from Dockerfile (#3502)
  Dont apply the content-language filter if it will remove all content (#3492)
  [Embeds] Create vite project and add to build pipeline  (#3448)
  add `likeCount` etal. to `embedViewRecordToPostView` (#3500)
Copy link

github-actions bot commented Apr 12, 2024

The Pull Request introduced fingerprint changes against the base commit: f91aa37

Fingerprint diff
[{"type":"file","filePath":"package.json","reasons":["expoConfigPlugins"],"hash":"deda9db58671251a611b4fe44df27971e7310c27"}]

Generated by PR labeler 🤖

Copy link

github-actions bot commented Apr 12, 2024

Old size New size Diff
6.36 MB 6.4 MB 33.46 KB (0.51%)

@estrattonbailey estrattonbailey marked this pull request as ready for review April 12, 2024 20:42
@haileyok haileyok force-pushed the feat/web-profile-hover branch from 6336c5d to 48beab3 Compare April 12, 2024 21:02
Copy link
Collaborator

@pfrazee pfrazee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LFG

@estrattonbailey estrattonbailey merged commit 1f61109 into main Apr 12, 2024
6 checks passed
@haileyok haileyok deleted the feat/web-profile-hover branch June 8, 2024 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants