Commit Graph

452 Commits

Author SHA1 Message Date
Cursor Agent
0727a5c41e Add JWT Bearer authentication registration to 5 microservice Program.cs files
Add AddAuthentication(JwtBearerDefaults.AuthenticationScheme) and
AddJwtBearer() service registration before CORS configuration in:
- CatalogService.API
- OrderService.API
- InventoryService.API
- FnbEngine.API
- BookingService.API

Also add Microsoft.AspNetCore.Authentication.JwtBearer v10.0.1 NuGet
package reference to each service's .csproj file.

This fixes the runtime error caused by UseAuthentication() being called
without a registered authentication scheme.

Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-26 19:26:51 +00:00
Cursor Agent
aed16d4059 Add UseAuthentication and UseAuthorization middleware after UseRouting in 5 microservices
Added app.UseAuthentication() and app.UseAuthorization() after
app.UseRouting() in the middleware pipeline for:
- CatalogService.API
- OrderService.API
- InventoryService.API
- FnbEngine.API
- BookingService.API

Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-26 19:21:36 +00:00
Cursor Agent
ccf72aa5d0 Add 9 missing Blazor Razor workflow files for Cafe and Restaurant POS verticals
Cafe (2 files):
- CafeJourney.razor: 5-step café workflow tracker
- MilkFoamOptions.razor: Milk foam/drink customization sub-options

Restaurant (7 files):
- RestaurantJourney.razor: 7-step restaurant workflow tracker
- AllergenWarning.razor: Allergen alert display with severity levels
- CourseTiming.razor: Multi-course meal timing management
- RestaurantMenuManagement.razor: Restaurant menu editor with quick actions
- OrderNote.razor: Order/item special notes with quick chips
- TableMergeSplit.razor: Table merge and split operations
- TableSelect.razor: Quick table selection with capacity matching

All files follow existing POS patterns: @layout PosLayout, @inherits PosBase,
bilingual EN/VI comments, section markers, CSS vars, FormatPrice, NavigateTo,
Lucide icons, hardcoded Vietnamese demo data with VND prices.

Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-26 18:36:08 +00:00
Cursor Agent
8953a6c1d9 feat(karaoke): add 4 missing Blazor Razor workflow files
- KaraokeJourney.razor: 6-step end-to-end session workflow tracker
- PeakWarning.razor: Peak hours pricing warning with cost estimator
- RoomExtend.razor: Room extension dialog with time options and preview
- RoomReset.razor: Room cleanup/reset checklist with progress tracking

All files follow existing Karaoke patterns (PosLayout, PosBase, FormatPrice,
NavigateTo, bilingual comments, section markers, CSS vars, Lucide icons,
Vietnamese demo data).

Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-26 18:33:03 +00:00
Cursor Agent
8a1e5eafad docs: update AGENTS.md — remove stale Blazor build error note, fix port
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-26 15:50:38 +00:00
Cursor Agent
d3cb537e3e feat(pos): add 8 shared dialog/screen Razor files
Add POS dialog components in Shared/Dialogs/:
- VoidRefund.razor: Void/refund dialog with order lookup, type selection, reason, manager PIN
- OrderEdit.razor: Edit existing order with qty controls, add items, discount, notes
- OrderCancel.razor: Cancel order confirmation with reason dropdown, refund warning
- SplitBill.razor: Split bill with equal/by-item/custom modes
- StockIn.razor: Quick stock-in with supplier, lot, expiry, recent log
- StockOut.razor: Stock-out with current stock display, reason selection
- StockTransfer.razor: Transfer between branches with product list
- PriceCheck.razor: Price check with hero price, promotions, price history

All files use @layout PosLayout, @inherits PosBase, bilingual comments,
CSS variables, Vietnamese demo data with VND prices.

Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-26 15:50:10 +00:00
Cursor Agent
9bfab575c6 docs: add Blazor POS page patterns note to AGENTS.md
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-26 15:49:41 +00:00
Cursor Agent
a2b5de5b18 feat(spa): add 12 Blazor Razor files for Spa/Beauty POS vertical
Add new Spa POS vertical with appointment-based beauty/spa services:

