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

Use app router template #9186

Open
wants to merge 61 commits into
base: v-next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
a56b6e2
fix(deps): update emotion monorepo (#9223)
renovate[bot] Jul 23, 2024
7df0c58
chore(deps): update pnpm to v9.6.0 (#9222)
renovate[bot] Jul 23, 2024
d46c311
Change `docs/` to use nextjs app router (#9220)
simonswiss Jul 23, 2024
9ff170a
Fix static pages generation (#9227)
simonswiss Jul 23, 2024
a37cf27
Use `metadatabase` instead of manually passing the `siteBaseUrl` to O…
simonswiss Jul 24, 2024
46d584a
Update hooks documentation to prefer new syntax (#9231)
gautamsi Jul 25, 2024
a890732
Remove `tree-kill` from test devDependencies (#9232)
dcousens Jul 25, 2024
fe7e468
fix(deps): update dependency @emotion/cache to v11.13.1 (#9242)
renovate[bot] Jul 29, 2024
f07b12f
Keystaticification 🚀 of `docs/` (#9202)
simonswiss Jul 31, 2024
048b36d
Fix Astro and Remix examples not building (#9247)
dcousens Aug 1, 2024
eb1b0a3
chore(deps): lock file maintenance (#9221)
renovate[bot] Aug 5, 2024
73a9132
Remove `getGqlNames` function from frontend, prefer the meta query (#…
dcousens Aug 5, 2024
f9e7970
Update homepage copy and statistics (#9255)
simonswiss Aug 5, 2024
d7e275f
Replace yarn with npm in docs/ (#9257)
simonswiss Aug 5, 2024
ab1b44c
Add support for developers to replace the default esbuild configurati…
dcousens Aug 5, 2024
1a9ff0a
Updates for GraphQL schema ordering and TypeScript type generation (#…
dcousens Aug 5, 2024
9c27c75
Fix edit links in docs/ (#9252)
kennedybaird Aug 5, 2024
27207a1
Add support for lists with no fields in GraphQL (#9254)
dcousens Aug 6, 2024
a111cb6
Remove io-ts, use zod (#9263)
dcousens Aug 6, 2024
79a1a09
Update website roadmap (#9251)
simonswiss Aug 6, 2024
aff4163
Remove callout link to updates page (#9267)
simonswiss Aug 7, 2024
27845c8
Revert packages to use nominal package versions (#9269)
dcousens Aug 7, 2024
2569f79
Docs: example links fixing + table of contents fixes (#9272)
kennedybaird Aug 9, 2024
d80748e
Fix Prisma errors not showing when a Prisma migration errors interna…
dcousens Aug 9, 2024
5e22d81
Version Packages (#9264)
dcousens Aug 9, 2024
295cc73
Version Packages (CKA) (#9274)
dcousens Aug 9, 2024
3dc6c5a
chore(deps): lock file maintenance (#9279)
renovate[bot] Aug 12, 2024
6bdf320
Add support for providing prisma transaction options (#9280)
acburdine Aug 12, 2024
0813e58
chore(deps): update pnpm to v9.7.0 (#9282)
renovate[bot] Aug 12, 2024
931e1ed
fix(deps): update prisma monorepo to v5.18.0 (#9284)
renovate[bot] Aug 12, 2024
308c37e
chore(deps): update dependency @types/react-transition-group to v4.4.…
renovate[bot] Aug 12, 2024
6105e6a
chore(deps): update dependency typescript-eslint to v8 (#9260)
renovate[bot] Aug 13, 2024
b640b74
fix(deps): update dependency slate-react to ^0.108.0 (#9283)
renovate[bot] Aug 13, 2024
855bc25
Fix schemas for `create-keystone-app` (#9275)
dcousens Aug 13, 2024
c25a5c2
Add new blog post for last year of releases (#9268)
simonswiss Aug 13, 2024
830d46d
Fix telemetry disable command (#9289)
DavidMulder0 Aug 14, 2024
3a70b7f
chore(deps): lock file maintenance (#9295)
renovate[bot] Aug 19, 2024
9d16f9a
chore(deps): update mariadb docker tag to v11.5 (#9297)
renovate[bot] Aug 19, 2024
a2e2c7a
chore(deps): update pnpm to v9.7.1 (#9296)
renovate[bot] Aug 19, 2024
19a734c
Add `keystone telemetry inform` command and update telemetry policy (…
dcousens Aug 20, 2024
7dda360
Inline `prismaClientPath` for `examples/` (#9300)
dcousens Aug 20, 2024
2a6033f
Fix transaction passthrough types, and add linting for examples (#9301)
dcousens Aug 20, 2024
40e85b7
Update CodeSandbox versions, and fix prisma client paths for `example…
dcousens Aug 20, 2024
dc3802a
Fix validation hook merge function passthrough (#9278)
acburdine Aug 20, 2024
6e5b50d
Add buttondown for the `/docs` newsletter subscription using server a…
simonswiss Aug 20, 2024
a791237
fix(deps): update dependency slate-react to ^0.109.0 (#9308)
renovate[bot] Aug 26, 2024
a1fbb1b
chore(deps): update pnpm to v9.9.0 (#9306)
renovate[bot] Aug 26, 2024
722839c
fix(deps): update dependency slate-history to ^0.109.0 (#9307)
renovate[bot] Aug 26, 2024
1ddd41b
chore(deps): lock file maintenance (#9305)
renovate[bot] Aug 27, 2024
c61ac79
fix(deps): update prisma monorepo to v5.19.0 (#9310)
renovate[bot] Aug 27, 2024
5b8a3c7
Use ms for jest timeouts (#9311)
dcousens Aug 28, 2024
0c850e4
Fix esbuild example package name
dcousens Aug 28, 2024
12fb38b
Version Packages (#9312)
dcousens Aug 28, 2024
616907e
Remove pre-built schemas from `create-keystone-app` (#9314)
dcousens Aug 30, 2024
c29510f
Version Packages (CKA) (#9317)
dcousens Aug 30, 2024
f399e45
chore(deps): lock file maintenance (#9319)
renovate[bot] Sep 2, 2024
4f8f925
fix(deps): update prisma monorepo to v5.19.1 (#9321)
renovate[bot] Sep 2, 2024
d543e60
Fix input value for Decimal validate hook (#9262)
kennedybaird Sep 3, 2024
7808e7d
Update link to Keystone Enterprise (#9320)
benderham Sep 3, 2024
a8a3913
fix(deps): update dependency slate-react to ^0.110.0 (#9322)
renovate[bot] Sep 3, 2024
1796839
generate app router
gautamsi Sep 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions .changeset/add-isnullable-multiselect.md

This file was deleted.

3 changes: 3 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"baseBranch": "main",
"linked": [],
"access": "public",
"privatePackages": {
"version": false
},
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
"onlyUpdatePeerDependentsWhenOutOfRange": true
}
Expand Down
2 changes: 2 additions & 0 deletions .changeset/contributors.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"AliceRossa",
"CarlQLange",
"ChrisLaneAU",
"DavidMulder0",
"DiesIrae",
"DustinWoods",
"Greenheart",
Expand Down Expand Up @@ -38,6 +39,7 @@
"dcousens",
"dependabot",
"dependabot[bot]",
"direisc",
"dominikwilkowski",
"duidae",
"emmatown",
Expand Down
5 changes: 0 additions & 5 deletions .changeset/fix-bigint-validation.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-hide-ui.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-keystone-prisma.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-uuid-rel.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/light-lamps-eat.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/short-rocks-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@keystone-6/core": patch
---

Fixes `decimal` field bug (#8597) by parsing to `Decimal` before lessThan / greaterThan checks
5 changes: 0 additions & 5 deletions .changeset/split-document-field.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/update-field-hooks.md

This file was deleted.

14 changes: 12 additions & 2 deletions .github/workflows/tests_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ jobs:
- name: Prisma Filters
run: pnpm test:filters

linting-examples:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: ./.github/actions/ci-setup-examples

- name: TypeScript
run: pnpm test:types

unit_tests:
name: Package Unit Tests
runs-on: ubuntu-latest
Expand Down Expand Up @@ -87,7 +97,7 @@ jobs:
runs-on: ubuntu-latest
services:
mysql:
image: mariadb:11.4
image: mariadb:11.5
env:
MYSQL_ROOT_PASSWORD: testpass
ports:
Expand Down Expand Up @@ -163,7 +173,7 @@ jobs:
runs-on: ubuntu-latest
services:
mysql:
image: mariadb:11.4
image: mariadb:11.5
env:
MYSQL_ROOT_PASSWORD: testpass
ports:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
dist/
node_modules/
*.db
.env

# ts-gql
__generated__
Expand Down
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
link-workspace-packages=true
prefer-workspace-packages=true
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Thinkmill Labs Pty Ltd
Copyright (c) 2024 Thinkmill Labs Pty Ltd

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ For vulnerability reporting, please refer to our [security policy](/SECURITY.md)

<a href="https://thinkmill.com.au" target="_blank"><img height="48" alt="Thinkmill" src="https://thinkmill.github.io/badge/brandmark.svg"></a>

Copyright (c) 2023 [Thinkmill Labs](https://www.thinkmill.com.au/labs?utm_campaign=keystone-github) Pty Ltd. Licensed under the MIT License.
Copyright (c) 2024 [Thinkmill Labs](https://www.thinkmill.com.au/labs?utm_campaign=keystone-github) Pty Ltd. Licensed under the MIT License.
4 changes: 2 additions & 2 deletions design-system/packages/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"./package.json": "./package.json"
},
"devDependencies": {
"@types/react": "catalog:"
"@types/react": "^18.3.3"
},
"dependencies": {
"@babel/runtime": "^7.24.7",
"@keystone-ui/core": "workspace:^",
"@keystone-ui/icons": "workspace:^",
"@keystone-ui/loading": "workspace:^",
"react": "catalog:"
"react": "^18.3.1"
},
"repository": "https://github.com/keystonejs/keystone/tree/main/design-system/packages/button"
}
10 changes: 5 additions & 5 deletions design-system/packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"./package.json": "./package.json"
},
"devDependencies": {
"@types/react": "catalog:",
"react": "catalog:",
"react-dom": "catalog:"
"@types/react": "^18.3.3",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"peerDependencies": {
"react": "catalog:",
"react-dom": "catalog:"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"dependencies": {
"@babel/runtime": "^7.24.7",
Expand Down
6 changes: 3 additions & 3 deletions design-system/packages/fields/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@
"./package.json": "./package.json"
},
"devDependencies": {
"@types/react": "catalog:"
"@types/react": "^18.3.3"
},
"dependencies": {
"@babel/runtime": "^7.24.7",
"@keystone-ui/core": "workspace:^",
"@keystone-ui/icons": "workspace:^",
"@keystone-ui/popover": "workspace:^",
"date-fns": "^3.0.0",
"react": "catalog:",
"react": "^18.3.1",
"react-day-picker": "^8.0.4",
"react-dom": "catalog:",
"react-dom": "^18.3.1",
"react-focus-lock": "^2.7.1",
"react-select": "^5.2.1"
},
Expand Down
6 changes: 3 additions & 3 deletions design-system/packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1162,18 +1162,18 @@
"@svgr/core": "^8.0.0",
"@svgr/plugin-jsx": "^8.0.0",
"@svgr/plugin-svgo": "^8.0.0",
"@types/react": "catalog:",
"@types/react": "^18.3.3",
"feather-icons": "^4.28.0",
"globby": "^14.0.0",
"react": "catalog:",
"react": "^18.3.1",
"to-pascal-case": "^1.0.0"
},
"dependencies": {
"@babel/runtime": "^7.24.7",
"@keystone-ui/core": "workspace:^"
},
"peerDependencies": {
"react": "catalog:"
"react": "^18.3.1"
},
"preconstruct": {
"entrypoints": [
Expand Down
4 changes: 2 additions & 2 deletions design-system/packages/loading/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"./package.json": "./package.json"
},
"devDependencies": {
"@types/react": "catalog:"
"@types/react": "^18.3.3"
},
"dependencies": {
"@babel/runtime": "^7.24.7",
"@keystone-ui/core": "workspace:^",
"react": "catalog:"
"react": "^18.3.1"
},
"repository": "https://github.com/keystonejs/keystone/tree/main/design-system/packages/loading"
}
8 changes: 4 additions & 4 deletions design-system/packages/modals/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"./package.json": "./package.json"
},
"devDependencies": {
"@types/react": "catalog:",
"@types/react-transition-group": "4.4.10"
"@types/react": "^18.3.3",
"@types/react-transition-group": "4.4.11"
},
"dependencies": {
"@babel/runtime": "^7.24.7",
"@keystone-ui/button": "workspace:^",
"@keystone-ui/core": "workspace:^",
"react": "catalog:",
"react-dom": "catalog:",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-focus-lock": "^2.7.1",
"react-remove-scroll": "^2.4.3",
"react-transition-group": "^4.4.2"
Expand Down
4 changes: 2 additions & 2 deletions design-system/packages/notice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"./package.json": "./package.json"
},
"devDependencies": {
"@types/react": "catalog:"
"@types/react": "^18.3.3"
},
"dependencies": {
"@babel/runtime": "^7.24.7",
"@keystone-ui/button": "workspace:^",
"@keystone-ui/core": "workspace:^",
"@keystone-ui/icons": "workspace:^",
"react": "catalog:"
"react": "^18.3.1"
},
"repository": "https://github.com/keystonejs/keystone/tree/main/design-system/packages/notice"
}
8 changes: 4 additions & 4 deletions design-system/packages/options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"./package.json": "./package.json"
},
"peerDependencies": {
"react": "catalog:",
"react-dom": "catalog:"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"react": "catalog:",
"react-dom": "catalog:"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"dependencies": {
"@babel/runtime": "^7.24.7",
Expand Down
4 changes: 2 additions & 2 deletions design-system/packages/pill/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"./package.json": "./package.json"
},
"peerDependencies": {
"react": "catalog:"
"react": "^18.3.1"
},
"devDependencies": {
"react": "catalog:"
"react": "^18.3.1"
},
"dependencies": {
"@babel/runtime": "^7.24.7",
Expand Down
8 changes: 4 additions & 4 deletions design-system/packages/popover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"./package.json": "./package.json"
},
"peerDependencies": {
"react": "catalog:",
"react-dom": "catalog:"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"react": "catalog:",
"react-dom": "catalog:"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"dependencies": {
"@babel/runtime": "^7.24.7",
Expand Down
6 changes: 3 additions & 3 deletions design-system/packages/segmented-control/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"./package.json": "./package.json"
},
"devDependencies": {
"@types/react": "catalog:",
"react": "catalog:"
"@types/react": "^18.3.3",
"react": "^18.3.1"
},
"dependencies": {
"@babel/runtime": "^7.24.7",
"@keystone-ui/core": "workspace:^"
},
"peerDependencies": {
"react": "catalog:"
"react": "^18.3.1"
},
"repository": "https://github.com/keystonejs/keystone/tree/main/design-system/packages/segmented-control"
}
6 changes: 3 additions & 3 deletions design-system/packages/toast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
"./package.json": "./package.json"
},
"devDependencies": {
"@types/react": "catalog:",
"react": "catalog:"
"@types/react": "^18.3.3",
"react": "^18.3.1"
},
"dependencies": {
"@babel/runtime": "^7.24.7",
"@keystone-ui/core": "workspace:^",
"@keystone-ui/icons": "workspace:^"
},
"peerDependencies": {
"react": "catalog:"
"react": "^18.3.1"
},
"repository": "https://github.com/keystonejs/keystone/tree/main/design-system/packages/toast"
}
8 changes: 4 additions & 4 deletions design-system/packages/tooltip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"./package.json": "./package.json"
},
"peerDependencies": {
"react": "catalog:",
"react-dom": "catalog:"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"react": "catalog:",
"react-dom": "catalog:"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"dependencies": {
"@babel/runtime": "^7.24.7",
Expand Down
6 changes: 3 additions & 3 deletions design-system/website/components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { Fragment, type ReactNode } from 'react'
import { jsx, useTheme } from '@keystone-ui/core'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { usePathname } from 'next/navigation'

const Brand = () => {
const { palette } = useTheme()
Expand Down Expand Up @@ -37,8 +37,8 @@ const Section = ({ label, children }: SectionProps) => {
type NavItemProps = { href: string, children: ReactNode }
const NavItem = ({ href, children }: NavItemProps) => {
const { palette, radii, spacing } = useTheme()
const router = useRouter()
const isSelected = router.pathname === href
const pathname = usePathname()
const isSelected = pathname === href
return (
<li
css={{
Expand Down
Loading
Loading