From 38b963e8f931b5838a298038c9c374e374fa7fb9 Mon Sep 17 00:00:00 2001 From: treejamie Date: Thu, 10 Apr 2025 15:33:59 +0100 Subject: [PATCH 1/4] updated readme --- app-router/nextjs-dashboard/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app-router/nextjs-dashboard/README.md b/app-router/nextjs-dashboard/README.md index 8f56013..8d2115c 100644 --- a/app-router/nextjs-dashboard/README.md +++ b/app-router/nextjs-dashboard/README.md @@ -6,6 +6,9 @@ Part of this tutorial was to deploy it out to vercel. It was very slick.I took the liberty of putting it on a custom domain and you can find it there 👉 [next-js-dashboard.curle.io](https://next-js-dashboard.curle.io) +However, there was a point around lesson 12 that the free plan stopped supporting preview branches. It was fairly cryptic about how to clear that up (_"delete branches" >> vercel seems to have only a concept of deployments, which I deleted all but prod and still no beueno_). + +However, I'm not paying for anything so I'm just grateful I get to have it up there for free. 1. [Getting Started ♻️][2-1] 2. [CSS Styling ♻️][2-2] @@ -22,7 +25,7 @@ Part of this tutorial was to deploy it out to vercel. It was very slick.I took t 13. [Handling Errors ♻️][2-13] 14. [Improving Accessibility ♻️][2-14] 15. [Adding Authentication ♻️][2-15] -16. Adding Metadata 🚧️ +16. [Adding Metadata ♻️][2-16] [2-1]: https://github.com/treejamie/next-js-learn/pull/7 From 40ed1f3a673e04c0c700261a90422264d782d7ad Mon Sep 17 00:00:00 2001 From: treejamie Date: Thu, 10 Apr 2025 15:42:21 +0100 Subject: [PATCH 2/4] updated readmes and also testout deploys work again --- app-router/nextjs-dashboard/README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app-router/nextjs-dashboard/README.md b/app-router/nextjs-dashboard/README.md index 8d2115c..0ff57a7 100644 --- a/app-router/nextjs-dashboard/README.md +++ b/app-router/nextjs-dashboard/README.md @@ -6,9 +6,6 @@ Part of this tutorial was to deploy it out to vercel. It was very slick.I took the liberty of putting it on a custom domain and you can find it there 👉 [next-js-dashboard.curle.io](https://next-js-dashboard.curle.io) -However, there was a point around lesson 12 that the free plan stopped supporting preview branches. It was fairly cryptic about how to clear that up (_"delete branches" >> vercel seems to have only a concept of deployments, which I deleted all but prod and still no beueno_). - -However, I'm not paying for anything so I'm just grateful I get to have it up there for free. 1. [Getting Started ♻️][2-1] 2. [CSS Styling ♻️][2-2] @@ -41,4 +38,5 @@ However, I'm not paying for anything so I'm just grateful I get to have it up th [2-12]: https://github.com/treejamie/next-js-learn/pull/20 [2-13]: https://github.com/treejamie/next-js-learn/pull/23 [2-14]: https://github.com/treejamie/next-js-learn/pull/25 -[2-15]: https://github.com/treejamie/next-js-learn/pull/28 \ No newline at end of file +[2-15]: https://github.com/treejamie/next-js-learn/pull/28 +[2-16]: https://github.com/treejamie/next-js-learn/pull/29 \ No newline at end of file From c1c625f31474763704513c31c874f6a6971a3084 Mon Sep 17 00:00:00 2001 From: treejamie Date: Thu, 10 Apr 2025 15:54:25 +0100 Subject: [PATCH 3/4] and that's a wrap. --- .../app/dashboard/(overview)/page.tsx | 8 ++++++++ .../app/dashboard/customers/page.tsx | 9 +++++++++ .../app/dashboard/invoices/[id]/edit/page.tsx | 6 ++++++ .../app/dashboard/invoices/create/page.tsx | 13 +++++++++++-- .../app/dashboard/invoices/page.tsx | 9 ++++++++- .../nextjs-dashboard/app/dashboard/layout.tsx | 4 ++++ .../nextjs-dashboard/{public => app}/favicon.ico | Bin app-router/nextjs-dashboard/app/layout.tsx | 11 +++++++++++ app-router/nextjs-dashboard/app/login/page.tsx | 10 +++++++++- .../{public => app}/opengraph-image.png | Bin 10 files changed, 66 insertions(+), 4 deletions(-) rename app-router/nextjs-dashboard/{public => app}/favicon.ico (100%) rename app-router/nextjs-dashboard/{public => app}/opengraph-image.png (100%) diff --git a/app-router/nextjs-dashboard/app/dashboard/(overview)/page.tsx b/app-router/nextjs-dashboard/app/dashboard/(overview)/page.tsx index a850576..0480669 100644 --- a/app-router/nextjs-dashboard/app/dashboard/(overview)/page.tsx +++ b/app-router/nextjs-dashboard/app/dashboard/(overview)/page.tsx @@ -5,6 +5,14 @@ import { lusitana } from '@/app/ui/fonts'; import { fetchLatestInvoices, fetchCardData } from '@/app/lib/data'; import { Suspense } from 'react'; import { RevenueChartSkeleton } from '@/app/ui/skeletons'; +import { Metadata } from 'next'; + + +export const metadata: Metadata = { + title: 'It\'s the dashboard!', +}; + + export default async function Page() { const latestInvoices = await fetchLatestInvoices(); diff --git a/app-router/nextjs-dashboard/app/dashboard/customers/page.tsx b/app-router/nextjs-dashboard/app/dashboard/customers/page.tsx index 05badaf..902e961 100644 --- a/app-router/nextjs-dashboard/app/dashboard/customers/page.tsx +++ b/app-router/nextjs-dashboard/app/dashboard/customers/page.tsx @@ -1,3 +1,12 @@ +import { Metadata } from 'next'; + + +export const metadata: Metadata = { + title: 'Customers', +}; + + + export default function Page() { return

Customers Page

; } \ No newline at end of file diff --git a/app-router/nextjs-dashboard/app/dashboard/invoices/[id]/edit/page.tsx b/app-router/nextjs-dashboard/app/dashboard/invoices/[id]/edit/page.tsx index 882a4c0..c345f47 100644 --- a/app-router/nextjs-dashboard/app/dashboard/invoices/[id]/edit/page.tsx +++ b/app-router/nextjs-dashboard/app/dashboard/invoices/[id]/edit/page.tsx @@ -2,6 +2,12 @@ import Form from '@/app/ui/invoices/edit-form'; import Breadcrumbs from '@/app/ui/invoices/breadcrumbs'; import { fetchInvoiceById, fetchCustomers } from '@/app/lib/data'; import { notFound } from 'next/navigation'; +import { Metadata } from 'next'; + + +export const metadata: Metadata = { + title: 'Edit Invoice', +}; export default async function Page(props: { params: Promise<{ id: string }> }) { diff --git a/app-router/nextjs-dashboard/app/dashboard/invoices/create/page.tsx b/app-router/nextjs-dashboard/app/dashboard/invoices/create/page.tsx index 902415d..b12c110 100644 --- a/app-router/nextjs-dashboard/app/dashboard/invoices/create/page.tsx +++ b/app-router/nextjs-dashboard/app/dashboard/invoices/create/page.tsx @@ -1,7 +1,16 @@ import Form from '@/app/ui/invoices/create-form'; import Breadcrumbs from '@/app/ui/invoices/breadcrumbs'; import { fetchCustomers } from '@/app/lib/data'; - + +import { Metadata } from 'next'; + + +export const metadata: Metadata = { + title: 'Create Invoice', +}; + + + export default async function Page() { const customers = await fetchCustomers(); @@ -9,7 +18,7 @@ export default async function Page() {
diff --git a/app-router/nextjs-dashboard/public/opengraph-image.png b/app-router/nextjs-dashboard/app/opengraph-image.png similarity index 100% rename from app-router/nextjs-dashboard/public/opengraph-image.png rename to app-router/nextjs-dashboard/app/opengraph-image.png From 78602e4ca532b35725775e4a19e5388adada6a79 Mon Sep 17 00:00:00 2001 From: treejamie Date: Thu, 10 Apr 2025 15:55:48 +0100 Subject: [PATCH 4/4] and added creds into the README --- README.md | 17 +++++++++++++---- app-router/nextjs-dashboard/README.md | 6 ++++++ 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 451fb42..97dcf5c 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,12 @@ The tutorials where not really designed to be done in the same repo, so the base Part of this tutorial was to deploy it out to vercel. It was very slick.I took the liberty of putting it on a custom domain and you can find it there 👉 [next-js-dashboard.curle.io](https://next-js-dashboard.curle.io) +To login, use +``` +user@nextmail.com +123456 +``` + 1. [Getting Started ♻️][2-1] 2. [CSS Styling ♻️][2-2] @@ -43,9 +49,9 @@ Part of this tutorial was to deploy it out to vercel. It was very slick.I took t 11. [Adding Search and Pagination ♻️][2-11] 12. [Mutating Data️ ♻️][2-12] 13. [Handling Errors ♻️][2-13] -14. Improving Accessibility 🚧 -15. Adding Authentication 🚧 -16. Adding Metadata 🚧️ +14. [Improving Accessibility ♻️][2-14] +15. [Adding Authentication ♻️][2-15] +16. [Adding Metadata ♻️][2-16] [2-1]: https://github.com/treejamie/next-js-learn/pull/7 @@ -59,4 +65,7 @@ Part of this tutorial was to deploy it out to vercel. It was very slick.I took t [2-9]: https://github.com/treejamie/next-js-learn/pull/17 [2-11]: https://github.com/treejamie/next-js-learn/pull/19 [2-12]: https://github.com/treejamie/next-js-learn/pull/20 -[2-13]: https://github.com/treejamie/next-js-learn/pull/23 \ No newline at end of file +[2-13]: https://github.com/treejamie/next-js-learn/pull/23 +[2-14]: https://github.com/treejamie/next-js-learn/pull/25 +[2-15]: https://github.com/treejamie/next-js-learn/pull/28 +[2-16]: https://github.com/treejamie/next-js-learn/pull/29 \ No newline at end of file diff --git a/app-router/nextjs-dashboard/README.md b/app-router/nextjs-dashboard/README.md index 0ff57a7..f2bc153 100644 --- a/app-router/nextjs-dashboard/README.md +++ b/app-router/nextjs-dashboard/README.md @@ -6,6 +6,12 @@ Part of this tutorial was to deploy it out to vercel. It was very slick.I took the liberty of putting it on a custom domain and you can find it there 👉 [next-js-dashboard.curle.io](https://next-js-dashboard.curle.io) +To login, use +``` +user@nextmail.com +123456 +``` + 1. [Getting Started ♻️][2-1] 2. [CSS Styling ♻️][2-2]