Main POS screens (3 device variants):
- SpaDesktop.razor: Desktop 2-panel layout with service categories/grid + appointment panel
- SpaTablet.razor: Tablet touch-friendly layout with 340px appointment sidebar
- SpaMobile.razor: Mobile single-column with floating appointment button + bottom sheet

Workflow screens (9 files):
- CustomerLookup.razor: Search by phone/name with VIP tier display
- CustomerProfile.razor: Full profile with tier progress, visit history, rewards
- AppointmentBook.razor: Date picker, time slots grid (9:00-20:00), staff selection
- ServicePackage.razor: Package list with expandable details and savings
- ServiceCombo.razor: Active combos/promotions with flash sale timer
- StaffAssign.razor: Staff list with ratings, skills, availability status
- TherapistSchedule.razor: Calendar day view with horizontal timeline
- TreatmentTimer.razor: Circular countdown timer with extend/complete actions
- SpaJourney.razor: 5-step journey tracker (Check-in → Dịch vụ → Thực hiện → Thanh toán → Hoàn tất)

All files follow existing Cafe/Karaoke patterns:
- @layout PosLayout, @inherits PosBase
- Bilingual EN/VI comments, section separators
- CSS variables, Lucide icons, FormatPrice/NavigateTo helpers
- Vietnamese UI labels, VND prices, demo data

Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-26 15:48:43 +00:00
Cursor Agent
706cb07e98 docs: update AGENTS.md with Blazor TPOS cloud-specific instructions
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-26 15:46:36 +00:00
Cursor Agent
088869f256 feat: add 11 Blazor Razor payment workflow screens
Create shared payment workflow pages in Pages/Pos/Shared/Payment/:
- MethodSelect.razor: payment method selection (Cash, Card, QR, Gift Card)
- CashPayment.razor: cash payment with quick amounts and change calc
- CardPayment.razor: card reader status with tap/swipe/insert
- QrPayment.razor: QR code display with VietQR/MoMo/ZaloPay tabs
- BankTransfer.razor: bank transfer with account info and reference
- GiftCardPayment.razor: gift card code input and balance lookup
- PartialPayment.razor: split payment across multiple methods
- TipEntry.razor: quick tip buttons and custom tip entry
- PaymentPending.razor: payment processing animation
- PaymentSuccess.razor: success confirmation with print/new order
- Receipt.razor: 80mm thermal receipt template

