From 99b00cbb6b5bd28609319936cce36fd833072115 Mon Sep 17 00:00:00 2001 From: zramsay Date: Sun, 2 Feb 2025 12:02:39 -0500 Subject: [PATCH] major update --- .env.example | 5 +++-- src/app/animals/page.tsx | 4 ++-- src/app/page.tsx | 6 +++--- src/components/ImageAnalysisCard.tsx | 3 ++- src/components/Navigation.tsx | 2 +- src/config/appConfig.ts | 5 +++-- src/services/googleVisionService.ts | 6 ++++-- 7 files changed, 18 insertions(+), 13 deletions(-) diff --git a/.env.example b/.env.example index a0027eb..01995c2 100644 --- a/.env.example +++ b/.env.example @@ -1,8 +1,9 @@ NEXT_PUBLIC_LACONIC_GQL_ENDPOINT="https://laconicd-sapo.laconic.com/api" NEXT_PUBLIC_ALWAYS_RANDOM_COORDS=true NEXT_PUBLIC_THEME=forest -NEXT_PUBLIC_APP_TITLE="Wildlife Tracker" -NEXT_PUBLIC_APP_DESCRIPTION="Document your wildlife encounters" +NEXT_PUBLIC_APP_TITLE="Smokey The Bear" +NEXT_PUBLIC_APP_DESCRIPTION="bears" +NEXT_PUBLIC_APP_LOCATION="Texas" NEXT_PUBLIC_PORTAL_NAME=test-1234 #can be a csv list diff --git a/src/app/animals/page.tsx b/src/app/animals/page.tsx index d9081aa..72165e0 100644 --- a/src/app/animals/page.tsx +++ b/src/app/animals/page.tsx @@ -115,10 +115,10 @@ export default function AnimalsPage() {

- Animal Registry + {APP_CONFIG.title} Portal

- Discover wildlife sightings from our community + Discover {APP_CONFIG.description} sightings from our community in {APP_CONFIG.location}

diff --git a/src/app/page.tsx b/src/app/page.tsx index 0bcf95b..67b28d2 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -27,10 +27,10 @@ const Page: React.FC = (): React.ReactElement => {

- {APP_CONFIG.title} + {APP_CONFIG.title} Data Portal

- {APP_CONFIG.description} + Document encounters with {APP_CONFIG.description} in {APP_CONFIG.location}

@@ -51,7 +51,7 @@ const Page: React.FC = (): React.ReactElement => { {/* Info Section */}

- Powered by Mark • Use at your own risk + Powered by Mito Systems

diff --git a/src/components/ImageAnalysisCard.tsx b/src/components/ImageAnalysisCard.tsx index 25d5001..ea42a5f 100644 --- a/src/components/ImageAnalysisCard.tsx +++ b/src/components/ImageAnalysisCard.tsx @@ -3,6 +3,7 @@ import React, { useState, useRef } from 'react' import { Leaf } from 'lucide-react' +import { APP_CONFIG } from '../config/appConfig' interface ImageAnalysisCardProps { @@ -123,7 +124,7 @@ const ImageAnalysisCard: React.FC = ({ className="max-h-64 mx-auto rounded-lg" /> ) : ( -

Share interesting animal behaviour...

+

Share pictures of {APP_CONFIG.description}

)} diff --git a/src/components/Navigation.tsx b/src/components/Navigation.tsx index d46bf59..520b4a1 100644 --- a/src/components/Navigation.tsx +++ b/src/components/Navigation.tsx @@ -9,7 +9,7 @@ const Navigation = () => { const links = [ { href: '/', label: 'Home' }, - { href: '/animals', label: 'Animal Registry' }, + { href: '/animals', label: 'Sightings' }, { href: '/about', label: 'About' } ] diff --git a/src/config/appConfig.ts b/src/config/appConfig.ts index 0880a23..dee4446 100644 --- a/src/config/appConfig.ts +++ b/src/config/appConfig.ts @@ -2,8 +2,9 @@ export const APP_CONFIG = { theme: process.env.NEXT_PUBLIC_THEME || 'forest', // forest, ocean, desert, mountain - title: process.env.NEXT_PUBLIC_APP_TITLE || 'Ranger', - description: process.env.NEXT_PUBLIC_APP_DESCRIPTION || 'Go outside and touch grass', + title: process.env.NEXT_PUBLIC_APP_TITLE, + description: process.env.NEXT_PUBLIC_APP_DESCRIPTION, + location: process.env.NEXT_PUBLIC_APP_LOCATION, recordEnv: process.env.NEXT_PUBLIC_RECORD_ENV || 'production' } diff --git a/src/services/googleVisionService.ts b/src/services/googleVisionService.ts index 5e01b59..3f2d20e 100644 --- a/src/services/googleVisionService.ts +++ b/src/services/googleVisionService.ts @@ -1,5 +1,7 @@ // src/services/googleVisionService.ts +import { APP_CONFIG } from "../config/appConfig" + export interface VisionAnalysisResult { description?: string error?: string @@ -15,8 +17,8 @@ export interface VisionConfig { export const VISION_CONFIG: VisionConfig = { modelId: "google-vision-v1", - name: "Worldwide Animal Oracle", - description: "Upload photos of your wildlife encounters from the real world. Verified animal images will be added to the Animal Registry.", + name: "Wildlife Data Portal", + description: "Upload photos of " + APP_CONFIG.description + " from the wild, in " + APP_CONFIG.location + " to analyze and record your encounters.", } export async function analyzeImage(imageFile: File): Promise {