adserver-dashboard 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.ci/staging.yml +191 -0
- package/.dockerignore +117 -0
- package/.env +40 -0
- package/.env.staging +38 -0
- package/.gitlab-ci.yml +16 -0
- package/DEMO_STATUS.md +579 -0
- package/Dockerfile +61 -0
- package/Influence-MW-AdServer-12-02-2026/client/index.html +17 -0
- package/Influence-MW-AdServer-12-02-2026/client/public/favicon.png +0 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/App.tsx +91 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/advanced-map-drawer.tsx +1131 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ai-recommendation-panel.tsx +379 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/app-sidebar.tsx +183 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/auto-optimize-button.tsx +184 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/availability-drawer.tsx +385 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/brand-insights-panel.tsx +87 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/create-agency-drawer.tsx +198 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/create-brand-drawer.tsx +275 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/creative-assignment.tsx +526 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/data-table-toolbar.tsx +148 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/data-table.tsx +158 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/filter-drawer.tsx +356 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/form-insights-panel.tsx +82 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/geography-selector.tsx +699 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/header-user-menu.tsx +178 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/history-drawer.tsx +313 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/inventory-availability-section.tsx +176 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/inventory-format-drawer.tsx +173 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/inventory-selector.tsx +401 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/manual-inventory-drawer.tsx +368 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/mapbox-map.tsx +368 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/market-insights-panel.tsx +202 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/media-owner-drawer.tsx +217 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/metric-card.tsx +58 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/page-header.tsx +27 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/player-status-indicator.tsx +137 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/poi-targeting-drawer.tsx +298 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/recommendation-score-badge.tsx +102 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/recommended-inventories-panel.tsx +248 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/searchable-combobox.tsx +134 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/signal-visualizations.tsx +407 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/status-badge.tsx +35 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/theme-provider.tsx +73 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/theme-toggle.tsx +37 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/traffic-slider.tsx +75 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/accordion.tsx +56 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/alert-dialog.tsx +139 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/alert.tsx +59 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/aspect-ratio.tsx +5 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/avatar.tsx +51 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/badge.tsx +38 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/breadcrumb.tsx +115 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/button.tsx +62 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/calendar.tsx +68 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/card.tsx +85 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/carousel.tsx +260 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/chart.tsx +365 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/checkbox.tsx +28 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/collapsible.tsx +11 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/command.tsx +151 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/context-menu.tsx +198 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/dialog.tsx +122 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/drawer.tsx +118 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/dropdown-menu.tsx +198 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/form.tsx +178 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/hover-card.tsx +29 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/input-otp.tsx +69 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/input.tsx +23 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/label.tsx +24 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/menubar.tsx +256 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/navigation-menu.tsx +128 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/pagination.tsx +117 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/popover.tsx +29 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/progress.tsx +28 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/radio-group.tsx +42 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/resizable.tsx +45 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/scroll-area.tsx +46 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/select.tsx +160 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/separator.tsx +29 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/sheet.tsx +140 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/sidebar.tsx +727 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/skeleton.tsx +15 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/slider.tsx +26 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/switch.tsx +27 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/table.tsx +117 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/tabs.tsx +53 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/textarea.tsx +22 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/toast.tsx +127 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/toaster.tsx +33 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/toggle-group.tsx +61 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/toggle.tsx +43 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/ui/tooltip.tsx +30 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/vendor-stores-modal.tsx +336 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/venue-type-drawer.tsx +359 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/components/venue-type-selector.tsx +436 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/hooks/use-mobile.tsx +19 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/hooks/use-toast.ts +191 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/index.css +244 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/lib/queryClient.ts +57 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/lib/utils.ts +39 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/lib/venue-taxonomy.ts +532 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/main.tsx +5 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/assign-creative.tsx +781 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/content-hub.tsx +995 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/custom-pois.tsx +431 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/dashboard.tsx +620 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/deal-detail.tsx +1062 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/deal-form.tsx +1570 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/deals.tsx +716 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/edit-creative-assignment.tsx +1051 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/geotargeting.tsx +675 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/integrations.tsx +425 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/line-item-creatives.tsx +622 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/line-item-form.tsx +3132 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/line-items.tsx +530 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/not-found.tsx +21 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/proof-of-play-upload.tsx +479 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/proof-of-play.tsx +880 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/reports.tsx +235 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/settings.tsx +652 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/signal-form.tsx +1117 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/signals.tsx +366 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/tags.tsx +332 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/pages/venues.tsx +381 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/types/mapbox-gl-draw.d.ts +37 -0
- package/Influence-MW-AdServer-12-02-2026/client/src/types/react-simple-maps.d.ts +57 -0
- package/Influence-MW-AdServer-12-02-2026/components.json +20 -0
- package/Influence-MW-AdServer-12-02-2026/docs/PRD.md +3373 -0
- package/Influence-MW-AdServer-12-02-2026/docs/influence-feature-mapping.csv +498 -0
- package/Influence-MW-AdServer-12-02-2026/drizzle.config.ts +14 -0
- package/Influence-MW-AdServer-12-02-2026/package-lock.json +9672 -0
- package/Influence-MW-AdServer-12-02-2026/package.json +118 -0
- package/Influence-MW-AdServer-12-02-2026/postcss.config.js +6 -0
- package/Influence-MW-AdServer-12-02-2026/replit.md +91 -0
- package/Influence-MW-AdServer-12-02-2026/script/build.ts +67 -0
- package/Influence-MW-AdServer-12-02-2026/scripts/create-miro-diagrams.cjs +318 -0
- package/Influence-MW-AdServer-12-02-2026/scripts/create-remaining-diagrams.cjs +270 -0
- package/Influence-MW-AdServer-12-02-2026/server/index.ts +103 -0
- package/Influence-MW-AdServer-12-02-2026/server/recommendation-service.ts +319 -0
- package/Influence-MW-AdServer-12-02-2026/server/routes.ts +1890 -0
- package/Influence-MW-AdServer-12-02-2026/server/static.ts +19 -0
- package/Influence-MW-AdServer-12-02-2026/server/storage.ts +2058 -0
- package/Influence-MW-AdServer-12-02-2026/server/vite.ts +58 -0
- package/Influence-MW-AdServer-12-02-2026/shared/schema.ts +1595 -0
- package/Influence-MW-AdServer-12-02-2026/tailwind.config.ts +107 -0
- package/Influence-MW-AdServer-12-02-2026/tsconfig.json +23 -0
- package/Influence-MW-AdServer-12-02-2026/vite.config.ts +40 -0
- package/LINE_ITEM_BUDGET_FIELD_MAPPING.md +178 -0
- package/PCM/.env.example +92 -0
- package/PCM/README.md +558 -0
- package/PCM/docs/TEST_CASES.md +422 -0
- package/PCM/index.js +106 -0
- package/PCM/package-lock.json +3282 -0
- package/PCM/package.json +32 -0
- package/PCM/replit.md +64 -0
- package/PCM/schema.sql +495 -0
- package/PCM/scripts/export-schema.js +183 -0
- package/PCM/scripts/seed-comprehensive.js +631 -0
- package/PCM/scripts/seed-production.js +477 -0
- package/PCM/src/config/db.js +56 -0
- package/PCM/src/config/swagger.js +5975 -0
- package/PCM/src/dto/EmailRequestDTO.js +166 -0
- package/PCM/src/middleware/errorHandler.js +52 -0
- package/PCM/src/middleware/logger.js +26 -0
- package/PCM/src/migrations/001_add_campaign_mode_fields.sql +36 -0
- package/PCM/src/migrations/002_create_deal_id_counters.sql +22 -0
- package/PCM/src/migrations/003_update_publishers_column.sql +15 -0
- package/PCM/src/migrations/004_add_direct_dealtype_and_advertiser.sql +5 -0
- package/PCM/src/migrations/005_add_programmatic_fields_and_update_enums.sql +31 -0
- package/PCM/src/migrations/006_add_line_item_programmatic_fields.sql +12 -0
- package/PCM/src/migrations/007_add_line_item_direct_fields.sql +15 -0
- package/PCM/src/migrations/008_add_inventory_fields.sql +45 -0
- package/PCM/src/migrations/009_move_inventory_fields_to_metadata.sql +32 -0
- package/PCM/src/migrations/010_add_draft_status_and_line_items_count.sql +23 -0
- package/PCM/src/migrations/011_add_planning_field.sql +21 -0
- package/PCM/src/migrations/012_fix_inventory_composite_pk.sql +17 -0
- package/PCM/src/migrations/013_make_external_id_optional.sql +3 -0
- package/PCM/src/migrations/014_create_change_history.sql +38 -0
- package/PCM/src/migrations/016_create_publisher_insertion_orders.sql +33 -0
- package/PCM/src/migrations/017_fix_line_item_id_fk_reference.sql +86 -0
- package/PCM/src/migrations/018_create_approval_tables.sql +44 -0
- package/PCM/src/migrations/019_add_encrypted_token_column.sql +2 -0
- package/PCM/src/migrations/020_add_rejection_reason_to_deals.sql +10 -0
- package/PCM/src/migrations/021_add_publisher_external_id_to_inventories.sql +12 -0
- package/PCM/src/migrations/022_add_line_item_extended_fields.sql +24 -0
- package/PCM/src/migrations/023_add_base_price_fields.sql +8 -0
- package/PCM/src/migrations/run-migrations.js +46 -0
- package/PCM/src/models/ApprovalOTP.js +51 -0
- package/PCM/src/models/ApprovalToken.js +79 -0
- package/PCM/src/models/ChangeHistory.js +107 -0
- package/PCM/src/models/Deal.js +186 -0
- package/PCM/src/models/DealIdCounter.js +28 -0
- package/PCM/src/models/LineItem.js +227 -0
- package/PCM/src/models/LineItemCreative.js +89 -0
- package/PCM/src/models/LineItemInventory.js +115 -0
- package/PCM/src/models/PublisherInsertionOrder.js +93 -0
- package/PCM/src/models/TransactionHistory.js +34 -0
- package/PCM/src/models/associations.js +81 -0
- package/PCM/src/routes/approval.js +321 -0
- package/PCM/src/routes/creatives.js +437 -0
- package/PCM/src/routes/deals.js +1638 -0
- package/PCM/src/routes/digitalSignage.js +242 -0
- package/PCM/src/routes/insertionOrders.js +380 -0
- package/PCM/src/routes/lineItems.js +926 -0
- package/PCM/src/routes/system.js +384 -0
- package/PCM/src/services/ApprovalService.js +885 -0
- package/PCM/src/services/CampaignImportConverter.js +631 -0
- package/PCM/src/services/CampaignModeService.js +273 -0
- package/PCM/src/services/CampaignStatusService.js +395 -0
- package/PCM/src/services/ChangeHistoryService.js +316 -0
- package/PCM/src/services/DealIdService.js +94 -0
- package/PCM/src/services/DealResponseFormatter.js +90 -0
- package/PCM/src/services/EmailNotificationService.js +315 -0
- package/PCM/src/services/LineItemResponseFormatter.js +122 -0
- package/PCM/src/services/LineItemStatusService.js +380 -0
- package/PCM/src/tests/comprehensiveTestRunner.js +360 -0
- package/PCM/src/tests/comprehensiveTests.js +1277 -0
- package/PCM/src/tests/dealTypeUnitTests.js +1058 -0
- package/PCM/src/tests/testRunner.js +248 -0
- package/PCM/src/utils/caseConverter.js +92 -0
- package/PCM/src/utils/dealCalculations.js +206 -0
- package/PCM/src/utils/lineItemPayloadNormalizer.js +41 -0
- package/PCM/src/utils/payloadNormalizer.js +34 -0
- package/PCM/src/utils/sourceNormalizer.js +56 -0
- package/PCM/src/validators/creativeValidator.js +27 -0
- package/PCM/src/validators/dealValidator.js +203 -0
- package/PCM/src/validators/lineItemValidator.js +489 -0
- package/PCM/tests/approval-flows.test.js +238 -0
- package/PCM/tests/approval-workflow.test.js +291 -0
- package/PCM/tests/campaign-import-converter.test.js +543 -0
- package/PCM/tests/campaign-import-e2e.test.js +520 -0
- package/PCM/tests/campaign-status.test.js +539 -0
- package/PCM/tests/direct-publisher-split-reimport.test.js +460 -0
- package/PCM/tests/e2e/digital-signage.test.js +145 -0
- package/PCM/tests/e2e/search-filter-pagination.test.js +399 -0
- package/PCM/tests/e2e-comprehensive.test.js +3446 -0
- package/PCM/tests/edge-cases.test.js +340 -0
- package/PCM/tests/line-item-status.test.js +340 -0
- package/PCM/tests/seller-account-external-ids.test.js +877 -0
- package/PCM/tests/source-validation.test.js +324 -0
- package/PRD.md +3373 -0
- package/README.md +186 -0
- package/client/index.html +35 -0
- package/client/public/DEMO_STATUS.md +579 -0
- package/client/public/img/MW-logo-trans_1754045676555.png +0 -0
- package/client/public/locales/ar/approval.json +144 -0
- package/client/public/locales/ar/buyer.json +61 -0
- package/client/public/locales/ar/campaigns.json +1 -0
- package/client/public/locales/ar/common.json +218 -0
- package/client/public/locales/ar/contentHub.json +266 -0
- package/client/public/locales/ar/creatives.json +79 -0
- package/client/public/locales/ar/dashboard.json +57 -0
- package/client/public/locales/ar/deals.json +886 -0
- package/client/public/locales/ar/dsp.json +131 -0
- package/client/public/locales/ar/inventory.json +201 -0
- package/client/public/locales/ar/lineItems.json +553 -0
- package/client/public/locales/ar/navigation.json +48 -0
- package/client/public/locales/ar/wizard.json +1 -0
- package/client/public/locales/en/approval.json +144 -0
- package/client/public/locales/en/buyer.json +65 -0
- package/client/public/locales/en/campaigns.json +1 -0
- package/client/public/locales/en/common.json +218 -0
- package/client/public/locales/en/contentHub.json +266 -0
- package/client/public/locales/en/creatives.json +79 -0
- package/client/public/locales/en/dashboard.json +57 -0
- package/client/public/locales/en/deals.json +886 -0
- package/client/public/locales/en/dsp.json +131 -0
- package/client/public/locales/en/inventory.json +201 -0
- package/client/public/locales/en/lineItems.json +659 -0
- package/client/public/locales/en/navigation.json +48 -0
- package/client/public/locales/en/wizard.json +1 -0
- package/client/public/locales/ja/approval.json +144 -0
- package/client/public/locales/ja/buyer.json +61 -0
- package/client/public/locales/ja/campaigns.json +1 -0
- package/client/public/locales/ja/common.json +218 -0
- package/client/public/locales/ja/contentHub.json +266 -0
- package/client/public/locales/ja/creatives.json +79 -0
- package/client/public/locales/ja/dashboard.json +57 -0
- package/client/public/locales/ja/deals.json +886 -0
- package/client/public/locales/ja/dsp.json +131 -0
- package/client/public/locales/ja/inventory.json +201 -0
- package/client/public/locales/ja/lineItems.json +553 -0
- package/client/public/locales/ja/navigation.json +48 -0
- package/client/public/locales/ja/wizard.json +1 -0
- package/client/public/locales/zh/approval.json +144 -0
- package/client/public/locales/zh/buyer.json +61 -0
- package/client/public/locales/zh/campaigns.json +1 -0
- package/client/public/locales/zh/common.json +218 -0
- package/client/public/locales/zh/contentHub.json +266 -0
- package/client/public/locales/zh/creatives.json +79 -0
- package/client/public/locales/zh/dashboard.json +57 -0
- package/client/public/locales/zh/deals.json +886 -0
- package/client/public/locales/zh/dsp.json +131 -0
- package/client/public/locales/zh/inventory.json +201 -0
- package/client/public/locales/zh/lineItems.json +553 -0
- package/client/public/locales/zh/navigation.json +48 -0
- package/client/public/locales/zh/wizard.json +1 -0
- package/client/public/manifest.json +36 -0
- package/client/src/App.tsx +464 -0
- package/client/src/components/app-sidebar.tsx +312 -0
- package/client/src/components/approval/approval-decision-form.test.tsx +294 -0
- package/client/src/components/approval/approval-decision-form.tsx +326 -0
- package/client/src/components/approval/approval-sheet.tsx +631 -0
- package/client/src/components/approval/line-item-details-sheet.tsx +371 -0
- package/client/src/components/approval/otp-verification.test.tsx +337 -0
- package/client/src/components/approval/otp-verification.tsx +180 -0
- package/client/src/components/content-hub/bulk-transcode-dialog.tsx +379 -0
- package/client/src/components/content-hub/content-hub-manager-v2.tsx +574 -0
- package/client/src/components/content-hub/content-hub-manager.tsx +330 -0
- package/client/src/components/content-hub/creative-card.tsx +456 -0
- package/client/src/components/content-hub/creative-detail-sheet.tsx +685 -0
- package/client/src/components/content-hub/creative-filters.tsx +457 -0
- package/client/src/components/content-hub/creative-grid.tsx +329 -0
- package/client/src/components/content-hub/creative-selector.tsx +415 -0
- package/client/src/components/content-hub/creative-upload.tsx +547 -0
- package/client/src/components/content-hub/folder-dialogs.tsx +445 -0
- package/client/src/components/content-hub/folder-list.tsx +280 -0
- package/client/src/components/content-hub/review-dialogs.tsx +268 -0
- package/client/src/components/content-hub/transcode-dialog.tsx +226 -0
- package/client/src/components/creative-library/creative-details-view.tsx +446 -0
- package/client/src/components/creative-library/creative-filters-panel.tsx +203 -0
- package/client/src/components/creative-library/creative-list.tsx +360 -0
- package/client/src/components/creative-library/creative-status-badge.tsx +71 -0
- package/client/src/components/creative-library/folder-card.tsx +78 -0
- package/client/src/components/creative-library/index.ts +27 -0
- package/client/src/components/creative-library/new-creative-card.tsx +211 -0
- package/client/src/components/creative-library/upload-creative-dialog.tsx +261 -0
- package/client/src/components/dashboard-overview.tsx +109 -0
- package/client/src/components/deals/approval-history-panel.test.tsx +240 -0
- package/client/src/components/deals/approval-history-panel.tsx +156 -0
- package/client/src/components/deals/deal-status-badge.tsx +92 -0
- package/client/src/components/deals/import-from-planner-dialog.tsx +399 -0
- package/client/src/components/deals/market-insights-panel.tsx +237 -0
- package/client/src/components/deals/reopen-deal-sheet.tsx +191 -0
- package/client/src/components/deals/request-approval-sheet.test.tsx +323 -0
- package/client/src/components/deals/request-approval-sheet.tsx +136 -0
- package/client/src/components/deals/resend-approval-sheet.tsx +201 -0
- package/client/src/components/direct-campaigns/campaign-card.tsx +283 -0
- package/client/src/components/direct-campaigns/deal-filter-panel.tsx +325 -0
- package/client/src/components/inventory/advanced-filters-panel.tsx +273 -0
- package/client/src/components/inventory/csv-upload-modal.tsx +639 -0
- package/client/src/components/inventory/inventory-availability-view.tsx +486 -0
- package/client/src/components/inventory/inventory-details-sheet.tsx +376 -0
- package/client/src/components/inventory/inventory-map-view.tsx +596 -0
- package/client/src/components/inventory/inventory-settings-menu.tsx +52 -0
- package/client/src/components/language-switcher.tsx +53 -0
- package/client/src/components/line-items/campaign-forecast-panel.tsx +138 -0
- package/client/src/components/line-items/form-insights.tsx +89 -0
- package/client/src/components/line-items/geofencing/LocationCsvUploadDrawer.tsx +100 -0
- package/client/src/components/line-items/geofencing/POIDropdown.tsx +379 -0
- package/client/src/components/line-items/geofencing/SelectedLocationsSidebar.tsx +436 -0
- package/client/src/components/line-items/geofencing/ViewFileLocationDrawer.tsx +199 -0
- package/client/src/components/line-items/geofencing/components/ExistingFilesTab.tsx +268 -0
- package/client/src/components/line-items/geofencing/components/TemplateDownloadSection.tsx +59 -0
- package/client/src/components/line-items/geofencing/components/UploadTab.tsx +215 -0
- package/client/src/components/line-items/geofencing-map.tsx +1270 -0
- package/client/src/components/line-items/inventory-availability-section.tsx +178 -0
- package/client/src/components/line-items/line-item-schedule-manager.tsx +313 -0
- package/client/src/components/line-items/manual-inventory-drawer.tsx +346 -0
- package/client/src/components/line-items/planner-inventory-card.tsx +495 -0
- package/client/src/components/line-items/planner-schedule-grid.tsx +495 -0
- package/client/src/components/line-items/schedule-rule-editor.tsx +649 -0
- package/client/src/components/line-items/schedule-rule-types.ts +122 -0
- package/client/src/components/line-items/steps/creatives-step.tsx +681 -0
- package/client/src/components/line-items/steps/inventory-schedule-step.tsx +1596 -0
- package/client/src/components/line-items/steps/inventory-step.tsx +1533 -0
- package/client/src/components/line-items/steps/line-item-details-step.tsx +916 -0
- package/client/src/components/line-items/steps/schedule-step.tsx +273 -0
- package/client/src/components/line-items/steps/summary-step.tsx +680 -0
- package/client/src/components/line-items/steps/targeting-step.tsx +1708 -0
- package/client/src/components/product-switcher.tsx +105 -0
- package/client/src/components/protected-route.tsx +49 -0
- package/client/src/components/skip-link.tsx +22 -0
- package/client/src/components/stat-card.tsx +53 -0
- package/client/src/components/status-badge.tsx +96 -0
- package/client/src/components/ui/hierarchical-venue-selector.tsx +389 -0
- package/client/src/components/ui/toaster.tsx +111 -0
- package/client/src/contexts/auth-context.tsx +181 -0
- package/client/src/contexts/sidebar-state.tsx +50 -0
- package/client/src/contexts/theme-context.tsx +66 -0
- package/client/src/data/campaign-data.json +107 -0
- package/client/src/data/countries.json +22 -0
- package/client/src/hooks/use-approval.ts +366 -0
- package/client/src/hooks/use-keyboard-shortcuts.ts +74 -0
- package/client/src/hooks/use-media-query.ts +46 -0
- package/client/src/hooks/use-mobile.tsx +19 -0
- package/client/src/hooks/use-page-title.ts +21 -0
- package/client/src/hooks/use-toast.ts +195 -0
- package/client/src/index.css +694 -0
- package/client/src/lib/__tests__/accessibility.test.ts +104 -0
- package/client/src/lib/__tests__/date-utils.test.ts +199 -0
- package/client/src/lib/__tests__/dsp-buyer-api.test.ts +127 -0
- package/client/src/lib/__tests__/dsp-buyer-integration.test.ts +247 -0
- package/client/src/lib/__tests__/storage-utils.test.ts +167 -0
- package/client/src/lib/__tests__/utils.test.ts +57 -0
- package/client/src/lib/accessibility.ts +141 -0
- package/client/src/lib/api-config.ts +9 -0
- package/client/src/lib/auth-service.ts +209 -0
- package/client/src/lib/campaign-creative-api.ts +82 -0
- package/client/src/lib/company-api.ts +61 -0
- package/client/src/lib/content-hub-api.ts +407 -0
- package/client/src/lib/creative-mapper.ts +61 -0
- package/client/src/lib/date-utils.ts +119 -0
- package/client/src/lib/deal-helpers.ts +220 -0
- package/client/src/lib/dsp-buyer-api.ts +196 -0
- package/client/src/lib/geo-import-api.ts +151 -0
- package/client/src/lib/google-poi-api.ts +305 -0
- package/client/src/lib/i18n/__tests__/formatting.test.ts +202 -0
- package/client/src/lib/i18n/formatting.ts +130 -0
- package/client/src/lib/i18n/index.ts +8 -0
- package/client/src/lib/i18n-compat.ts +76 -0
- package/client/src/lib/influence-deals-api.ts +896 -0
- package/client/src/lib/inventory-api.ts +399 -0
- package/client/src/lib/oauth-service.ts +678 -0
- package/client/src/lib/poi-types.ts +75 -0
- package/client/src/lib/queryClient.ts +144 -0
- package/client/src/lib/recommendation-api.ts +380 -0
- package/client/src/lib/storage-utils.ts +104 -0
- package/client/src/lib/tolgee.ts +85 -0
- package/client/src/lib/utils.ts +0 -0
- package/client/src/main.tsx +67 -0
- package/client/src/mapbox-draw-modes.d.ts +32 -0
- package/client/src/pages/all-folders.tsx +203 -0
- package/client/src/pages/auth-callback.tsx +115 -0
- package/client/src/pages/buyer-form.tsx +339 -0
- package/client/src/pages/buyer-list.tsx +622 -0
- package/client/src/pages/content-hub.tsx +1358 -0
- package/client/src/pages/create-deal.tsx +2093 -0
- package/client/src/pages/creative-assignment-page.tsx +548 -0
- package/client/src/pages/creatives.tsx +5 -0
- package/client/src/pages/custom-pois.tsx +425 -0
- package/client/src/pages/dashboard.tsx +615 -0
- package/client/src/pages/deal-history.tsx +434 -0
- package/client/src/pages/deal-line-items.tsx +1703 -0
- package/client/src/pages/demo-status.tsx +113 -0
- package/client/src/pages/direct-campaign-details.tsx +361 -0
- package/client/src/pages/direct-campaigns-new.tsx +824 -0
- package/client/src/pages/dsp-form.tsx +803 -0
- package/client/src/pages/dsp-list.tsx +239 -0
- package/client/src/pages/folder-content.tsx +336 -0
- package/client/src/pages/integrations.tsx +429 -0
- package/client/src/pages/line-item-creatives.tsx +789 -0
- package/client/src/pages/line-item-detail-page.tsx +684 -0
- package/client/src/pages/line-item-form-page.tsx +3261 -0
- package/client/src/pages/line-item-wizard.tsx +1207 -0
- package/client/src/pages/login.tsx +154 -0
- package/client/src/pages/not-found.tsx +23 -0
- package/client/src/pages/proof-of-play.tsx +397 -0
- package/client/src/pages/public-approval.tsx +551 -0
- package/client/src/pages/reports.tsx +231 -0
- package/client/src/pages/settings.tsx +760 -0
- package/client/src/pages/signals.tsx +389 -0
- package/client/src/pages/tags.tsx +318 -0
- package/client/src/pages/test-results.tsx +328 -0
- package/client/src/store/hooks.ts +5 -0
- package/client/src/store/index.ts +15 -0
- package/client/src/store/mapMarkerLocationsSlice.ts +241 -0
- package/client/src/styles/design-tokens.css +324 -0
- package/client/src/test/setup.ts +261 -0
- package/client/src/test/test-utils.tsx +40 -0
- package/client/src/types/approval.ts +221 -0
- package/client/src/types/content-hub.ts +209 -0
- package/client/src/types/geofencing.ts +67 -0
- package/client/src/types/transcoding.ts +140 -0
- package/client/src/vite-env.d.ts +18 -0
- package/components.json +20 -0
- package/creative-api.json +1 -0
- package/docs/AI_REFERENCE.md +459 -0
- package/docs/MWDesign-Prompt.md +132 -0
- package/docs/MWDesign-System.md +344 -0
- package/docs/test-plan.md +277 -0
- package/e2e/AUTONOMOUS-TESTING.md +406 -0
- package/e2e/README.md +219 -0
- package/e2e/autonomous-flow.spec.ts +308 -0
- package/e2e/debug-sso.spec.ts +163 -0
- package/e2e/direct-campaigns.spec.ts +219 -0
- package/e2e/explore-sso.spec.ts +149 -0
- package/e2e/fixtures/auth.ts +26 -0
- package/e2e/fixtures/enhanced-test.ts +331 -0
- package/e2e/pagination.spec.ts +280 -0
- package/e2e/view-toggle.spec.ts +312 -0
- package/generated-icon.png +0 -0
- package/i18next-scanner.config.cjs +46 -0
- package/package.json +141 -0
- package/playwright.config.ts +93 -0
- package/postcss.config.js +6 -0
- package/replit.md +196 -0
- package/screenshot-after-login.png +0 -0
- package/screenshot-contenthub-grid.png +0 -0
- package/screenshot-contenthub-list-fixed.png +0 -0
- package/screenshot-contenthub-list.png +0 -0
- package/screenshot-create-deal.png +0 -0
- package/screenshot-dashboard.png +0 -0
- package/screenshot-deals.png +0 -0
- package/screenshot-login-filled.png +0 -0
- package/screenshot-login.png +0 -0
- package/screenshot.mjs +24 -0
- package/scripts/deploy-stg.sh +185 -0
- package/shared/direct-io-schema.ts +383 -0
- package/shared/schema.ts +439 -0
- package/shared/screen-types.ts +149 -0
- package/springdocDefault.json +1 -0
- package/swagger-ui-bundle.js +2 -0
- package/swagger-ui-init.js +10316 -0
- package/tailwind.config.ts +282 -0
- package/terraform/README.md +306 -0
- package/terraform/cloudfront.tf +289 -0
- package/terraform/ecs.tf +727 -0
- package/terraform/environments/dev.tfvars +59 -0
- package/terraform/environments/production.tfvars +60 -0
- package/terraform/main.tf +47 -0
- package/terraform/outputs.tf +145 -0
- package/terraform/s3.tf +192 -0
- package/terraform/variables.tf +226 -0
- package/terraform/waf.tf +165 -0
- package/terraform-frontend/.terraform.lock.hcl +25 -0
- package/terraform-frontend/README.md +85 -0
- package/terraform-frontend/cloudfront.tf +125 -0
- package/terraform-frontend/main.tf +31 -0
- package/terraform-frontend/outputs.tf +24 -0
- package/terraform-frontend/terraform.tfvars +12 -0
- package/terraform-frontend/variables.tf +53 -0
- package/tsconfig.json +23 -0
- package/vite.config.ts +226 -0
- package/vitest.config.ts +56 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Folder, MoreVertical } from 'lucide-react';
|
|
2
|
+
import { Button } from "@moving-walls/design-system";
|
|
3
|
+
import {
|
|
4
|
+
DropdownMenu,
|
|
5
|
+
DropdownMenuTrigger,
|
|
6
|
+
DropdownMenuContent,
|
|
7
|
+
DropdownMenuItem
|
|
8
|
+
} from "@moving-walls/design-system";
|
|
9
|
+
|
|
10
|
+
export interface FolderCardProps {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
fileCount: number;
|
|
14
|
+
size: string;
|
|
15
|
+
onRename?: () => void;
|
|
16
|
+
onDelete?: () => void;
|
|
17
|
+
onClick?: () => void;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function FolderCard({
|
|
21
|
+
name,
|
|
22
|
+
fileCount,
|
|
23
|
+
size,
|
|
24
|
+
onRename,
|
|
25
|
+
onDelete,
|
|
26
|
+
onClick,
|
|
27
|
+
}: FolderCardProps) {
|
|
28
|
+
return (
|
|
29
|
+
<div
|
|
30
|
+
className="bg-white dark:bg-mw-gray-800 border border-mw-gray-200 dark:border-mw-gray-700 rounded-lg shadow-sm hover:shadow-md transition-shadow cursor-pointer px-3 py-2"
|
|
31
|
+
onClick={onClick}
|
|
32
|
+
>
|
|
33
|
+
<div className="flex items-center justify-between">
|
|
34
|
+
<div className="flex items-center gap-2 flex-1 min-w-0">
|
|
35
|
+
<div className="flex-shrink-0">
|
|
36
|
+
<Folder className="w-6 h-6 text-blue-500" />
|
|
37
|
+
</div>
|
|
38
|
+
<div className="flex-1 min-w-0">
|
|
39
|
+
<h4 className="font-medium text-sm text-mw-gray-900 dark:text-white truncate">
|
|
40
|
+
{name}
|
|
41
|
+
</h4>
|
|
42
|
+
<p className="text-xs text-mw-gray-500 dark:text-mw-gray-400">
|
|
43
|
+
{fileCount} Files | {size}
|
|
44
|
+
</p>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<DropdownMenu>
|
|
49
|
+
<DropdownMenuTrigger asChild>
|
|
50
|
+
<Button
|
|
51
|
+
variant="ghost"
|
|
52
|
+
size="sm"
|
|
53
|
+
className="flex-shrink-0 p-1 h-8 w-8"
|
|
54
|
+
onClick={(e) => e.stopPropagation()}
|
|
55
|
+
>
|
|
56
|
+
<MoreVertical className="w-5 h-5 text-mw-gray-500" />
|
|
57
|
+
</Button>
|
|
58
|
+
</DropdownMenuTrigger>
|
|
59
|
+
<DropdownMenuContent align="end">
|
|
60
|
+
{onRename && (
|
|
61
|
+
<DropdownMenuItem onClick={(e) => { e.stopPropagation(); onRename(); }}>
|
|
62
|
+
Rename
|
|
63
|
+
</DropdownMenuItem>
|
|
64
|
+
)}
|
|
65
|
+
{onDelete && (
|
|
66
|
+
<DropdownMenuItem
|
|
67
|
+
onClick={(e) => { e.stopPropagation(); onDelete(); }}
|
|
68
|
+
className="text-red-600 dark:text-red-400"
|
|
69
|
+
>
|
|
70
|
+
Delete
|
|
71
|
+
</DropdownMenuItem>
|
|
72
|
+
)}
|
|
73
|
+
</DropdownMenuContent>
|
|
74
|
+
</DropdownMenu>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Export all creative library components for reusability across products
|
|
2
|
+
export { FolderCard } from "./folder-card";
|
|
3
|
+
export type { FolderCardProps } from "./folder-card";
|
|
4
|
+
|
|
5
|
+
export { CreativeStatusBadge } from "./creative-status-badge";
|
|
6
|
+
export type {
|
|
7
|
+
CreativeStatusType,
|
|
8
|
+
CreativeStatusBadgeProps,
|
|
9
|
+
} from "./creative-status-badge";
|
|
10
|
+
|
|
11
|
+
export { NewCreativeCard } from "./new-creative-card";
|
|
12
|
+
export type { NewCreativeCardProps } from "./new-creative-card";
|
|
13
|
+
|
|
14
|
+
export { CreativeFiltersPanel } from "./creative-filters-panel";
|
|
15
|
+
export type {
|
|
16
|
+
CreativeFilters,
|
|
17
|
+
CreativeFiltersPanelProps,
|
|
18
|
+
} from "./creative-filters-panel";
|
|
19
|
+
|
|
20
|
+
export { UploadCreativeDialog } from "./upload-creative-dialog";
|
|
21
|
+
export type { UploadCreativeDialogProps } from "./upload-creative-dialog";
|
|
22
|
+
|
|
23
|
+
export { CreativeDetailsView } from "./creative-details-view";
|
|
24
|
+
export type {
|
|
25
|
+
CreativeDetails,
|
|
26
|
+
CreativeDetailsViewProps,
|
|
27
|
+
} from "./creative-details-view";
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { useTranslation } from '@/lib/i18n';
|
|
2
|
+
import { MoreVertical, Download, Eye, Image as ImageIcon, Video, FileText, FolderInput, Trash2, FileEdit } from 'lucide-react';
|
|
3
|
+
import { Card, CardContent } from "@moving-walls/design-system";
|
|
4
|
+
import { Button } from "@moving-walls/design-system";
|
|
5
|
+
import { Badge } from "@moving-walls/design-system";
|
|
6
|
+
import {
|
|
7
|
+
DropdownMenu,
|
|
8
|
+
DropdownMenuTrigger,
|
|
9
|
+
DropdownMenuContent,
|
|
10
|
+
DropdownMenuItem,
|
|
11
|
+
DropdownMenuSeparator
|
|
12
|
+
} from "@moving-walls/design-system";
|
|
13
|
+
import { CreativeStatusBadge, type CreativeStatusType } from './creative-status-badge';
|
|
14
|
+
|
|
15
|
+
export interface NewCreativeCardProps {
|
|
16
|
+
id: string;
|
|
17
|
+
filename: string;
|
|
18
|
+
type: 'image' | 'video' | 'document';
|
|
19
|
+
format: string;
|
|
20
|
+
size: string;
|
|
21
|
+
resolution?: string;
|
|
22
|
+
duration?: string;
|
|
23
|
+
thumbnail?: string;
|
|
24
|
+
status: CreativeStatusType;
|
|
25
|
+
tags?: string[];
|
|
26
|
+
uploadedBy: string;
|
|
27
|
+
onPreview?: () => void;
|
|
28
|
+
onDownload?: () => void;
|
|
29
|
+
onDelete?: () => void;
|
|
30
|
+
onMove?: () => void;
|
|
31
|
+
onTranscode?: () => void;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const typeIcons = {
|
|
35
|
+
image: ImageIcon,
|
|
36
|
+
video: Video,
|
|
37
|
+
document: FileText
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export function NewCreativeCard({
|
|
41
|
+
filename,
|
|
42
|
+
type,
|
|
43
|
+
format,
|
|
44
|
+
size,
|
|
45
|
+
resolution,
|
|
46
|
+
duration,
|
|
47
|
+
thumbnail,
|
|
48
|
+
status,
|
|
49
|
+
tags = [],
|
|
50
|
+
uploadedBy,
|
|
51
|
+
onPreview,
|
|
52
|
+
onDownload,
|
|
53
|
+
onDelete,
|
|
54
|
+
onMove,
|
|
55
|
+
onTranscode,
|
|
56
|
+
}: NewCreativeCardProps) {
|
|
57
|
+
const { t } = useTranslation('contentHub');
|
|
58
|
+
const TypeIcon = typeIcons[type];
|
|
59
|
+
|
|
60
|
+
return (
|
|
61
|
+
<Card className="overflow-hidden hover:shadow-md transition-shadow group bg-white dark:bg-mw-neutral-900 border border-mw-neutral-200 dark:border-mw-neutral-700 rounded-xl">
|
|
62
|
+
{/* Thumbnail - larger to match Figma (approx 200px height) */}
|
|
63
|
+
<div className="relative h-[200px] bg-muted overflow-hidden">
|
|
64
|
+
{thumbnail ? (
|
|
65
|
+
<img
|
|
66
|
+
src={thumbnail}
|
|
67
|
+
alt={filename}
|
|
68
|
+
className="w-full h-full object-cover"
|
|
69
|
+
/>
|
|
70
|
+
) : (
|
|
71
|
+
<div className="w-full h-full flex items-center justify-center bg-mw-neutral-100 dark:bg-mw-neutral-800">
|
|
72
|
+
<TypeIcon className="w-20 h-20 text-mw-neutral-400" />
|
|
73
|
+
</div>
|
|
74
|
+
)}
|
|
75
|
+
|
|
76
|
+
{/* Status Badge - positioned top-right */}
|
|
77
|
+
<div className="absolute top-2 right-2">
|
|
78
|
+
<CreativeStatusBadge status={status} />
|
|
79
|
+
</div>
|
|
80
|
+
|
|
81
|
+
{/* Hover Actions */}
|
|
82
|
+
<div className="absolute inset-0 bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-center gap-2">
|
|
83
|
+
{onPreview && (
|
|
84
|
+
<Button
|
|
85
|
+
size="sm"
|
|
86
|
+
variant="secondary"
|
|
87
|
+
onClick={onPreview}
|
|
88
|
+
className="bg-white/90 hover:bg-white"
|
|
89
|
+
>
|
|
90
|
+
<Eye className="w-4 h-4" />
|
|
91
|
+
</Button>
|
|
92
|
+
)}
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
|
|
96
|
+
{/* Content */}
|
|
97
|
+
<CardContent className="p-4 space-y-3">
|
|
98
|
+
{/* Filename & Actions Row */}
|
|
99
|
+
<div className="flex items-center justify-between gap-2">
|
|
100
|
+
<h4 className="font-semibold text-sm text-mw-neutral-900 dark:text-mw-neutral-100 truncate flex-1" title={filename}>
|
|
101
|
+
{filename}
|
|
102
|
+
</h4>
|
|
103
|
+
|
|
104
|
+
<DropdownMenu>
|
|
105
|
+
<DropdownMenuTrigger asChild>
|
|
106
|
+
<Button variant="ghost" size="sm" className="flex-shrink-0 h-7 w-7 p-0 rounded-full hover:bg-mw-neutral-100 dark:hover:bg-mw-neutral-800">
|
|
107
|
+
<MoreVertical className="w-4 h-4" />
|
|
108
|
+
</Button>
|
|
109
|
+
</DropdownMenuTrigger>
|
|
110
|
+
<DropdownMenuContent align="end">
|
|
111
|
+
{onPreview && (
|
|
112
|
+
<DropdownMenuItem onClick={onPreview}>
|
|
113
|
+
<Eye className="w-4 h-4 mr-2" />
|
|
114
|
+
{t('card.view', 'View')}
|
|
115
|
+
</DropdownMenuItem>
|
|
116
|
+
)}
|
|
117
|
+
{onDownload && (
|
|
118
|
+
<DropdownMenuItem onClick={onDownload}>
|
|
119
|
+
<Download className="w-4 h-4 mr-2" />
|
|
120
|
+
{t('card.download', 'Download')}
|
|
121
|
+
</DropdownMenuItem>
|
|
122
|
+
)}
|
|
123
|
+
{onTranscode && (
|
|
124
|
+
<DropdownMenuItem onClick={onTranscode}>
|
|
125
|
+
<FileEdit className="w-4 h-4 mr-2" />
|
|
126
|
+
{t('card.transcode', 'Transcode')}
|
|
127
|
+
</DropdownMenuItem>
|
|
128
|
+
)}
|
|
129
|
+
{onMove && (
|
|
130
|
+
<DropdownMenuItem onClick={onMove}>
|
|
131
|
+
<FolderInput className="w-4 h-4 mr-2" />
|
|
132
|
+
{t('card.moveFile', 'Move File')}
|
|
133
|
+
</DropdownMenuItem>
|
|
134
|
+
)}
|
|
135
|
+
{onDelete && (
|
|
136
|
+
<>
|
|
137
|
+
<DropdownMenuSeparator />
|
|
138
|
+
<DropdownMenuItem
|
|
139
|
+
onClick={onDelete}
|
|
140
|
+
className="text-red-600 dark:text-red-400"
|
|
141
|
+
>
|
|
142
|
+
<Trash2 className="w-4 h-4 mr-2" />
|
|
143
|
+
{t('card.remove', 'Remove')}
|
|
144
|
+
</DropdownMenuItem>
|
|
145
|
+
</>
|
|
146
|
+
)}
|
|
147
|
+
</DropdownMenuContent>
|
|
148
|
+
</DropdownMenu>
|
|
149
|
+
</div>
|
|
150
|
+
|
|
151
|
+
{/* File Type, Size & Duration/Resolution Row - with icon */}
|
|
152
|
+
<div className="flex items-center gap-1.5 text-sm text-mw-neutral-500 dark:text-mw-neutral-400">
|
|
153
|
+
<TypeIcon className="w-4 h-4 flex-shrink-0" />
|
|
154
|
+
<span className="text-mw-neutral-700 dark:text-mw-neutral-300">{format.toUpperCase()}</span>
|
|
155
|
+
<span className="w-1.5 h-1.5 rounded-full bg-mw-neutral-300 dark:bg-mw-neutral-600" />
|
|
156
|
+
<span>{size}</span>
|
|
157
|
+
{(duration || resolution) && (
|
|
158
|
+
<>
|
|
159
|
+
<span className="w-1.5 h-1.5 rounded-full bg-mw-neutral-300 dark:bg-mw-neutral-600" />
|
|
160
|
+
<span>{duration || resolution}</span>
|
|
161
|
+
</>
|
|
162
|
+
)}
|
|
163
|
+
</div>
|
|
164
|
+
|
|
165
|
+
{/* Tags Section */}
|
|
166
|
+
<div className="space-y-1.5">
|
|
167
|
+
<span className="text-sm text-mw-neutral-500 dark:text-mw-neutral-400">{t('card.tags', 'Tags')}</span>
|
|
168
|
+
<div className="flex flex-wrap gap-1.5">
|
|
169
|
+
{tags.length > 0 ? (
|
|
170
|
+
<>
|
|
171
|
+
{tags.slice(0, 3).map((tag, index) => (
|
|
172
|
+
<Badge
|
|
173
|
+
key={index}
|
|
174
|
+
variant="outline"
|
|
175
|
+
className="text-xs px-2.5 py-1 bg-mw-neutral-50 dark:bg-mw-neutral-800 border-mw-neutral-200 dark:border-mw-neutral-700 text-mw-neutral-700 dark:text-mw-neutral-300 rounded-full"
|
|
176
|
+
>
|
|
177
|
+
{tag}
|
|
178
|
+
</Badge>
|
|
179
|
+
))}
|
|
180
|
+
{tags.length > 3 && (
|
|
181
|
+
<Badge
|
|
182
|
+
variant="outline"
|
|
183
|
+
className="text-xs px-2.5 py-1 bg-mw-neutral-50 dark:bg-mw-neutral-800 border-mw-neutral-200 dark:border-mw-neutral-700 text-mw-neutral-700 dark:text-mw-neutral-300 rounded-full"
|
|
184
|
+
>
|
|
185
|
+
+{tags.length - 3}
|
|
186
|
+
</Badge>
|
|
187
|
+
)}
|
|
188
|
+
</>
|
|
189
|
+
) : (
|
|
190
|
+
<span className="text-sm text-mw-neutral-400">--</span>
|
|
191
|
+
)}
|
|
192
|
+
</div>
|
|
193
|
+
</div>
|
|
194
|
+
|
|
195
|
+
{/* Resolution Section */}
|
|
196
|
+
<div className="space-y-1">
|
|
197
|
+
<span className="text-sm text-mw-neutral-500 dark:text-mw-neutral-400">{t('card.resolution', 'Resolution')}</span>
|
|
198
|
+
<p className="text-sm font-medium text-mw-neutral-900 dark:text-mw-neutral-100">
|
|
199
|
+
{resolution || '--'}
|
|
200
|
+
</p>
|
|
201
|
+
</div>
|
|
202
|
+
|
|
203
|
+
{/* Uploaded By Section */}
|
|
204
|
+
<div className="space-y-1">
|
|
205
|
+
<span className="text-sm text-mw-neutral-500 dark:text-mw-neutral-400">{t('card.uploadedBy', 'Uploaded by')}</span>
|
|
206
|
+
<p className="text-sm font-medium text-mw-neutral-900 dark:text-mw-neutral-100">{uploadedBy}</p>
|
|
207
|
+
</div>
|
|
208
|
+
</CardContent>
|
|
209
|
+
</Card>
|
|
210
|
+
);
|
|
211
|
+
}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { X, Upload as UploadIcon, File as FileIcon } from 'lucide-react';
|
|
3
|
+
import { Dialog, DialogContent, DialogHeader, DialogTitle } from "@moving-walls/design-system";
|
|
4
|
+
import { Button } from "@moving-walls/design-system";
|
|
5
|
+
import { SelectRoot } from "@moving-walls/design-system";
|
|
6
|
+
import { Input } from "@moving-walls/design-system";
|
|
7
|
+
import { Badge } from "@moving-walls/design-system";
|
|
8
|
+
import { Progress } from "@moving-walls/design-system";
|
|
9
|
+
|
|
10
|
+
export interface UploadCreativeDialogProps {
|
|
11
|
+
open: boolean;
|
|
12
|
+
onOpenChange: (open: boolean) => void;
|
|
13
|
+
folders?: Array<{ id: string; name: string }>;
|
|
14
|
+
onUpload?: (data: {
|
|
15
|
+
files: File[];
|
|
16
|
+
folderId?: string;
|
|
17
|
+
tags: string[];
|
|
18
|
+
}) => Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function UploadCreativeDialog({
|
|
22
|
+
open,
|
|
23
|
+
onOpenChange,
|
|
24
|
+
folders = [],
|
|
25
|
+
onUpload
|
|
26
|
+
}: UploadCreativeDialogProps) {
|
|
27
|
+
const [selectedFolder, setSelectedFolder] = useState('general');
|
|
28
|
+
const [tags, setTags] = useState<string[]>(['Tag 01', 'Tag 02', 'Tag 03']);
|
|
29
|
+
const [tagInput, setTagInput] = useState('');
|
|
30
|
+
const [files, setFiles] = useState<File[]>([]);
|
|
31
|
+
const [uploadProgress, setUploadProgress] = useState<number>(0);
|
|
32
|
+
const [isUploading, setIsUploading] = useState(false);
|
|
33
|
+
|
|
34
|
+
const handleFilesSelected = (e: React.ChangeEvent<HTMLInputElement>) => {
|
|
35
|
+
if (e.target.files) {
|
|
36
|
+
setFiles(Array.from(e.target.files));
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const handleAddTag = () => {
|
|
41
|
+
if (tagInput.trim() && !tags.includes(tagInput.trim())) {
|
|
42
|
+
setTags([...tags, tagInput.trim()]);
|
|
43
|
+
setTagInput('');
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const handleRemoveTag = (tagToRemove: string) => {
|
|
48
|
+
setTags(tags.filter(tag => tag !== tagToRemove));
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const handleSave = async () => {
|
|
52
|
+
if (files.length === 0) return;
|
|
53
|
+
|
|
54
|
+
setIsUploading(true);
|
|
55
|
+
setUploadProgress(0);
|
|
56
|
+
|
|
57
|
+
try {
|
|
58
|
+
// Simulate upload progress
|
|
59
|
+
const interval = setInterval(() => {
|
|
60
|
+
setUploadProgress(prev => {
|
|
61
|
+
if (prev >= 100) {
|
|
62
|
+
clearInterval(interval);
|
|
63
|
+
return 100;
|
|
64
|
+
}
|
|
65
|
+
return prev + 10;
|
|
66
|
+
});
|
|
67
|
+
}, 200);
|
|
68
|
+
|
|
69
|
+
await onUpload?.({
|
|
70
|
+
files,
|
|
71
|
+
folderId: selectedFolder,
|
|
72
|
+
tags
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
// Reset form
|
|
76
|
+
setFiles([]);
|
|
77
|
+
setTags(['Tag 01', 'Tag 02', 'Tag 03']);
|
|
78
|
+
setSelectedFolder('general');
|
|
79
|
+
setIsUploading(false);
|
|
80
|
+
setUploadProgress(0);
|
|
81
|
+
onOpenChange(false);
|
|
82
|
+
} catch (error) {
|
|
83
|
+
setIsUploading(false);
|
|
84
|
+
setUploadProgress(0);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
const handleRemoveFile = (indexToRemove: number) => {
|
|
89
|
+
setFiles(files.filter((_, index) => index !== indexToRemove));
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
return (
|
|
93
|
+
<Dialog open={open} onOpenChange={onOpenChange}>
|
|
94
|
+
<DialogContent className="max-w-4xl max-h-[90vh] overflow-y-auto">
|
|
95
|
+
<DialogHeader className="pb-4 border-b">
|
|
96
|
+
<div className="flex items-center justify-between">
|
|
97
|
+
<DialogTitle>Upload Creatives</DialogTitle>
|
|
98
|
+
<Button
|
|
99
|
+
variant="ghost"
|
|
100
|
+
size="sm"
|
|
101
|
+
onClick={() => onOpenChange(false)}
|
|
102
|
+
disabled={isUploading}
|
|
103
|
+
>
|
|
104
|
+
<X className="w-4 h-4" />
|
|
105
|
+
</Button>
|
|
106
|
+
</div>
|
|
107
|
+
</DialogHeader>
|
|
108
|
+
|
|
109
|
+
<div className="space-y-6 py-4">
|
|
110
|
+
{/* Save to Folder and Tags */}
|
|
111
|
+
<div className="grid grid-cols-2 gap-4">
|
|
112
|
+
<div className="space-y-2">
|
|
113
|
+
<label className="text-sm font-medium">
|
|
114
|
+
Save to Folder
|
|
115
|
+
</label>
|
|
116
|
+
<SelectRoot
|
|
117
|
+
value={selectedFolder}
|
|
118
|
+
onValueChange={setSelectedFolder}
|
|
119
|
+
disabled={isUploading}
|
|
120
|
+
>
|
|
121
|
+
<option value="general">General</option>
|
|
122
|
+
{folders.map(folder => (
|
|
123
|
+
<option key={folder.id} value={folder.id}>
|
|
124
|
+
{folder.name}
|
|
125
|
+
</option>
|
|
126
|
+
))}
|
|
127
|
+
</SelectRoot>
|
|
128
|
+
</div>
|
|
129
|
+
|
|
130
|
+
<div className="space-y-2">
|
|
131
|
+
<label className="text-sm font-medium">
|
|
132
|
+
Tags
|
|
133
|
+
</label>
|
|
134
|
+
<div className="flex gap-2">
|
|
135
|
+
<Input
|
|
136
|
+
placeholder="Add tag..."
|
|
137
|
+
value={tagInput}
|
|
138
|
+
onChange={(e) => setTagInput(e.target.value)}
|
|
139
|
+
onKeyPress={(e) => {
|
|
140
|
+
if (e.key === 'Enter') {
|
|
141
|
+
e.preventDefault();
|
|
142
|
+
handleAddTag();
|
|
143
|
+
}
|
|
144
|
+
}}
|
|
145
|
+
disabled={isUploading}
|
|
146
|
+
/>
|
|
147
|
+
<Button
|
|
148
|
+
variant="outline"
|
|
149
|
+
onClick={handleAddTag}
|
|
150
|
+
disabled={!tagInput.trim() || isUploading}
|
|
151
|
+
>
|
|
152
|
+
Add
|
|
153
|
+
</Button>
|
|
154
|
+
</div>
|
|
155
|
+
<div className="flex flex-wrap gap-1 mt-2">
|
|
156
|
+
{tags.map((tag, index) => (
|
|
157
|
+
<Badge
|
|
158
|
+
key={index}
|
|
159
|
+
variant="secondary"
|
|
160
|
+
className="flex items-center gap-1"
|
|
161
|
+
>
|
|
162
|
+
{tag}
|
|
163
|
+
<Button
|
|
164
|
+
variant="ghost"
|
|
165
|
+
size="sm"
|
|
166
|
+
isIconOnly
|
|
167
|
+
onClick={() => handleRemoveTag(tag)}
|
|
168
|
+
disabled={isUploading}
|
|
169
|
+
>
|
|
170
|
+
<X className="w-3 h-3" />
|
|
171
|
+
</Button>
|
|
172
|
+
</Badge>
|
|
173
|
+
))}
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
|
|
178
|
+
{/* File Upload Area */}
|
|
179
|
+
<div className="border-2 border-dashed rounded-lg p-8">
|
|
180
|
+
<div className="text-center">
|
|
181
|
+
<UploadIcon className="w-12 h-12 mx-auto text-muted-foreground mb-4" />
|
|
182
|
+
<p className="text-sm font-medium mb-1">
|
|
183
|
+
Tap or Drag & Drop your file here
|
|
184
|
+
</p>
|
|
185
|
+
<p className="text-xs text-muted-foreground mb-4">
|
|
186
|
+
.jpg/.png/ or mp4 (max 10 files with 5MB each)
|
|
187
|
+
</p>
|
|
188
|
+
<Input
|
|
189
|
+
type="file"
|
|
190
|
+
multiple
|
|
191
|
+
accept="image/jpeg,image/png,video/mp4"
|
|
192
|
+
onChange={handleFilesSelected}
|
|
193
|
+
disabled={isUploading}
|
|
194
|
+
className="max-w-xs mx-auto"
|
|
195
|
+
/>
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
|
|
199
|
+
{/* Uploaded Files List */}
|
|
200
|
+
{files.length > 0 && (
|
|
201
|
+
<div className="space-y-2">
|
|
202
|
+
{files.map((file, index) => (
|
|
203
|
+
<div
|
|
204
|
+
key={index}
|
|
205
|
+
className="flex items-center justify-between p-3 border rounded-lg"
|
|
206
|
+
>
|
|
207
|
+
<div className="flex items-center gap-3 flex-1 min-w-0">
|
|
208
|
+
<FileIcon className="w-8 h-8 text-muted-foreground flex-shrink-0" />
|
|
209
|
+
<div className="flex-1 min-w-0">
|
|
210
|
+
<p className="text-sm font-medium truncate">
|
|
211
|
+
{file.name}
|
|
212
|
+
</p>
|
|
213
|
+
<p className="text-xs text-muted-foreground">
|
|
214
|
+
{(file.size / (1024 * 1024)).toFixed(2)} MB
|
|
215
|
+
</p>
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
{isUploading ? (
|
|
219
|
+
<div className="w-24">
|
|
220
|
+
<Progress value={uploadProgress} className="h-1" />
|
|
221
|
+
<p className="text-xs text-muted-foreground text-right mt-1">
|
|
222
|
+
{uploadProgress}%
|
|
223
|
+
</p>
|
|
224
|
+
</div>
|
|
225
|
+
) : (
|
|
226
|
+
<Button
|
|
227
|
+
variant="ghost"
|
|
228
|
+
size="sm"
|
|
229
|
+
onClick={() => handleRemoveFile(index)}
|
|
230
|
+
>
|
|
231
|
+
<X className="w-4 h-4 text-red-600" />
|
|
232
|
+
</Button>
|
|
233
|
+
)}
|
|
234
|
+
</div>
|
|
235
|
+
))}
|
|
236
|
+
</div>
|
|
237
|
+
)}
|
|
238
|
+
</div>
|
|
239
|
+
|
|
240
|
+
{/* Footer Actions */}
|
|
241
|
+
<div className="flex gap-2 pt-4 border-t">
|
|
242
|
+
<Button
|
|
243
|
+
variant="outline"
|
|
244
|
+
className="flex-1"
|
|
245
|
+
onClick={() => onOpenChange(false)}
|
|
246
|
+
disabled={isUploading}
|
|
247
|
+
>
|
|
248
|
+
Cancel
|
|
249
|
+
</Button>
|
|
250
|
+
<Button
|
|
251
|
+
className="flex-1"
|
|
252
|
+
onClick={handleSave}
|
|
253
|
+
disabled={files.length === 0 || isUploading}
|
|
254
|
+
>
|
|
255
|
+
{isUploading ? 'Uploading...' : 'Save'}
|
|
256
|
+
</Button>
|
|
257
|
+
</div>
|
|
258
|
+
</DialogContent>
|
|
259
|
+
</Dialog>
|
|
260
|
+
);
|
|
261
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { useQuery } from "@tanstack/react-query";
|
|
2
|
+
import { useTranslation } from "@/lib/i18n";
|
|
3
|
+
import { Monitor, TrendingUp, DollarSign, Eye } from "lucide-react";
|
|
4
|
+
import { StatCard } from "./stat-card";
|
|
5
|
+
import {
|
|
6
|
+
Card,
|
|
7
|
+
CardContent,
|
|
8
|
+
CardDescription,
|
|
9
|
+
CardHeader,
|
|
10
|
+
CardTitle,
|
|
11
|
+
} from "@moving-walls/design-system";
|
|
12
|
+
import { Skeleton } from "@moving-walls/design-system";
|
|
13
|
+
import { PageHeader } from "@moving-walls/design-system";
|
|
14
|
+
import { Badge } from "@moving-walls/design-system";
|
|
15
|
+
import {
|
|
16
|
+
BarChart,
|
|
17
|
+
Bar,
|
|
18
|
+
XAxis,
|
|
19
|
+
YAxis,
|
|
20
|
+
CartesianGrid,
|
|
21
|
+
ResponsiveContainer,
|
|
22
|
+
} from "recharts";
|
|
23
|
+
import type { Deal, LineItem, Billboard, Creative } from "@shared/schema";
|
|
24
|
+
|
|
25
|
+
export function DashboardOverview() {
|
|
26
|
+
const { t } = useTranslation(['dashboard', 'common']);
|
|
27
|
+
const deals: Deal[] = [];
|
|
28
|
+
const { data: lineItems = [], isLoading: lineItemsLoading } = useQuery<
|
|
29
|
+
LineItem[]
|
|
30
|
+
>({ queryKey: ["/api/line-items"] });
|
|
31
|
+
const { data: billboards = [], isLoading: billboardsLoading } = useQuery<
|
|
32
|
+
Billboard[]
|
|
33
|
+
>({ queryKey: ["/api/billboards"] });
|
|
34
|
+
const { data: creatives = [], isLoading: creativesLoading } = useQuery<
|
|
35
|
+
Creative[]
|
|
36
|
+
>({ queryKey: ["/api/creatives"] });
|
|
37
|
+
|
|
38
|
+
const isLoading =
|
|
39
|
+
false || lineItemsLoading || billboardsLoading || creativesLoading;
|
|
40
|
+
|
|
41
|
+
const totalScreens = billboards.length;
|
|
42
|
+
const activeLineItems = lineItems.filter(
|
|
43
|
+
(li) => li.status === "ACTIVE",
|
|
44
|
+
).length;
|
|
45
|
+
const totalRevenue = deals.reduce(
|
|
46
|
+
(sum, deal) => sum + (deal.spentBudget || 0),
|
|
47
|
+
0,
|
|
48
|
+
);
|
|
49
|
+
const totalImpressions = deals.reduce(
|
|
50
|
+
(sum, deal) => sum + (deal.impressionsDelivered || 0),
|
|
51
|
+
0,
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
const formatNumber = (num: number) => {
|
|
55
|
+
if (num >= 1000000) return `${(num / 1000000).toFixed(1)}M`;
|
|
56
|
+
if (num >= 1000) return `${(num / 1000).toFixed(1)}K`;
|
|
57
|
+
return num.toString();
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
const formatCurrency = (num: number) => {
|
|
61
|
+
if (num >= 1000000) return `$${(num / 1000000).toFixed(1)}M`;
|
|
62
|
+
if (num >= 1000) return `$${(num / 1000).toFixed(1)}K`;
|
|
63
|
+
return `$${num}`;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const chartData = [
|
|
67
|
+
{ name: "Mon", value: Math.floor(totalImpressions * 0.12) },
|
|
68
|
+
{ name: "Tue", value: Math.floor(totalImpressions * 0.11) },
|
|
69
|
+
{ name: "Wed", value: Math.floor(totalImpressions * 0.15) },
|
|
70
|
+
{ name: "Thu", value: Math.floor(totalImpressions * 0.14) },
|
|
71
|
+
{ name: "Fri", value: Math.floor(totalImpressions * 0.18) },
|
|
72
|
+
{ name: "Sat", value: Math.floor(totalImpressions * 0.16) },
|
|
73
|
+
{ name: "Sun", value: Math.floor(totalImpressions * 0.14) },
|
|
74
|
+
];
|
|
75
|
+
|
|
76
|
+
const recentLineItems = lineItems
|
|
77
|
+
.filter((li) => li.status === "ACTIVE" || li.status === "DRAFT")
|
|
78
|
+
.slice(0, 5);
|
|
79
|
+
|
|
80
|
+
const getStatusBadge = (status: LineItem["status"]) => {
|
|
81
|
+
const variants = {
|
|
82
|
+
DRAFT: "secondary",
|
|
83
|
+
READY: "outline",
|
|
84
|
+
ACTIVE: "default",
|
|
85
|
+
PAUSED: "outline",
|
|
86
|
+
COMPLETED: "secondary",
|
|
87
|
+
} as const;
|
|
88
|
+
|
|
89
|
+
return (
|
|
90
|
+
<Badge variant={variants[status]} className="text-xs capitalize">
|
|
91
|
+
{t(`common:status.${status.toLowerCase()}`)}
|
|
92
|
+
</Badge>
|
|
93
|
+
);
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
return (
|
|
97
|
+
<div className="h-[calc(100vh-72px)] w-full flex flex-col bg-mw-neutral-50 dark:bg-mw-neutral-900 overflow-hidden">
|
|
98
|
+
<div className="flex-shrink-0">
|
|
99
|
+
<PageHeader
|
|
100
|
+
title={t('dashboard:title')}
|
|
101
|
+
subtitle={t('dashboard:subtitle')}
|
|
102
|
+
className="px-6 py-4 border-b border-mw-neutral-200"
|
|
103
|
+
/>
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<div className="flex-1 overflow-auto px-6 py-6 space-y-6"></div>
|
|
107
|
+
</div>
|
|
108
|
+
);
|
|
109
|
+
}
|