From e9261ce71687fd6dd579dcc9ea145eda4d039220 Mon Sep 17 00:00:00 2001 From: Tobbe Lundberg Date: Sun, 18 Feb 2024 08:24:10 +0100 Subject: [PATCH] RSC chore(tests): Add links to scaffolds in test fixture (#10028) --- .../api/package.json | 4 +- .../package.json | 4 +- .../web/package.json | 8 ++-- .../web/src/Routes.tsx | 26 +++++++------ .../NavigationLayout/NavigationLayout.css | 38 +++++++++---------- .../NavigationLayout/NavigationLayout.tsx | 6 +++ 6 files changed, 47 insertions(+), 39 deletions(-) diff --git a/__fixtures__/test-project-rsc-external-packages-and-cells/api/package.json b/__fixtures__/test-project-rsc-external-packages-and-cells/api/package.json index fa2cdc33e721..1dd4ca2ace73 100644 --- a/__fixtures__/test-project-rsc-external-packages-and-cells/api/package.json +++ b/__fixtures__/test-project-rsc-external-packages-and-cells/api/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "private": true, "dependencies": { - "@redwoodjs/api": "7.0.0-canary.993", - "@redwoodjs/graphql-server": "7.0.0-canary.993" + "@redwoodjs/api": "7.0.0-canary.1011", + "@redwoodjs/graphql-server": "7.0.0-canary.1011" } } diff --git a/__fixtures__/test-project-rsc-external-packages-and-cells/package.json b/__fixtures__/test-project-rsc-external-packages-and-cells/package.json index 69d912133b5c..c9b5a24dc06f 100644 --- a/__fixtures__/test-project-rsc-external-packages-and-cells/package.json +++ b/__fixtures__/test-project-rsc-external-packages-and-cells/package.json @@ -7,8 +7,8 @@ ] }, "devDependencies": { - "@redwoodjs/core": "7.0.0-canary.993", - "@redwoodjs/project-config": "7.0.0-canary.993" + "@redwoodjs/core": "7.0.0-canary.1011", + "@redwoodjs/project-config": "7.0.0-canary.1011" }, "eslintConfig": { "extends": "@redwoodjs/eslint-config", diff --git a/__fixtures__/test-project-rsc-external-packages-and-cells/web/package.json b/__fixtures__/test-project-rsc-external-packages-and-cells/web/package.json index 1bdede320657..47ea736552d6 100644 --- a/__fixtures__/test-project-rsc-external-packages-and-cells/web/package.json +++ b/__fixtures__/test-project-rsc-external-packages-and-cells/web/package.json @@ -12,9 +12,9 @@ }, "dependencies": { "@apollo/experimental-nextjs-app-support": "0.0.0-commit-b8a73fe", - "@redwoodjs/forms": "7.0.0-canary.993", - "@redwoodjs/router": "7.0.0-canary.993", - "@redwoodjs/web": "7.0.0-canary.993", + "@redwoodjs/forms": "7.0.0-canary.1011", + "@redwoodjs/router": "7.0.0-canary.1011", + "@redwoodjs/web": "7.0.0-canary.1011", "@tobbe.dev/rsc-test": "0.0.3", "client-only": "0.0.1", "react": "0.0.0-experimental-e5205658f-20230913", @@ -22,7 +22,7 @@ "server-only": "0.0.1" }, "devDependencies": { - "@redwoodjs/vite": "7.0.0-canary.993", + "@redwoodjs/vite": "7.0.0-canary.1011", "@types/react": "^18.2.55", "@types/react-dom": "^18.2.19" } diff --git a/__fixtures__/test-project-rsc-external-packages-and-cells/web/src/Routes.tsx b/__fixtures__/test-project-rsc-external-packages-and-cells/web/src/Routes.tsx index 4e50de9a0dec..8183f9a1f06f 100644 --- a/__fixtures__/test-project-rsc-external-packages-and-cells/web/src/Routes.tsx +++ b/__fixtures__/test-project-rsc-external-packages-and-cells/web/src/Routes.tsx @@ -25,21 +25,23 @@ const EmptyUserNewEmptyUserPage = serve('EmptyUserNewEmptyUserPage') const Routes = () => { return ( - - - {/* - */} - - - - - {/* */} - - - + + + + {/* + */} + + + + + + {/* */} + + + diff --git a/__fixtures__/test-project-rsc-external-packages-and-cells/web/src/layouts/NavigationLayout/NavigationLayout.css b/__fixtures__/test-project-rsc-external-packages-and-cells/web/src/layouts/NavigationLayout/NavigationLayout.css index a3e7be665c31..61b03d27dadc 100644 --- a/__fixtures__/test-project-rsc-external-packages-and-cells/web/src/layouts/NavigationLayout/NavigationLayout.css +++ b/__fixtures__/test-project-rsc-external-packages-and-cells/web/src/layouts/NavigationLayout/NavigationLayout.css @@ -1,32 +1,32 @@ .navigation-layout { - & nav { + & > nav { display: flex; justify-content: space-between; align-items: center; padding: 10px; background-color: color-mix(in srgb, yellow 50%, transparent); border-bottom: 2px dashed color-mix(in srgb, yellow 90%, black); - } - & ul { - list-style: none; - display: flex; - margin: 0; - padding: 0; - } + & ul { + list-style: none; + display: flex; + margin: 0; + padding: 0; + } - & li { - margin-right: 10px; - } + & li { + margin-right: 10px; + } - & a { - text-decoration: none; - color: #333; - padding: 5px; - border-bottom: 2px solid transparent; - } + & a { + text-decoration: none; + color: #333; + padding: 5px; + border-bottom: 2px solid transparent; + } - & a:hover { - border-bottom: 2px solid #333; + & a:hover { + border-bottom: 2px solid #333; + } } } diff --git a/__fixtures__/test-project-rsc-external-packages-and-cells/web/src/layouts/NavigationLayout/NavigationLayout.tsx b/__fixtures__/test-project-rsc-external-packages-and-cells/web/src/layouts/NavigationLayout/NavigationLayout.tsx index 4f13e197309a..c4a6f0e4a91a 100644 --- a/__fixtures__/test-project-rsc-external-packages-and-cells/web/src/layouts/NavigationLayout/NavigationLayout.tsx +++ b/__fixtures__/test-project-rsc-external-packages-and-cells/web/src/layouts/NavigationLayout/NavigationLayout.tsx @@ -17,6 +17,12 @@ const NavigationLayout = ({ children }: NavigationLayoutProps) => {
  • About
  • +
  • + User Examples +
  • +
  • + Empty Users +
  • {children}