Skip to content

chore(discover): hide Farcaster tab from Trending#7414

Merged
DanielSinclair merged 4 commits intodevelopfrom
daniel/hide-farcaster
May 5, 2026
Merged

chore(discover): hide Farcaster tab from Trending#7414
DanielSinclair merged 4 commits intodevelopfrom
daniel/hide-farcaster

Conversation

@DanielSinclair
Copy link
Copy Markdown
Contributor

APP-3655

What changed

  • Removes the Farcaster category pill from the Trending filter row; only Trending and New remain
  • On first launch, any persisted Farcaster selection is reset to Trending β€” without this, users who had it selected would see Farcaster content with no pill to escape

Screen recordings / screenshots

What to test

  • Discover β†’ Trending: only "Trending" and "New" pills visible
  • Sim previously set to Farcaster: resets to Trending on launch
  • Trending ↔ New switching works as before

@DanielSinclair DanielSinclair requested a review from olerass April 30, 2026 08:43
@github-actions
Copy link
Copy Markdown

Launch in simulator or device for c5d04de

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 30, 2026

πŸ§ͺ Flashlight Performance Report (AWS Device Farm)

πŸ”€ Commit: 6c7b68a

πŸ“Ž View Artifacts

Metric Current Ξ” vs Baseline
Time to Interactive (TTI) 5603 ms βšͺ -52.5 ms (-0.9%)
Average FPS 56.71 βšͺ +0.0 (+0.1%)
Average RAM 396.3 MB πŸ”΄ +5.1 MB (+1.3%)

@olerass
Copy link
Copy Markdown
Contributor

olerass commented May 1, 2026

Trying to understand the intent here a bit better. The ticket and PR both describe what's changing (hide the pill, reset persisted selections) but I'm not totally sure what's driving it? Product call ahead of the discover-v2 TF, or something else?

I'd assumed perf at first (BACK-1700) but AFAIU that ticket is about the per-token farcaster_users payload, which still comes through in every trending response regardless of category so hiding the pill doesn't really cut it. Could def be missing context here.

Also slightly confusing that this is the base of the discover-v2 stack, since #7415-#7420 don't seem to touch TrendingTokens or anything farcaster.

Copy link
Copy Markdown
Contributor

@ibrahimtaveras00 ibrahimtaveras00 left a comment

Choose a reason for hiding this comment

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

Looks good on both OS's βœ…

@DanielSinclair
Copy link
Copy Markdown
Contributor Author

@olerass This is the prerequisite for Discover v2; this Trending UI is fully redesigned in Phase 2 and this feature/datasource is currently deprecated and not maintained by backend. The existing Trending algorithm still remains somewhat active but there will be another PR for the new Trending UI and algorithm (TBD) later on. #7417 is where we start to implement the new UI on the Discover screen, so there is some component overlap there.

@olerass
Copy link
Copy Markdown
Contributor

olerass commented May 4, 2026

@olerass This is the prerequisite for Discover v2; this Trending UI is fully redesigned in Phase 2 and this feature/datasource is currently deprecated and not maintained by backend. The existing Trending algorithm still remains somewhat active but there will be another PR for the new Trending UI and algorithm (TBD) later on. #7417 is where we start to implement the new UI on the Discover screen, so there is some component overlap there.

ahh got it, that helps. Backend deprecation is a good driver, wasn't clear from the ticket/description πŸ™ .

One Q to check my understanding: when you say deprecated/unmaintained, does that also cover the per-token farcaster stuff (highlightedFriends / "friends who bought" rows from the now hidden content?) Afaiu BACK-1700 is about that payload specifically, so if it's all deprecated the bigger cleanup is dropping that surface entirely (both the pill and thw rows) which would then close out BACK-1700 in the process.

If yes, prob worth scoping this PR a bit bigger. If no, fine as-is though 18n t.filters.categories.FARCASTER could prob be rmed in this PR too since the button was the only user of it.

@DanielSinclair DanielSinclair enabled auto-merge (squash) May 5, 2026 09:12
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

Launch in simulator or device for 0683359

@DanielSinclair DanielSinclair force-pushed the daniel/hide-farcaster branch from d9d174d to 0b326f4 Compare May 5, 2026 18:31
@DanielSinclair
Copy link
Copy Markdown
Contributor Author

@olerass The backend tickets you had mentioned were fairly dated from the old Trending work, so closed them. We do still rely on the "farcaster friends" lookup for the current Trending list, and that will soon be deprecated/removed, but I did find a few other dead code path cleanups that I completed here for the Farcaster and Rainbow trending categories to simplify that further.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

πŸ’‘ Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0b326f43b3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with πŸ‘.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +720 to 723
const { category } = useTrendingTokensStore.getState();
const isStalePersistedCategory = !categories.some(availableCategory => availableCategory === category);
if (isStalePersistedCategory) {
useTrendingTokensStore.getState().setCategory(categories[0]);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Normalize stale categories before querying

For users whose persisted trending-tokens store still contains the removed Rainbow or Farcaster category, this cleanup runs only in a useEffect, after TrendingTokenData has already rendered and useTrendingTokensData() has constructed/fired the query with the stale category. That is especially problematic for Rainbow now that the special fetchRainbowTokens branch was removed: it gets sent as $category: TrendingCategory to the Arc GraphQL query (src/graphql/queries/arc.graphql:506), even though it was only a local string category before. Normalize during store hydration/migration, or clamp the category before building the query args, so stale persisted values never reach the query layer.

Useful? React with πŸ‘Β / πŸ‘Ž.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

Launch in simulator or device for 6c7b68a

@DanielSinclair DanielSinclair merged commit 75721b6 into develop May 5, 2026
22 checks passed
@DanielSinclair DanielSinclair deleted the daniel/hide-farcaster branch May 5, 2026 18:49
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.

3 participants