All files follow POS patterns: @layout PosLayout, @inherits PosBase,
bilingual EN/VI comments, CSS variables, demo data with VND currency.

Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-26 15:45:18 +00:00
Cursor Agent
a2abc08011 chore: add AGENTS.md with Cursor Cloud development instructions
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-26 14:59:01 +00:00
Velik
e3954ed708 Merge pull request #1 from hongochai10/cursor/agentskills-d-n-ho-n-thi-n-a69a
AgentSkills dự án hoàn thiện
2026-02-24 02:30:33 +07:00
Cursor Agent
fbb023946a ci: run web auth and settings e2e in web pipeline
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 13:16:07 +00:00
Cursor Agent
d808f1d4e1 test: add app-level smoke baselines and mobile CI test jobs
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 13:15:02 +00:00
Cursor Agent
969aa81ea2 test: add settings e2e baseline for profile and api keys
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 13:08:45 +00:00
Cursor Agent
8f557bd106 test: replace booking sample suites with appointment coverage
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 13:04:13 +00:00
Cursor Agent
0adcaadae3 test: replace sample suites in mkt and commerce services
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 13:02:38 +00:00
Cursor Agent
d1cfef93cf test: replace mission and commerce sample functional suites
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 12:56:57 +00:00
Cursor Agent
d288320cf3 test: replace ads sample functional tests with endpoint coverage
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 12:53:11 +00:00
Cursor Agent
0d35f144ab test: replace whatsapp sample suites with account and webhook coverage
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 12:51:17 +00:00
Cursor Agent
c5688ee20d test: add web-client API service unit coverage
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 12:49:07 +00:00
Cursor Agent
0f828dafb0 test: replace sample tests with service-specific order and ads suites
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 12:47:21 +00:00
Cursor Agent
9e5b1018b4 feat: implement admin order stats export and mining overview
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 12:42:55 +00:00
Cursor Agent
d68a47f93a feat: complete ads billing command and credit workflows
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 12:38:59 +00:00
Cursor Agent
1e131adbf3 feat: implement ads serving statistics and event pipeline
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 12:35:08 +00:00
Cursor Agent
6baca17249 feat: secure whatsapp token handling and keyword trigger parsing
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 12:27:39 +00:00
Cursor Agent
68627dc011 ci: align workflows with current monorepo structure
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 12:20:33 +00:00
Cursor Agent
547902b407 chore: remove hardcoded local deployment secrets
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 12:11:58 +00:00
Cursor Agent
22dcc97ba9 feat: implement Aliyun multipart storage operations
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 11:50:40 +00:00
Cursor Agent
f4f5d9d576 fix: enforce booking admin auth and clean membership TODO
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 11:46:23 +00:00
Cursor Agent
a414d7d528 feat: implement IAM OTP dispatch abstractions
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 11:43:30 +00:00
Cursor Agent
82421efea7 feat: wire settings API keys to real profile attributes
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 11:39:37 +00:00
Cursor Agent
549eb714c1 feat: restore profile settings API integration
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 11:35:54 +00:00
Cursor Agent
7c616d412d fix: stabilize web workspace quality gates
Co-authored-by: Velik <hongochai10@users.noreply.github.com>
2026-02-23 11:25:27 +00:00
Ho Ngoc Hai
e387323871 docs: remove unused ads markdown file 2026-02-13 00:00:22 +07:00
Ho Ngoc Hai
f5123f3871 feat: Implement mobile search functionality and a sidebar close button, along with responsive styling adjustments for mobile layouts. 2026-02-12 23:59:09 +07:00
Ho Ngoc Hai
d4f0e1ca03 feat: Enhance marketing page responsiveness by introducing new CSS classes, a mobile bar, and adapting layouts for chatbot, CRM, and AI chatbot on smaller screens. 2026-02-12 23:44:39 +07:00
Ho Ngoc Hai
e3915aee9e feat: Implement mobile responsiveness for marketing pages with adaptive layouts and a sidebar toggle. 2026-02-12 22:37:10 +07:00
Ho Ngoc Hai
ba57eb7e03 feat: Introduce new marketing module with dedicated layout, styling, and pages for AI content, live chat, and analytics. 2026-02-12 22:28:39 +07:00
Ho Ngoc Hai
d1f8dc0782 chore: remove tMarketing design pages including livechat, social hub, AI chatbot, AI content studio, analytics, chatbot automation, and customer CRM. 2026-02-12 17:25:43 +07:00
Ho Ngoc Hai
7bceff5aeb feat: Add new desktop and mobile UI designs for tMarketing pages and their generation prompts. 2026-02-12 17:16:38 +07:00
Ho Ngoc Hai
abb340ea22 style: Update font family from JetBrains Mono to Roboto across tMarketing pages. 2026-02-12 16:36:17 +07:00
Ho Ngoc Hai
38bfe14e73 refactor: relocate system admin pages and apply minor UI adjustments across various application pages. 2026-02-12 16:25:52 +07:00
Ho Ngoc Hai
bb64486c18 feat: Add initial set of admin and POS UI pages for TPOS application, including various workflows and an update to admin styling. 2026-02-12 15:25:09 +07:00
Ho Ngoc Hai
e519435018 feat: Implement initial POS layout and base components, along with admin base components and agent prompts for admin modules. 2026-02-12 09:58:01 +07:00
Ho Ngoc Hai
65ced2c512 feat: Implement localization for authentication pages and introduce AuthBase for shared logic. 2026-02-12 09:40:54 +07:00
Ho Ngoc Hai
db53e1abae feat: Implement comprehensive authentication UI including login, registration, password reset, OTP verification, and supporting components. 2026-02-12 09:17:47 +07:00
Ho Ngoc Hai
f678a1a69a feat: Restructure authentication UI to dedicated tPOS pages and update client assets and configurations. 2026-02-12 01:27:12 +07:00
Ho Ngoc Hai
78f4a296be Update UI Design 2026-02-12 01:08:22 +07:00
Ho Ngoc Hai
347f8c1df9 feat: update UI design with Roboto font, Lucide icons, and revised marketing content. 2026-02-12 00:57:36 +07:00