feat: create store analytics and finance dashboard with AI business a… - #7
Merged
NathanaelGracedo merged 1 commit intoJul 21, 2026
Merged
Conversation
…ssistant integration (review ulasan user pada marketplace)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ssistant integration (review ulasan user pada marketplace)