Commit Graph

141 Commits

Author SHA1 Message Date
Othella
03e5a415dd Fixed Sign out button full width in sidenav (#365)
* Fixed Sign out button with on sidenav

* Fix button width for final-example

---------

Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
Co-authored-by: Delba de Oliveira <delbabrown@gmail.com>
2023-11-16 14:42:36 +00:00
Delba de Oliveira
45fcde471b Improve Form Error Accessibility (#450) 2023-11-16 08:27:20 -06:00
Mohammed Elzanaty
0a3dda242c chore: fix dashboard readme (#317)
Co-authored-by: mohamed.elzanaty3 <mohamed.elzanaty3@vodafone.com>
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
2023-11-16 14:25:21 +00:00
Ansul Agrawal
7dbcd94d4c Fix: Button Import (#298)
* Added Cursor Pointer and Fix Button Import

* Removed Cursor Pointer from text Input

* Removed From edit form also

* Prettier fix

---------

Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
Co-authored-by: Delba de Oliveira <delbabrown@gmail.com>
2023-11-16 14:16:48 +00:00
Delba de Oliveira
18221b2f80 Update node versions for v14 (#446)
* Update minimum node version for server actions

* Update min node version for Next.js 14

* Update root
2023-11-15 19:58:21 +00:00
Delba de Oliveira
0a2b32dfc0 Upgrade Next.js + Papercuts (#441)
* Remove 'use client' as users will add it in the course

* Use consistent variable names as per React docs

* Remove alt tag

- This will error in the demo, to show them how `npm run lint` works

* Fix capitalization

* Upgrade next
2023-11-14 15:40:18 +00:00
Kenny Elshoff
c8398b19f3 fix: throw new error in fetchInvoiceById catch block (#423)
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
2023-11-14 14:37:37 +00:00
Tyler Howard
c64f396fa9 Fix SQL formatting convention (#390) (#421)
Co-authored-by: Tyler Howard <22920537+Tyler98ky@users.noreply.github.com>
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
2023-11-14 14:24:26 +00:00
Krom
1813c7dc45 Update table.tsx (#432)
Fix starter code to remove code that the course tells the user to notice and write themselves. Shows the intended error via "next lint".

Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
2023-11-13 17:11:07 +00:00
Krystian Mateusiak
6a9c3366fb Update page.tsx - fix typo (#433) 2023-11-13 17:08:08 +00:00
Wes
afe1f5d71a Fix the typo in the comments of seed.js (#402) 2023-11-07 12:17:55 +00:00
Delba de Oliveira
280bf655fa Add missing Arrow Icon (#397) 2023-11-06 16:29:23 -06:00
Alan Chou
a9077215a0 fix: typo (#358) 2023-11-03 09:26:01 -05:00
Steven Tey
888a13524a Fix Middleware matcher to make profile pics work (#355) 2023-11-03 12:27:23 +00:00
Ansul Agrawal
94f19a17aa Added Missing File favicon.ico and opengraph-image (#312)
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
2023-10-31 16:55:40 +00:00
Delba de Oliveira
a910ad8f58 Rename Cards component to CardWrapper (#329)
* Rename <Cards/> to <CardWrapper/>

* Update starter-example
2023-10-31 11:15:00 -05:00
Delba de Oliveira
5a65b98034 Use bind instead of hidden field (#311)
* Use bind instead of hidden field

* Update actions.ts
2023-10-31 11:14:37 -05:00
Delba de Oliveira
8543a0d55f Fix .env filename (#330) 2023-10-31 09:25:29 -05:00
YukiOnishi
7a81783cb0 fix: revised to add env sample (#324) 2023-10-31 11:46:47 +00:00
Delba de Oliveira
9b33959335 Fix seed script (#314) 2023-10-30 15:27:29 -05:00
Delba de Oliveira
386dd877da Use absolute imports (#309) 2023-10-30 15:32:54 +00:00
Dennis Morello
1ac78462f2 fix: remove incorrect labels in radio groups (#269)
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
2023-10-30 14:59:25 +00:00
Delba de Oliveira
7ff4d72154 Fix ESLint (#305)
* Add eslint

* Remove script

- The user will be adding it during the course
2023-10-30 09:31:50 -05:00
Delba de Oliveira
e8ba4d3200 Remove PPR flag, add noStore to fetchInvoiceById (#307)
* Remove PPR flag

* Add no store to fetchInvoiceById
2023-10-30 09:29:41 -05:00
Sukhvant Singh
e008e7a0e2 FIX #274 Eliminated extraneous letter 'S' from app/ui/invoices/create-form.tsx, located at line 60. (#280)
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
2023-10-30 13:20:38 +00:00
Harkirat Singh
1a598cd502 Fix Starter-example README.md (#300)
* Fix Starter-example README.md

* Update dashboard/starter-example/README.md

---------

Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
2023-10-30 13:10:44 +00:00
Lee Robinson
44b3b1f37c Address some feedback. (#233) 2023-10-27 10:26:16 -05:00
Stephanie Dietz
162d59256e Learn run through 💅🏼 (#230)
* remove auth sign out form side anv

* remove unused clsx

* comment out code

* comment out code that throws error when trying to deploy to vercel

* Remove vercel emails

* comment out more code so it will deploy to vercel

* Include AUTH_URL

* add notes to commented out code

* Add bcrypt

* Use .env instead of .env.local

* Update types

* Move skeletons

* Update import

* Delete search functionality

* More fixes

* Misc fixes

* Update login-form.tsx

* Update table.tsx

* Update eslint

* eslint fix

* formatting

---------

Co-authored-by: Delba de Oliveira <delbabrown@gmail.com>
2023-10-26 16:38:00 -06:00
Delba de Oliveira
82f2fae791 Add starter example (#225)
* Duplicate starter

* Remove code for chapter 16

* Add code for chapter 15

* first 3 chapters

* Remove routes and actions

* chapter 3

* Chapters 12-13

* chapter 5

* Revert "Chapters 12-13"

This reverts commit b6da764d85.

* re-add Link to page

* chapter 5

* chapter 6

* Chapter 11 and 12

* chapter 7

* Revert

* Chapter 11

* Remove PPR flag

* chapter 8

* Chapter 9

* switch from pnpm to npm

* 💅

* Create pnpm-lock.yaml

* build errors

* Fix

* Fix

* Update next

* Update nextauth

---------

Co-authored-by: StephDietz <steph.dietz@vercel.com>
2023-10-26 12:49:57 -05: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
Delba de Oliveira
cf85adfbc5 Improve contrast on skeletons (#201)
* Darken skeletons for screenshots

* Fix shimmer bug

* Add delay

* Use 3 secs
2023-10-06 09:42:31 -05:00
Delba de Oliveira
3f2a2ae845 Clean up 💅🏼 (#198)
* Use string literals

* Use 666 for evil rabbit

* Delete extra logo

* Use consistent pixels for images

* Update button.tsx

* Fix 666 mistake
2023-10-06 14:28:42 +01:00
Stephanie Dietz
c1054b5406 update loading skeletons to match new UI (#199)
* update loading skeletons

* fix loading skeleton spacing
2023-10-05 12:00:48 -05:00
Delba de Oliveira
11b0e7c69d Combine data fetches for cards (#197) 2023-10-05 15:18:08 +01:00
Emil Kowalski
e4dc33e944 Update customers view (#196)
* Update tables

* Add new customers, add search, polish

* Make search reusable, update customers

* polish
2023-10-05 09:16:12 +01:00