Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
PR fixes
Sara Vieiraebae218f70cf
diff --git a/app/auth/login.tsx b/app/auth/login.tsxindex 83fcfcddeb..c8f976e083 100644--- a/app/auth/login.tsx+++ b/app/auth/login.tsx@@ -25,7 +25,7 @@ export const meta: MetaFunction = () => {};export const Login = () => {- const [devLoginClicked, setDevLoginClicked] = useState(false);+ const [isDevLogin, setIsDevLogin] = useState(false);return (<Flex@@ -57,7 +57,7 @@ export const Login = () => {</Form>{process.env.NODE_ENV === "development" && (<>- {devLoginClicked ? (+ {isDevLogin ? (<Form action="/auth/dev" method="post"><TextFieldcss={{ width: "100%", flexGrow: 1 }}@@ -71,7 +71,7 @@ export const Login = () => {</Form>) : (<Button- onClick={() => setDevLoginClicked(true)}+ onClick={() => setIsDevLogin(true)}css={{ width: "100%" }}><Flex gap="1" align="center">diff --git a/app/dashboard/dashboard.tsx b/app/dashboard/dashboard.tsxindex 95ba046e88..e7b7df082a 100644--- a/app/dashboard/dashboard.tsx+++ b/app/dashboard/dashboard.tsx@@ -66,6 +66,9 @@ export const Dashboard = ({ projects = [], config, user }: DashboardProps) => {const actionData = useActionData();const navigate = useNavigate();const transition = useTransition();+ const userNameFallback = (user.username || user.email || "X")+ .charAt(0)+ .toLocaleUpperCase();const handleOpen = () => {navigate(`${config.designerPath}/${selectedProject}`);@@ -91,7 +94,7 @@ export const Dashboard = ({ projects = [], config, user }: DashboardProps) => {<Avatar.Root>{user?.image && <StyledAvatar src={user?.image} />}<StyledFallback delayMs={500}>- {(user?.username || "X").charAt(0).toLocaleUpperCase()}+ {userNameFallback}</StyledFallback></Avatar.Root>diff --git a/app/shared/design-system/components/button.tsx b/app/shared/design-system/components/button.tsxindex 28c4e23f92..e07009106c 100644--- a/app/shared/design-system/components/button.tsx+++ b/app/shared/design-system/components/button.tsx@@ -3,7 +3,6 @@ import { styled } from "../stitches.config";export const Button = styled("button", {// Resetall: "unset",- cursor: "pointer",alignItems: "center",boxSizing: "border-box",userSelect: "none",diff --git a/package.json b/package.jsonindex 0869e8d6e9..70c84e02a6 100644--- a/package.json+++ b/package.json@@ -4,7 +4,7 @@"description": "Webstudio Designer UI as a service","scripts": {"build": "remix build",- "dev": "yarn setup && HOST=localhost node -r dotenv/config node_modules/.bin/remix dev",+ "dev": "yarn setup && node -r dotenv/config node_modules/.bin/remix dev","start": "remix-serve build","typecheck": "tsc -b","lint": "eslint . --ext .ts,.tsx --max-warnings 0",