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(web): replace list of BlockCard by new PaginatedTable on the blocks view #457

Merged
merged 11 commits into from
Aug 1, 2024

Conversation

xFJA
Copy link
Collaborator

@xFJA xFJA commented Jul 29, 2024

Checklist

  • My change requires a documentation update, and I have done it.
  • I have added tests to cover my changes.
  • I have filled out the description and linked the related issues.

Description

It resolves #452

Migrate the current 'block view' using a block card list to the new PaginatedTable component

Screenshots

image

@xFJA xFJA requested a review from PJColombo July 29, 2024 17:39
Copy link

changeset-bot bot commented Jul 29, 2024

🦋 Changeset detected

Latest commit: 452103f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@blobscan/web Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Jul 29, 2024

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

Name Status Preview Comments Updated (UTC)
blobscan-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2024 0:28am
blobscan-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2024 0:28am
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
blobscan-gnosis ⬜️ Ignored (Inspect) Visit Preview Aug 1, 2024 0:28am
blobscan-holesky ⬜️ Ignored (Inspect) Visit Preview Aug 1, 2024 0:28am
blobscan-mainnet ⬜️ Ignored (Inspect) Visit Preview Aug 1, 2024 0:28am
blobscan-sepolia ⬜️ Ignored (Inspect) Visit Preview Aug 1, 2024 0:28am

Copy link
Contributor

github-actions bot commented Jul 29, 2024

📦 Next.js Bundle Analysis for @blobscan/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

Two Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/blob/[hash] 42.58 KB 287.01 KB 82.00% (🟢 -0.14%)
/blocks 30.68 KB 275.11 KB 78.60% (🟡 +3.40%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

Copy link
Member

@PJColombo PJColombo left a comment

Choose a reason for hiding this comment

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

Good work!

Left a few comments.

apps/web/src/components/PaginatedTable/helpers/blocks.tsx Outdated Show resolved Hide resolved
apps/web/src/components/PaginatedTable/helpers/blocks.tsx Outdated Show resolved Hide resolved
apps/web/src/components/PaginatedTable/helpers/blocks.tsx Outdated Show resolved Hide resolved
apps/web/src/components/PaginatedTable/helpers/blocks.tsx Outdated Show resolved Hide resolved
apps/web/src/components/PaginatedTable/helpers/blocks.tsx Outdated Show resolved Hide resolved
@xFJA xFJA force-pushed the migrate-blobs-card-view-to-table branch 2 times, most recently from cd9e05e to 31eb9cf Compare July 30, 2024 17:26
@xFJA xFJA force-pushed the migrate-blocks-card-view-to-table branch from 136230b to 3ceec36 Compare July 30, 2024 22:46
@xFJA xFJA force-pushed the migrate-blocks-card-view-to-table branch from 3ceec36 to 1e44c7a Compare July 30, 2024 22:51
@xFJA xFJA requested a review from PJColombo July 31, 2024 15:40
@xFJA xFJA force-pushed the migrate-blocks-card-view-to-table branch from d7e5c1f to c61df55 Compare August 1, 2024 09:29
@xFJA xFJA force-pushed the migrate-blocks-card-view-to-table branch from 3b0e644 to b199b62 Compare August 1, 2024 10:28
Copy link
Member

@PJColombo PJColombo left a comment

Choose a reason for hiding this comment

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

LGTM!

apps/web/src/components/PaginatedTable/helpers/blocks.tsx Outdated Show resolved Hide resolved
@xFJA xFJA changed the base branch from migrate-blobs-card-view-to-table to next August 1, 2024 11:43
Copy link

codecov bot commented Aug 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.84%. Comparing base (deb72ed) to head (452103f).
Report is 2 commits behind head on next.

Additional details and impacted files
@@           Coverage Diff           @@
##             next     #457   +/-   ##
=======================================
  Coverage   89.84%   89.84%           
=======================================
  Files         146      146           
  Lines        9621     9621           
  Branches     1019     1019           
=======================================
  Hits         8644     8644           
  Misses        977      977           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@xFJA xFJA force-pushed the migrate-blocks-card-view-to-table branch from caf6a77 to 452103f Compare August 1, 2024 12:22
@xFJA xFJA merged commit 88c94df into next Aug 1, 2024
14 checks passed
@PJColombo PJColombo deleted the migrate-blocks-card-view-to-table branch August 1, 2024 13:03
@github-actions github-actions bot mentioned this pull request Aug 2, 2024
@github-actions github-actions bot mentioned this pull request Aug 6, 2024
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.

Use a table instead of cards to display elements in blocks page view
2 participants