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

Feat(CN-472): add category filter with discover category deeplink param #7565

Conversation

beths-ledger
Copy link
Contributor

@beths-ledger beths-ledger commented Aug 8, 2024

✅ Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • DESKTOP ONLY: ledgerlive://discover?restaking should load discover section with "Restaking" tagged platforms pre-filtered.
    • Other categories should filter by those categories
    • invalid category does not return any results

📝 Description

Add discover section deep link initial category filter to enable links like ledgerlive://discover?category=restaking to load the discover section with an initial category pre-selected.

This is required for the new "restaking" banner on earn dashboard.

Routes with a discover platform app id will not be impacted.

ledgerlive://discover?category=restaking
image

❓ Context


🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

@beths-ledger beths-ledger requested review from a team as code owners August 8, 2024 17:55
Copy link

vercel bot commented Aug 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web-tools ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 9, 2024 11:08am
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview Aug 9, 2024 11:08am
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Aug 9, 2024 11:08am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Aug 9, 2024 11:08am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Aug 9, 2024 11:08am

@live-github-bot live-github-bot bot added desktop Has changes in LLD common Has changes in live-common labels Aug 8, 2024
/** e.g. "all", "restaking", "services", etc */
export type CategoryId = Categories["selected"];

export function useCategories(manifests, initialCategory?: CategoryId): Categories {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@marcotoniut-ledger this will be needed for the LLM route

@beths-ledger beths-ledger changed the title Feat(CN-472): category param deeplink filter on discover Feat(CN-472): add category filter with discover category deeplink param Aug 8, 2024
Copy link
Contributor

@Justkant Justkant left a comment

Choose a reason for hiding this comment

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

I think we might want to see if we can simplify the changes as I don't think most of them are necessary for the goal

@beths-ledger beths-ledger force-pushed the feat/live-cn-472-category-param-deeplink-filter-on-discover branch from d0c6a46 to 369af50 Compare August 9, 2024 09:59
Copy link
Contributor

@Justkant Justkant left a comment

Choose a reason for hiding this comment

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

Latest small detail

@beths-ledger beths-ledger merged commit d0536f6 into develop Aug 13, 2024
60 of 62 checks passed
@beths-ledger beths-ledger deleted the feat/live-cn-472-category-param-deeplink-filter-on-discover branch August 13, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Has changes in live-common desktop Has changes in LLD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants