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: ✨ SpamFiltering for NFTs TX in LLM #8241

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

mcayuelas-ledger
Copy link
Contributor

@mcayuelas-ledger mcayuelas-ledger commented Oct 29, 2024

✅ Checklist

  • npx changeset was attached.

  • Covered by automatic tests.

  • Impact of the changes:

  • Transaction Filtering:
    Implementation of a new feature to filter transactions involving spam NFTs. This ensures that only valid and relevant transactions are considered within the system.

  • Whitelist and Enhancement of HiddenCollection:
    Addition of a whitelist to control the addresses and accounts authorized to interact with the system, enhancing the security and reliability of processed transactions.
    Improvements made to the HiddenCollection object to optimize the management and storage of hidden NFT collections.

  • Automatic Synchronization:
    Implementation of automatic synchronization every 6 hours to refresh and filter NFTs via the Simplehash API. This ensures that the data remains up-to-date and relevant.

  • Refresh on Account Addition:
    When new accounts or addresses are added, the filtering request is automatically re-triggered. This guarantees that new entries are immediately taken into account in the filtering process.

  • Add loading "Hiddencollections" to avoid load everything fully

📝 Description

  • Usage of useNftCollections instead of useNFTGalleryFilter everywhere
  • HiddenCollection screen now slice collections to not load everything at one time
  • useSyncNFTsWithAccounts is used and works exactly the same as LLD
  • Filtering TX from Tx
Puffer.mov

❓ 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)

Copy link

vercel bot commented Oct 29, 2024

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

5 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview Oct 31, 2024 1:04pm
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Oct 31, 2024 1:04pm
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Oct 31, 2024 1:04pm
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Oct 31, 2024 1:04pm
web-tools ⬜️ Ignored (Inspect) Visit Preview Oct 31, 2024 1:04pm

@live-github-bot live-github-bot bot added the mobile Has changes in LLM label Oct 29, 2024
@mcayuelas-ledger mcayuelas-ledger force-pushed the feat/spam-filtering-tx-useNFTfilter-LLD branch from a96bcd1 to 5a9c4c3 Compare October 29, 2024 16:12
@mcayuelas-ledger mcayuelas-ledger force-pushed the feat/spam-filtering-tx-LLM branch from 0cf8861 to 996b053 Compare October 30, 2024 08:36
@live-github-bot live-github-bot bot added desktop Has changes in LLD common Has changes in live-common ledgerjs Has changes in the ledgerjs open source libs translations Translation files have been touched labels Oct 30, 2024
@mcayuelas-ledger mcayuelas-ledger force-pushed the feat/spam-filtering-tx-useNFTfilter-LLD branch from 5a9c4c3 to 3f90142 Compare October 30, 2024 08:37
@mcayuelas-ledger mcayuelas-ledger force-pushed the feat/spam-filtering-tx-LLM branch from 996b053 to ad5da1f Compare October 30, 2024 10:42
@live-github-bot live-github-bot bot removed desktop Has changes in LLD common Has changes in live-common ledgerjs Has changes in the ledgerjs open source libs translations Translation files have been touched labels Oct 30, 2024
@mcayuelas-ledger mcayuelas-ledger changed the title feat: SpamFiltering for NFTs TX in LLM feat: ✨ SpamFiltering for NFTs TX in LLM Oct 30, 2024
@mcayuelas-ledger mcayuelas-ledger force-pushed the feat/spam-filtering-tx-LLM branch 2 times, most recently from e22fd43 to 9b4a1fc Compare October 30, 2024 14:22
@mcayuelas-ledger mcayuelas-ledger marked this pull request as ready for review October 30, 2024 14:22
@mcayuelas-ledger mcayuelas-ledger requested review from a team as code owners October 30, 2024 14:22
themooneer
themooneer previously approved these changes Oct 30, 2024
Copy link
Contributor

@themooneer themooneer left a comment

Choose a reason for hiding this comment

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

LGTM

KVNLS
KVNLS previously approved these changes Oct 31, 2024
Copy link
Member

@KVNLS KVNLS left a comment

Choose a reason for hiding this comment

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

🚀

Base automatically changed from feat/spam-filtering-tx-useNFTfilter-LLD to develop October 31, 2024 12:51
@mcayuelas-ledger mcayuelas-ledger dismissed stale reviews from KVNLS and themooneer October 31, 2024 12:51

The base branch was changed.

@mcayuelas-ledger mcayuelas-ledger requested review from a team as code owners October 31, 2024 12:51
- Adding filtering in Operations
- Rework of HiddenCollection display
- Add Whitelist
- Rework hooks
@mcayuelas-ledger mcayuelas-ledger force-pushed the feat/spam-filtering-tx-LLM branch from b0415c4 to 7b2f128 Compare October 31, 2024 13:03
@mcayuelas-ledger mcayuelas-ledger merged commit d260291 into develop Oct 31, 2024
42 checks passed
@mcayuelas-ledger mcayuelas-ledger deleted the feat/spam-filtering-tx-LLM branch October 31, 2024 14:07
Copy link

sentry-io bot commented Nov 5, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ TypeError: Cannot read property 'join' of undefined useMemo$argument_0(src/hooks/nfts/useSyncNFTsWi... View Issue

Did you find this useful? React with a 👍 or 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Has changes in LLM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants