Skip to content

A lightweight, responsive chat widget that lets users view pending questions (with avatars and timestamps) and submit new queries via a rounded input field—perfect for on-page AI-powered support.

Notifications You must be signed in to change notification settings

kumarabhishek188/dashboard-assignment

Repository files navigation

Dashboard

A modern, responsive Next.js dashboard for managing franchise onboarding, tracking progress, and providing AI-powered support.

Features

  • Account Progress
    Donut chart visualizing overall setup completion (85%), with detailed “Steps Completed” and “Steps Remaining” lists.
  • Pending Questions
    Live list of user inquiries with avatars, usernames, timestamps, and question text.
  • Franchisee Overview
    • Total Franchisees Onboard: Current count, growth percentage, avatar stack, and stage breakdown.
    • Key Insights & Feedback: Sales growth metric and custom feedback notes.
  • Financial Wellbeing
    Targets vs. current values for franchisee financial metrics, with growth indicator.
  • Prospect Leads
    List of new leads with avatar, name, and current inquiry stage.
  • AI Chat Assistant
    Embedded chat widget for submitting questions to an AI backend, with a welcome header and send button.

Tech Stack

Getting Started

Prerequisites

  • Node.js ≥ 14.x
  • npm or yarn

Installation

  1. Clone the repo
    git clone https://github.com/your-username/franchise-dashboard.git
    cd franchise-dashboard
  2. Install dependencies
    npm install
    # or
    yarn install
  3. Start development server
    npm run dev
    # or
    yarn dev
  4. Open your browser to http://localhost:3000

Deployment

This app is designed for seamless deployment on Vercel:

  1. Push your code to GitHub (or GitLab/Bitbucket).
  2. Sign in at vercel.com and import your project.
  3. Vercel will auto-detect Next.js—just click Deploy.
  4. Your dashboard will be live at https://dashboar-assignment.app.
  5. Watch the full video on Loom: https://www.loom.com/share/39bbca0cc556441983475679cacab976?sid=2e7e3af4-0468-4235-afe5-eb06bea8e551

Alternatively, use the Vercel CLI:

npm i -g vercel
vercel
# follow prompts, then:
vercel --prod

Folder Structure

/
├── components/        # Reusable UI components (e.g., DashboardContent)
├── pages/             # Next.js pages (index.js → the main dashboard)
├── public/            # Static assets (avatars, icons, etc.)
├── styles/            # Global CSS / Tailwind config
├── .gitignore
├── README.md
└── package.json

Customization

  • Colors & Spacing: Tweak tailwind.config.js to adjust theme colors, breakpoints, or spacing scale.
  • Data & API: Replace hard-coded data in pages/index.js (or Page.jsx) with live API calls.
  • Environment Variables: Add any backend URLs or API keys in a .env.local file.
  • AI Chat: Wire up the input field’s submit handler to your AI or chat-bot service.

Contributing

  1. Fork the repository.
  2. Create a feature branch (git checkout -b feature/xyz).
  3. Commit your changes (git commit -m "Add XYZ feature").
  4. Push to your branch (git push origin feature/xyz).
  5. Open a Pull Request and describe your changes.

Please follow our code style and commit message conventions. 9

About

A lightweight, responsive chat widget that lets users view pending questions (with avatars and timestamps) and submit new queries via a rounded input field—perfect for on-page AI-powered support.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published