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

Hubble Responsive #1466

Merged
merged 20 commits into from
Jul 31, 2023
Merged

Hubble Responsive #1466

merged 20 commits into from
Jul 31, 2023

Conversation

vutuanlinh2k2
Copy link
Contributor

Summary of changes

Provide a detailed description of proposed changes.

  • Update useDarkMode hooks with useLocalStorageState
  • Responsive design for Hubble Stats
  • Add SideBarMenu components in webb-ui-kit

Proposed area of change

Put an x in the boxes that apply.

  • apps/bridge-dapp
  • apps/hubble-stats
  • apps/stats-dapp
  • apps/webbsite
  • apps/faucet
  • apps/tangle-website
  • libs/webb-ui-components

Reference issue to close (if applicable)

Specify any issues that can be closed from these changes (e.g. Closes #233).

Screen Recording

If possible provide a screen recording of proposed change.

Screen.Recording.2023-07-27.at.13.38.04.mov

Code Checklist

Please be sure to add .stories documentation if any additions are made to libs/webb-ui-components.

  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@github-actions
Copy link

Deploy Preview for bridge-dapp development is ready! Thanks for the contribution @vutuanlinh2k2

Name Link
🔨 Latest commit dda1d9df12a97d6fef0dca1ed85ccddb4fdf9136
🔍 Latest deploy log https://app.netlify.com/sites/development-hubble-bridge/deploys/64c213bfc837154ff903a87b
😎 Deploy Preview https://64c213bfc837154ff903a87b--development-hubble-bridge.netlify.app

To edit notification comments on pull requests, go to your Netlify site settings.

@vutuanlinh2k2 vutuanlinh2k2 added the wip 🚧 Work in-progress label Jul 27, 2023
@github-actions
Copy link

Deploy Preview for bridge-dapp development is ready! Thanks for the contribution @vutuanlinh2k2

Name Link
🔨 Latest commit 57f1ad339592a8ad73a59e0e24cbc40efb512749
🔍 Latest deploy log https://app.netlify.com/sites/development-hubble-bridge/deploys/64c21a6fe98dcf5a26c0db71
😎 Deploy Preview https://64c21a6fe98dcf5a26c0db71--development-hubble-bridge.netlify.app

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions
Copy link

Deploy Preview for webb hubble statistic is ready! Thanks for the contribution @vutuanlinh2k2

Name Link
🔨 Latest commit 57f1ad339592a8ad73a59e0e24cbc40efb512749
🔍 Latest deploy log https://app.netlify.com/sites/hubble-stats/deploys/64c21a8d81a48f5e1b27abae
😎 Deploy Preview https://64c21a8d81a48f5e1b27abae--hubble-stats.netlify.app

To edit notification comments on pull requests, go to your Netlify site settings.

@vutuanlinh2k2 vutuanlinh2k2 added needs review 👓 Pull request needs a review and removed wip 🚧 Work in-progress labels Jul 27, 2023
@github-actions
Copy link

Deploy Preview for webb hubble statistic is ready! Thanks for the contribution @vutuanlinh2k2

Name Link
🔨 Latest commit 368deafc74cd2f4d33a37da291e7c50aa0925fe7
🔍 Latest deploy log https://app.netlify.com/sites/hubble-stats/deploys/64c224cb5f78cf5dc3760445
😎 Deploy Preview https://64c224cb5f78cf5dc3760445--hubble-stats.netlify.app

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions
Copy link

Deploy Preview for bridge-dapp development is ready! Thanks for the contribution @vutuanlinh2k2

Name Link
🔨 Latest commit 368deafc74cd2f4d33a37da291e7c50aa0925fe7
🔍 Latest deploy log https://app.netlify.com/sites/development-hubble-bridge/deploys/64c224dc9cc7a55d1262a307
😎 Deploy Preview https://64c224dc9cc7a55d1262a307--development-hubble-bridge.netlify.app

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Contributor

@monaiuu monaiuu left a comment

Choose a reason for hiding this comment

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

LGTM, nice job on the responsive breakpoints!

Comment on lines 36 to 95
<div>
<a
href={logoLink ? logoLink : '/'}
target="_blank"
rel="noopener noreferrer"
>
<Logo size="md" />
</a>

<div className="mt-11 flex flex-col gap-4">
{items.map((itemProps, index) => (
<SideBarItem
key={index}
{...itemProps}
isSidebarOpen={true}
isActive={activeItem === index}
setIsActive={() => setActiveItem(index)}
/>
))}
</div>
</div>

<div className="flex items-center justify-between gap-2 p-2">
<div className="group flex items-center justify-between">
<Link href={footer.href} aTagProps={{ target: '_blank' }}>
<footer.Icon
width={24}
height={24}
className="cursor-pointer !fill-mono-100 dark:!fill-mono-60 group-hover:!fill-mono-200 dark:group-hover:!fill-mono-0"
/>
</Link>

<div className="pl-2">
<Link href={footer.href} aTagProps={{ target: '_blank' }}>
<Typography
variant="body1"
className="cursor-pointer text-mono-100 dark:text-mono-60 group-hover:text-mono-200 dark:group-hover:text-mono-0"
>
{footer.name}
</Typography>
</Link>
</div>

{!footer.isInternal ? (
<div className="pl-[26px]">
<Link href={footer.href} aTagProps={{ target: '_blank' }}>
<ExternalLinkLine
className="cursor-pointer !fill-mono-100 dark:!fill-mono-60 group-hover:!fill-mono-200 dark:group-hover:!fill-mono-0"
width={24}
height={24}
/>
</Link>
</div>
) : (
''
)}
</div>

<ThemeToggle />
</div>
Copy link
Member

Choose a reason for hiding this comment

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

Why don't we reuse the SideBar component instead of reimplementing it here?

libs/webb-ui-components/src/components/Table/Table.tsx Outdated Show resolved Hide resolved
@AtelyPham
Copy link
Member

Left some comments.

Copy link
Member

@AtelyPham AtelyPham left a comment

Choose a reason for hiding this comment

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

CleanShot 2023-07-27 at 18 09 44@2x

Just a bit of feedback on the UI! The section that I've highlighted with a red rectangle seems a bit odd. I believe it might be due to the background blur on the cards behind it.

@vutuanlinh2k2 vutuanlinh2k2 changed the title feat: add network table Hubble Responsive Jul 27, 2023
@AtelyPham
Copy link
Member

Could you also add a responsive sidebar to the Hubble Bridge, or alternatively, create an issue for it? This way, we can keep track of it for future reference. Your help is greatly appreciated! 🙏

@AtelyPham
Copy link
Member

Additionally, there are quite a few warnings and errors appearing on the console. Could you please take a look at these as well?

@vutuanlinh2k2
Copy link
Contributor Author

CleanShot 2023-07-27 at 18 09 44@2x

Just a bit of feedback on the UI! The section that I've highlighted with a red rectangle seems a bit odd. I believe it might be due to the background blur on the cards behind it.

@devpavan04 since you are working on the charts for Hubble Stats maybe you can help me take a look at this after this PR got merged!

@monaiuu
Copy link
Contributor

monaiuu commented Jul 27, 2023

@vutuanlinh2k2 just tested the preview link on my tablet & mobile devices. I get these blue lines around the components, can you check on this as well? (I'm on IOS)

IMG_9851
IMG_9850

@AtelyPham AtelyPham added needs changes 🔧 PR has requested changes or conflicts that need to be addressed needs review 👓 Pull request needs a review and removed needs review 👓 Pull request needs a review needs changes 🔧 PR has requested changes or conflicts that need to be addressed labels Jul 27, 2023
@github-actions
Copy link

Deploy Preview for bridge-dapp development is ready! Thanks for the contribution @vutuanlinh2k2

Name Link
🔨 Latest commit b0a097e4118bb51e1ccad2a04d40691337977c73
🔍 Latest deploy log https://app.netlify.com/sites/development-hubble-bridge/deploys/64c3796bbfe6ca55db86f9dd
😎 Deploy Preview https://64c3796bbfe6ca55db86f9dd--development-hubble-bridge.netlify.app

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions
Copy link

Deploy Preview for webb hubble statistic is ready! Thanks for the contribution @vutuanlinh2k2

Name Link
🔨 Latest commit 663538a5e487278e45bc95bb213a6b7a81dc7d78
🔍 Latest deploy log https://app.netlify.com/sites/hubble-stats/deploys/64c37c57d39150534c702c93
😎 Deploy Preview https://64c37c57d39150534c702c93--hubble-stats.netlify.app

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions
Copy link

Deploy Preview for bridge-dapp development is ready! Thanks for the contribution @vutuanlinh2k2

Name Link
🔨 Latest commit 663538a5e487278e45bc95bb213a6b7a81dc7d78
🔍 Latest deploy log https://app.netlify.com/sites/development-hubble-bridge/deploys/64c75610f4454978d469a852
😎 Deploy Preview https://64c75610f4454978d469a852--development-hubble-bridge.netlify.app

To edit notification comments on pull requests, go to your Netlify site settings.

@vutuanlinh2k2 vutuanlinh2k2 added needs review 👓 Pull request needs a review and removed needs changes 🔧 PR has requested changes or conflicts that need to be addressed labels Jul 31, 2023
@vutuanlinh2k2
Copy link
Contributor Author

@vutuanlinh2k2 just tested the preview link on my tablet & mobile devices. I get these blue lines around the components, can you check on this as well? (I'm on IOS)

IMG_9851 IMG_9850

@monaiuu I believe this problem is solved in the latest preview link 😊 Can you check the site again!

Copy link
Member

@AtelyPham AtelyPham left a comment

Choose a reason for hiding this comment

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

LGTM! Great work @vutuanlinh2k2 🔥

@AtelyPham AtelyPham merged commit fb5b3a2 into develop Jul 31, 2023
8 checks passed
@AtelyPham AtelyPham deleted the linh/hubble-stats-responsive branch July 31, 2023 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review 👓 Pull request needs a review
Projects
None yet
3 participants