Skip to content

Conversation

mumair5393
Copy link
Contributor

@mumair5393 mumair5393 commented Sep 6, 2025

Closes #11

This PR includes:

  1. Upgrade web-app to tailwindcss v4
  2. Upgrade tauri app to tailwindcss v4

Shall I also remove forward ref as proposed in here?

@mumair5393 mumair5393 requested a review from konsalex as a code owner September 6, 2025 16:09
Copy link

netlify bot commented Sep 6, 2025

Deploy Preview for hoppdocs ready!

Name Link
🔨 Latest commit eee012d
🔍 Latest deploy log https://app.netlify.com/projects/hoppdocs/deploys/68c56eef3d6cd4000833ea92
😎 Deploy Preview https://deploy-preview-64--hoppdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@konsalex
Copy link
Contributor

konsalex commented Sep 8, 2025

thanks for the upgrade to v4 @mumair5393 🙏 Could you merge or rebase to current main?

Copy link
Contributor

@konsalex konsalex left a comment

Choose a reason for hiding this comment

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

Thanks for the PR mate, some feedback points:

  1. Sidebar width is no the same as before
Image
  1. Many changes are just semicolons, could you maybe add the https://prettier.io/docs/options#semicolons option in our prettier config, and re-format so we can use this. Turns out if we don't our IDE does whatever it wants. Ideally those should not be changes of this PR, its pure noise 🥲

  2. I guess some shadcn components were "re-added" but this means any custom override we have created was removed like in the button component. We need to make sure that we keep custom overrides that are used.

  3. App version in context menu has different styling:

Image
  1. End call button styles are broken, probably from the previous points
Image
  1. Text input seems a bit off
Image
  1. Text colors seem off
Image

"hover:bg-slate-100 hover:text-slate-900 dark:hover:bg-slate-800 dark:hover:text-slate-50",
ghost: "hover:bg-slate-100 hover:text-slate-900 dark:hover:bg-slate-800 dark:hover:text-slate-50",
link: "text-slate-900 underline-offset-4 hover:underline dark:text-slate-50",
hidden: "hidden",
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason those were removed? They are actively used example:

<Button
                  variant={
                    needsUpdate ?
                      updateInProgress ?
                        "loading"
                      : "default"
                    : "hidden"
                  }
... />

sm: "h-8 rounded-md px-3 text-xs",
lg: "h-10 rounded-md px-8",
icon: "h-9 w-9",
"icon-sm": "h-7 w-7",
Copy link
Contributor

Choose a reason for hiding this comment

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

this also

extends React.ButtonHTMLAttributes<HTMLButtonElement>,
VariantProps<typeof buttonVariants> {
asChild?: boolean;
isLoading?: boolean; // Add isLoading prop
Copy link
Contributor

Choose a reason for hiding this comment

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

this also

className={cn(buttonVariants({ variant, size, className }))}
ref={ref}
{...props}
>
Copy link
Contributor

Choose a reason for hiding this comment

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

This also

@mumair5393 mumair5393 force-pushed the feature/upgrade-to-tailwindv4 branch from 841d054 to 2913690 Compare September 12, 2025 19:57
@mumair5393 mumair5393 requested a review from konsalex September 12, 2025 20:02
Copy link
Contributor

@konsalex konsalex left a comment

Choose a reason for hiding this comment

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

  1. Shadow in web-app is off, I suspect the migration might now right properly in Web App? Or was it a rebase issue?
Image

I pushed a minor commit for this one.

  1. Input focused state is diff
Image

I suspect this is the change:
https://github.com/gethopp/hopp/pull/64/files#diff-fe29196ef6c52b4d2f09656b580ca6c34b874b21d2471b03eb3d9c0b71e0b113R76-R91

  1. Text color is diff inside Invite tab
Image

I guess its related to this one:
https://corner.buka.sh/understanding-text-color-conflicts-in-tailwind-css-v4/

Copy link
Contributor

@konsalex konsalex left a comment

Choose a reason for hiding this comment

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

LFG 🚀

@konsalex konsalex merged commit 5eebe83 into gethopp:main Sep 13, 2025
14 checks passed
@konsalex konsalex changed the title Upgrade to tailwindv4 chore: upgrade to tailwindv4 Sep 13, 2025
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.

feat: migrate to tailwind v4

2 participants