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

TW-830: Collectibles Manage dropdown #925

Merged
merged 27 commits into from
Jul 12, 2023

Conversation

alex-tsx
Copy link
Collaborator

@alex-tsx alex-tsx commented Jul 3, 2023

@alex-tsx alex-tsx temporarily deployed to development July 3, 2023 12:11 — with GitHub Actions Inactive
@alex-tsx alex-tsx self-assigned this Jul 3, 2023
@alex-tsx alex-tsx temporarily deployed to development July 4, 2023 07:09 — with GitHub Actions Inactive
@alex-tsx alex-tsx marked this pull request as ready for review July 4, 2023 07:10
src/app/pages/Collectibles/CollectibleItem.tsx Outdated Show resolved Hide resolved
src/app/pages/Collectibles/CollectiblesTab.tsx Outdated Show resolved Hide resolved
src/app/store/collectibles/selectors.ts Outdated Show resolved Hide resolved
src/lib/apis/objkt/queries.ts Outdated Show resolved Hide resolved
@alex-tsx alex-tsx temporarily deployed to development July 4, 2023 21:35 — with GitHub Actions Inactive
svjatoslavtt
svjatoslavtt previously approved these changes Jul 5, 2023
Boltman92
Boltman92 previously approved these changes Jul 5, 2023
@alex-tsx alex-tsx requested a review from Boltman92 July 6, 2023 15:27
Boltman92
Boltman92 previously approved these changes Jul 7, 2023
svjatoslavtt
svjatoslavtt previously approved these changes Jul 7, 2023
const { slugs, checksum } = useMemo(() => {
const slugs = collectibles.map(({ tokenSlug }) => tokenSlug);

const checksum = slugs.sort().join('+');
Copy link
Contributor

Choose a reason for hiding this comment

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

you can add in deps slugs.length and remove checksum

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Those are not the same

Copy link
Contributor

Choose a reason for hiding this comment

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

Then what is the checksum ?

Copy link
Collaborator Author

@alex-tsx alex-tsx Jul 10, 2023

Choose a reason for hiding this comment

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

The kind of dependency, that will only change, when slugs' values change. Not a link to the slugs array, but actual values. That's why I sort them first and then put together in one string.

collectibles (link to object) may change, then slugs (link to object) may change, while checksum will stay the same.

@vladvn1905 vladvn1905 temporarily deployed to development July 7, 2023 13:39 — with GitHub Actions Inactive
@alex-tsx alex-tsx dismissed stale reviews from svjatoslavtt and Boltman92 via 9c7b2f7 July 10, 2023 14:09
@alex-tsx alex-tsx temporarily deployed to development July 10, 2023 14:09 — with GitHub Actions Inactive
src/app/atoms/Divider.tsx Show resolved Hide resolved
src/app/hooks/use-collectibles-details-loading.ts Outdated Show resolved Hide resolved
src/lib/apis/objkt/queries.ts Outdated Show resolved Hide resolved
@alex-tsx alex-tsx temporarily deployed to development July 10, 2023 22:03 — with GitHub Actions Inactive
@alex-tsx alex-tsx requested a review from keshan3262 July 10, 2023 22:05
@vladvn1905 vladvn1905 temporarily deployed to development July 11, 2023 11:19 — with GitHub Actions Inactive
@IrynaKhyzhynska IrynaKhyzhynska temporarily deployed to development July 12, 2023 06:50 — with GitHub Actions Inactive
Copy link
Contributor

@IrynaKhyzhynska IrynaKhyzhynska left a comment

Choose a reason for hiding this comment

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

firefox done

Copy link

@vladvn1905 vladvn1905 left a comment

Choose a reason for hiding this comment

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

Chrome done

@lourenc lourenc merged commit 998660c into development Jul 12, 2023
3 checks passed
alex-tsx added a commit that referenced this pull request Jul 12, 2023
lourenc pushed a commit that referenced this pull request Jul 12, 2023
* Revert "TW-830: Collectibles Manage dropdown (#925)"

This reverts commit 998660c.

* Revert "TW-828: Collectibles grid layout (#922)"

This reverts commit 13ac5d7.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants