Skip to content

feat: create store analytics and finance dashboard with AI business a… - #7

Merged
NathanaelGracedo merged 1 commit into
mainfrom
juan-merchant-analytics-review-marketplace
Jul 21, 2026
Merged

NathanaelGracedo merged 1 commit into
mainfrom
juan-merchant-analytics-review-marketplace

Conversation

@NathanaelGracedo

Copy link
Copy Markdown
Collaborator

…ssistant integration (review ulasan user pada marketplace)

…ssistant integration (review ulasan user pada marketplace)
Copilot AI review requested due to automatic review settings July 21, 2026 11:37
@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
landing-page-modal-yuk Ready Ready Preview, Comment Jul 21, 2026 11:38am

@NathanaelGracedo
NathanaelGracedo merged commit 6ac16e6 into main Jul 21, 2026
3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the existing merchant analytics page by adding a new Reviews tab intended to surface customer review insights alongside the finance and sales analytics experience.

Changes:

  • Added a new Reviews tab (state, navigation button, and content renderer) with search + rating filter UI.
  • Expanded translations with a Reviews tab label and an additional AI insight (“Customer Sentiment Summary”).
  • Introduced mock review data to drive the new Reviews UI.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

const { storeId } = useMerchantContext();
const [lang, setLang] = useState<"en" | "id">("en");
const [activeTab, setActiveTab] = useState<"finance" | "sales" | "ai">("finance");
const [activeTab, setActiveTab] = useState<"finance" | "sales" | "reviews" | "ai">("finance");
Comment on lines +1018 to +1022
<input
type="text"
placeholder="Cari pelanggan/produk..."
value={reviewSearch}
onChange={(e) => setReviewSearch(e.target.value)}
<Filter className="w-4 h-4 text-slate-400 absolute left-3 top-1/2 -translate-y-1/2 z-10" />
<select
value={reviewFilter}
onChange={(e) => setReviewFilter(e.target.value as any)}
Comment on lines +976 to +980
const mockReviews = [
{ id: 1, customer: "Budi Santoso", rating: 5, date: "21 Jul 2026", comment: "Roti cokelatnya masih sangat enak walaupun beli saat surplus. Teksturnya lembut dan harganya sangat bersahabat!", product: "Roti Cokelat" },
{ id: 2, customer: "Siti Rahma", rating: 4, date: "20 Jul 2026", comment: "Pelayanannya ramah dan proses pick-up sangat cepat. Kualitas makanan masih terjamin.", product: "Paket Bundling Surplus" },
{ id: 3, customer: "Andi Saputra", rating: 5, date: "19 Jul 2026", comment: "Inisiatif yang sangat bagus untuk mengurangi limbah makanan. Makanan beratnya mengenyangkan dan rasanya tidak berubah.", product: "Nasi Goreng Spesial" },
{ id: 4, customer: "Dewi Lestari", rating: 3, date: "18 Jul 2026", comment: "Rotinya agak sedikit keras, tapi masih layak konsumsi. Sesuai dengan harganya yang diskon.", product: "Roti Tawar" },

This branch was successfully deployed

1 active deployment
Preview 30321846 Deployed Jul 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants