From b4cef51a91198596ee789bc03eca47647511a7a7 Mon Sep 17 00:00:00 2001 From: Harkamal Randhawa Date: Mon, 20 Apr 2026 22:01:45 -0600 Subject: [PATCH] add web author headers --- web/app/about/page.js | 3 +++ web/app/adopt/[id]/page.js | 3 +++ web/app/adopt/page.js | 3 +++ web/app/ai-chat/page.js | 3 +++ web/app/api/[...path]/route.js | 3 +++ web/app/appointments/page.js | 3 +++ web/app/cart/page.js | 3 +++ web/app/chat/page.js | 3 +++ web/app/contact/page.js | 3 +++ web/app/forgot-password/page.js | 3 +++ web/app/layout.js | 3 +++ web/app/login/page.js | 3 +++ web/app/page.js | 3 +++ web/app/products/[id]/page.js | 3 +++ web/app/products/page.js | 3 +++ web/app/profile/page.js | 3 +++ web/app/register/page.js | 3 +++ web/app/reset-password/page.js | 3 +++ web/components/ClientProviders.js | 3 +++ web/components/FloatingChat.js | 3 +++ web/components/Footer.js | 3 +++ web/components/Navigation.js | 3 +++ web/components/PetCard.js | 3 +++ web/components/PetProfile.js | 3 +++ web/components/ProductCard.js | 3 +++ web/components/ProductProfile.js | 3 +++ web/components/petUtils.js | 3 +++ web/context/AuthContext.js | 3 +++ web/context/CartContext.js | 3 +++ web/context/ChatWidgetContext.js | 3 +++ web/lib/cartApi.js | 3 +++ web/lib/chatSocket.js | 3 +++ web/lib/fetchAllPages.js | 3 +++ 33 files changed, 99 insertions(+) diff --git a/web/app/about/page.js b/web/app/about/page.js index 7695e81d..9c62efac 100644 --- a/web/app/about/page.js +++ b/web/app/about/page.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + //About page //Three info cards covering what the store does, its focus, and how to visit export default function AboutPage() { diff --git a/web/app/adopt/[id]/page.js b/web/app/adopt/[id]/page.js index ad31e4c5..76b5a494 100644 --- a/web/app/adopt/[id]/page.js +++ b/web/app/adopt/[id]/page.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import Link from "next/link"; diff --git a/web/app/adopt/page.js b/web/app/adopt/page.js index 472c9d90..5a58e12e 100644 --- a/web/app/adopt/page.js +++ b/web/app/adopt/page.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import { useState, useEffect, useMemo } from "react"; diff --git a/web/app/ai-chat/page.js b/web/app/ai-chat/page.js index 3e96fdc3..acde6426 100644 --- a/web/app/ai-chat/page.js +++ b/web/app/ai-chat/page.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import dynamic from "next/dynamic"; diff --git a/web/app/api/[...path]/route.js b/web/app/api/[...path]/route.js index f943a8cd..a3691ab3 100644 --- a/web/app/api/[...path]/route.js +++ b/web/app/api/[...path]/route.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + //Backend URL, falls back to localhost for local development const BACKEND = process.env.BACKEND_URL || 'http://localhost:8080' diff --git a/web/app/appointments/page.js b/web/app/appointments/page.js index 1573373d..80b3db1a 100644 --- a/web/app/appointments/page.js +++ b/web/app/appointments/page.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import dynamic from "next/dynamic"; diff --git a/web/app/cart/page.js b/web/app/cart/page.js index b3e102b3..7a2f20e7 100644 --- a/web/app/cart/page.js +++ b/web/app/cart/page.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import { useState, useEffect } from "react"; diff --git a/web/app/chat/page.js b/web/app/chat/page.js index 3fcb2c80..0ebd0f1d 100644 --- a/web/app/chat/page.js +++ b/web/app/chat/page.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import dynamic from "next/dynamic"; diff --git a/web/app/contact/page.js b/web/app/contact/page.js index da7e6bd2..0e6bda0f 100644 --- a/web/app/contact/page.js +++ b/web/app/contact/page.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import { useState, useEffect } from "react"; diff --git a/web/app/forgot-password/page.js b/web/app/forgot-password/page.js index 4664a2cb..5bf6f59a 100644 --- a/web/app/forgot-password/page.js +++ b/web/app/forgot-password/page.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import dynamic from "next/dynamic"; diff --git a/web/app/layout.js b/web/app/layout.js index 4e867680..5d55beb6 100644 --- a/web/app/layout.js +++ b/web/app/layout.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + import { Geist, Geist_Mono } from "next/font/google"; import "./globals.css"; import DisplayNav from "@/components/Navigation"; diff --git a/web/app/login/page.js b/web/app/login/page.js index 4bdeba2a..7b658a38 100644 --- a/web/app/login/page.js +++ b/web/app/login/page.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import dynamic from "next/dynamic"; diff --git a/web/app/page.js b/web/app/page.js index 00d80362..14a13d32 100644 --- a/web/app/page.js +++ b/web/app/page.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import Image from "next/image"; diff --git a/web/app/products/[id]/page.js b/web/app/products/[id]/page.js index 5808c51e..d1601d10 100644 --- a/web/app/products/[id]/page.js +++ b/web/app/products/[id]/page.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import Link from "next/link"; diff --git a/web/app/products/page.js b/web/app/products/page.js index d1222a18..2c6eae54 100644 --- a/web/app/products/page.js +++ b/web/app/products/page.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import { useState, useEffect } from "react"; diff --git a/web/app/profile/page.js b/web/app/profile/page.js index 591d5c6e..514b9b88 100644 --- a/web/app/profile/page.js +++ b/web/app/profile/page.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import { useEffect, useState, useCallback, useRef } from "react"; diff --git a/web/app/register/page.js b/web/app/register/page.js index 1948ea57..dde6bb14 100644 --- a/web/app/register/page.js +++ b/web/app/register/page.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import dynamic from "next/dynamic"; diff --git a/web/app/reset-password/page.js b/web/app/reset-password/page.js index 6cfaeb7a..542192b9 100644 --- a/web/app/reset-password/page.js +++ b/web/app/reset-password/page.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import dynamic from "next/dynamic"; diff --git a/web/components/ClientProviders.js b/web/components/ClientProviders.js index 73c7bb66..9b8757a2 100644 --- a/web/components/ClientProviders.js +++ b/web/components/ClientProviders.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import { AuthProvider } from "@/context/AuthContext"; diff --git a/web/components/FloatingChat.js b/web/components/FloatingChat.js index 505c46ed..092c6f32 100644 --- a/web/components/FloatingChat.js +++ b/web/components/FloatingChat.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import { useState, useRef, useEffect } from "react"; diff --git a/web/components/Footer.js b/web/components/Footer.js index 20b1f640..2f1511d9 100644 --- a/web/components/Footer.js +++ b/web/components/Footer.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + import Link from "next/link"; import Image from "next/image"; diff --git a/web/components/Navigation.js b/web/components/Navigation.js index 42dab3ad..35432de9 100644 --- a/web/components/Navigation.js +++ b/web/components/Navigation.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import Image from "next/image"; diff --git a/web/components/PetCard.js b/web/components/PetCard.js index 69ab43fb..1de5b3e4 100644 --- a/web/components/PetCard.js +++ b/web/components/PetCard.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + import Link from "next/link"; import { getStatusClass } from "@/components/petUtils"; diff --git a/web/components/PetProfile.js b/web/components/PetProfile.js index c3398367..29a02a96 100644 --- a/web/components/PetProfile.js +++ b/web/components/PetProfile.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + import Link from "next/link"; import { getStatusClass } from "@/components/petUtils"; diff --git a/web/components/ProductCard.js b/web/components/ProductCard.js index f10d7910..3ac4dc33 100644 --- a/web/components/ProductCard.js +++ b/web/components/ProductCard.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import Link from "next/link"; diff --git a/web/components/ProductProfile.js b/web/components/ProductProfile.js index 95d7cfe5..cc55baf0 100644 --- a/web/components/ProductProfile.js +++ b/web/components/ProductProfile.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import { useState } from "react"; diff --git a/web/components/petUtils.js b/web/components/petUtils.js index abcfd6f2..a0903505 100644 --- a/web/components/petUtils.js +++ b/web/components/petUtils.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + //Temporary, until image support is added export const SPECIES_EMOJI = { diff --git a/web/context/AuthContext.js b/web/context/AuthContext.js index b912538a..14b12033 100644 --- a/web/context/AuthContext.js +++ b/web/context/AuthContext.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import { createContext, useContext, useState, useEffect, useCallback } from "react"; diff --git a/web/context/CartContext.js b/web/context/CartContext.js index 1315c213..5b4e579e 100644 --- a/web/context/CartContext.js +++ b/web/context/CartContext.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import { createContext, useContext, useState, useEffect, useCallback } from "react"; diff --git a/web/context/ChatWidgetContext.js b/web/context/ChatWidgetContext.js index 3fdf1868..6ed7ede9 100644 --- a/web/context/ChatWidgetContext.js +++ b/web/context/ChatWidgetContext.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + "use client"; import { createContext, useContext, useState, useRef, useCallback, useEffect } from "react"; diff --git a/web/lib/cartApi.js b/web/lib/cartApi.js index fc240117..5a478336 100644 --- a/web/lib/cartApi.js +++ b/web/lib/cartApi.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + //Base path for all cart API calls const BASE = "/api/v1/cart"; diff --git a/web/lib/chatSocket.js b/web/lib/chatSocket.js index d7ee0192..f8c3c037 100644 --- a/web/lib/chatSocket.js +++ b/web/lib/chatSocket.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + import { Client } from "@stomp/stompjs"; //Backend URL for the WebSocket connection, empty string means same origin diff --git a/web/lib/fetchAllPages.js b/web/lib/fetchAllPages.js index 6361d78f..034e562b 100644 --- a/web/lib/fetchAllPages.js +++ b/web/lib/fetchAllPages.js @@ -1,3 +1,6 @@ +// Author: Shiv +// Date: April 2026 + //Fetches every page from a paginated API and returns all items in one array export async function fetchAllPages(urlBuilder) { const items = [];