Commit Graph

172 Commits

Author SHA1 Message Date
StephDietz
7264855050 remove npm lock file 2023-10-26 10:51:53 -07:00
Delba de Oliveira
a4c2ac4fdf Update nextauth 2023-10-26 10:38:26 -07:00
Delba de Oliveira
a7b3bc64df Update next 2023-10-26 10:24:02 -07:00
Delba de Oliveira
1cab229e0f Fix 2023-10-26 10:21:39 -07:00
Delba de Oliveira
36a9c02bc9 Fix 2023-10-26 10:04:26 -07:00
Delba de Oliveira
d1c6a2fd62 build errors 2023-10-26 09:58:28 -07:00
Delba de Oliveira
04d6cb5af5 Create pnpm-lock.yaml 2023-10-26 09:56:44 -07:00
Delba de Oliveira
bf7c863a5d Merge branch 'add-starting-example-2' of https://github.com/vercel/next-learn into add-starting-example-2 2023-10-26 09:56:15 -07:00
Delba de Oliveira
5ebfe4885e 💅 2023-10-26 09:56:09 -07:00
StephDietz
1060d8770e switch from pnpm to npm 2023-10-26 09:44:15 -07:00
Delba de Oliveira
aaf15d54c6 Merge branch 'add-starting-example-2' of https://github.com/vercel/next-learn into add-starting-example-2 2023-10-26 09:35:46 -07:00
Delba de Oliveira
00459485b0 Chapter 9 2023-10-26 09:35:40 -07:00
StephDietz
266ebb124b chapter 8 2023-10-26 09:34:15 -07:00
Delba de Oliveira
cae336221a Remove PPR flag 2023-10-26 09:32:59 -07:00
Delba de Oliveira
94849b458b Chapter 11 2023-10-26 09:32:27 -07:00
Delba de Oliveira
a2b464d837 Revert 2023-10-26 09:31:34 -07:00
StephDietz
ad6ef574e7 chapter 7 2023-10-26 09:30:41 -07:00
Delba de Oliveira
55dde02de3 Chapter 11 and 12 2023-10-26 09:26:45 -07:00
StephDietz
61d291649b chapter 6 2023-10-26 09:24:32 -07:00
StephDietz
c5af4f8cfb chapter 5 2023-10-26 09:23:13 -07:00
Delba de Oliveira
37a3dc3094 Merge branch 'add-starting-example-2' of https://github.com/vercel/next-learn into add-starting-example-2 2023-10-26 09:20:11 -07:00
StephDietz
f514bc48f5 re-add Link to page 2023-10-26 09:20:05 -07:00
Delba de Oliveira
82b3084873 Revert "Chapters 12-13"
This reverts commit b6da764d85.
2023-10-26 09:19:49 -07:00
StephDietz
9653f8136e Merge branch 'add-starting-example-2' of https://github.com/vercel/next-learn into add-starting-example-2 2023-10-26 09:18:59 -07:00
StephDietz
268d08d96d chapter 5 2023-10-26 09:18:54 -07:00
Delba de Oliveira
51ca64e32a Merge branch 'add-starting-example-2' of https://github.com/vercel/next-learn into add-starting-example-2 2023-10-26 09:17:54 -07:00
Delba de Oliveira
b6da764d85 Chapters 12-13 2023-10-26 09:17:44 -07:00
StephDietz
6cb4b9c4ab chapter 3 2023-10-26 09:14:37 -07:00
Delba de Oliveira
7b14093d2a Remove routes and actions 2023-10-26 09:10:36 -07:00
StephDietz
37d340fa88 merge 2023-10-26 09:09:28 -07:00
StephDietz
c8a192c0ca first 3 chapters 2023-10-26 09:06:55 -07:00
Delba de Oliveira
f4eb6239c5 Add code for chapter 15 2023-10-26 08:57:28 -07:00
Delba de Oliveira
401763aa2d Remove code for chapter 16 2023-10-26 08:47:33 -07:00
Delba de Oliveira
0574e4f210 Duplicate starter 2023-10-26 08:37:00 -07:00
Delba de Oliveira
9044c85918 Fix broken images, remove unused assets, update types, polish (#224)
* Update next to canary

* Update layout.tsx

* Use canary

* Remove serverActions flag warning

* Use unstable_noStore

* Add Date.now() test

* Update metadataBase url

* Create wrapper component for Cards

* Update page.tsx

* Misc

* Delete unused data fetch

* Add noStore to /invoices and /customers functions

* Remove date.now()

* Use canary

* Rename component

* Fix imports

* Update types for useFormStatus and useFormState

* Rename folder, add team members

* fixed images and added login button pending state

* Update dashboard/final-example/app/lib/data.ts

Co-authored-by: Matt Kane <m@mk.gg>

---------

Co-authored-by: Steven Tey <stevensteel97@gmail.com>
Co-authored-by: Matt Kane <m@mk.gg>
2023-10-26 09:31:48 -06:00
Delba de Oliveira
3814b8d96b Prep for PPR and Polish (#215)
* Update next to canary

* Update layout.tsx

* Use canary

* Remove serverActions flag warning

* Use unstable_noStore

* Add Date.now() test

* Update metadataBase url

* Create wrapper component for Cards

* Update page.tsx

* Misc

* Delete unused data fetch

* Add noStore to /invoices and /customers functions

* Remove date.now()

* Use canary

* Rename component

* Fix imports

* Update types for useFormStatus and useFormState

* change react types due to https://github.com/DefinitelyTyped/DefinitelyTyped/issues/66841

---------

Co-authored-by: Steven Tey <stevensteel97@gmail.com>
2023-10-26 14:06:35 +01:00
Balázs Orbán
f8adecb7a4 Match NextAuth config with the course (#221)
* Create .env.local.example

* changes

* Update page.tsx

* Update definitions.ts

* wip signin validation

* fix validation in action

* fix

* remove import

* change

* update

* change

* added button state

* improved UI

---------

Co-authored-by: Steven Tey <stevensteel97@gmail.com>
2023-10-25 23:53:07 +01:00
Michael Novotny
978ce53dd8 Full code review changes (#222)
* Full code review changes

* Adds link

* Removes the x

* Update dashboard/15-final/README.md

* Update dashboard/15-final/app/lib/placeholder-data.js

* Update dashboard/README.md

* Update dashboard/README.md

---------

Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
2023-10-25 15:21:22 +01:00
Balázs Orbán
abf301951d feat: update to next-auth v5 (#219)
* Update to latest + refactoring.

* idk, fuck it

* Trying to make it work

* add `next-auth` fixes (#211)

Co-authored-by: Balázs Orbán <info@balazsorban.com>

* Another one

* test

* bump `next` and `next-auth`, `bcrypt` -> `bcryptjs`

* simplify

* upgrade types

* add basic html form validatoin

* add zod validation

* update

* remove non next-auth changes

* revert

* revert

* revert

* revert

* uses bcrypt

* fix imports

* tweaks

* revert

* revert

* revert

---------

Co-authored-by: Lee Robinson <lrobinson2011@gmail.com>
Co-authored-by: Delba de Oliveira <delbabrown@gmail.com>
2023-10-25 00:14:12 +01:00
Stephanie Dietz
adb37fa72e add amy and balazs to our customers table (#220) 2023-10-24 15:55:49 -06:00
Michael Novotny
26203163d0 Replaces dummy with placeholder (#217)
* Replaces `dummy` with `placeholder`

* Fix lockfile?
2023-10-20 22:59:52 +01:00
Delba de Oliveira
16659fc5d9 Update vercel/postgres (#213) 2023-10-19 09:38:39 -05:00
Delba de Oliveira
a4d66e6527 Add basic metadata and update OG image (#212)
* Bump nextauth

* Move data fetching function to data.ts

- We don't ask the user to add this in the chapter

* Fix imports

* Misc

* Addd metadata

* Add new OG image
2023-10-19 09:37:54 -05:00
Delba de Oliveira
f53d117332 Update error page styles (#210)
Co-authored-by: Stephanie Dietz <49788645+StephDietz@users.noreply.github.com>
2023-10-12 08:59:43 -05:00
Delba de Oliveira
24ac91ac03 Fix form bugs (#209)
* Move breadcrumbs

* Update definitions

* Update breadcrumbs.tsx

* Move redirect outside try/catch block

* Update forms
2023-10-12 08:54:02 -05:00
Delba de Oliveira
3d5c36a6e6 Move breadcrumbs from <Form> up to the <Page> (#208)
* Move breadcrumbs up to page

* Use default exports

* Remove extra divs
2023-10-12 08:21:37 -05:00
Delba de Oliveira
c6413f9037 Add table loading skeletons and move data fetching down (#207)
* Use tailwind variants

* Move data fetching down

* Add table skeleton

* Update pagination data fetching

* Fix skeleton layout shift

* Add key to suspense to trigger it on subsequent navigation
2023-10-10 14:04:46 +01:00
Delba de Oliveira
728368d712 Fix pagination bugs and refactor/abstract styling logic (#205)
* Simplify TS

* Abstract away pagination logic

* Clean up

* Fix bugs and refactor styling logic

* Add comments

* Fix border bug for single page

* Fix search pagination
2023-10-09 16:59:24 +01:00
Stephanie Dietz
1e59e865f2 Truncate pagination (#200)
* fix pagination bug

* fix hover bug on active page
2023-10-09 10:43:26 +01:00
Delba de Oliveira
4be9de1269 Stream Latest Invoices (#202)
Co-authored-by: Stephanie Dietz <49788645+StephDietz@users.noreply.github.com>
2023-10-06 09:58:05 -05:00