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,241 @@
|
|
|
1
|
+
import { createSlice, createAsyncThunk, PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import type { MapMarkerLocation, GeoImportFile, GeoImportFilesParams } from '@/types/geofencing';
|
|
3
|
+
import { geoImportApi } from '@/lib/geo-import-api';
|
|
4
|
+
|
|
5
|
+
interface MapMarkerLocationsState {
|
|
6
|
+
locations: MapMarkerLocation[];
|
|
7
|
+
selectedLocations: MapMarkerLocation[];
|
|
8
|
+
selectedLocation: MapMarkerLocation | null;
|
|
9
|
+
files: GeoImportFile[];
|
|
10
|
+
currentFile: GeoImportFile | null;
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
isUploading: boolean;
|
|
13
|
+
error: string | null;
|
|
14
|
+
pagination: {
|
|
15
|
+
page: number;
|
|
16
|
+
limit: number;
|
|
17
|
+
total: number;
|
|
18
|
+
totalPages: number;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const initialState: MapMarkerLocationsState = {
|
|
23
|
+
locations: [],
|
|
24
|
+
selectedLocations: [],
|
|
25
|
+
selectedLocation: null,
|
|
26
|
+
files: [],
|
|
27
|
+
currentFile: null,
|
|
28
|
+
isLoading: false,
|
|
29
|
+
isUploading: false,
|
|
30
|
+
error: null,
|
|
31
|
+
pagination: {
|
|
32
|
+
page: 1,
|
|
33
|
+
limit: 10,
|
|
34
|
+
total: 0,
|
|
35
|
+
totalPages: 0,
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export const fetchGeoImportFiles = createAsyncThunk(
|
|
40
|
+
'mapMarkerLocations/fetchFiles',
|
|
41
|
+
async (params: GeoImportFilesParams, { rejectWithValue }) => {
|
|
42
|
+
try {
|
|
43
|
+
const response = await geoImportApi.getGeoImportFiles(params);
|
|
44
|
+
return response;
|
|
45
|
+
} catch (error: any) {
|
|
46
|
+
return rejectWithValue(error.message || 'Failed to fetch files');
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
export const fetchGeoImportLocations = createAsyncThunk(
|
|
52
|
+
'mapMarkerLocations/fetchLocations',
|
|
53
|
+
async (fileId: string, { rejectWithValue }) => {
|
|
54
|
+
try {
|
|
55
|
+
const response = await geoImportApi.getGeoImportLocations(fileId);
|
|
56
|
+
return response;
|
|
57
|
+
} catch (error: any) {
|
|
58
|
+
return rejectWithValue(error.message || 'Failed to fetch locations');
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
export const uploadGeoCoordinates = createAsyncThunk(
|
|
64
|
+
'mapMarkerLocations/uploadCoordinates',
|
|
65
|
+
async ({ file, countryName }: { file: File; countryName: string }, { rejectWithValue }) => {
|
|
66
|
+
try {
|
|
67
|
+
const response = await geoImportApi.uploadGeoCoordinates(file, countryName);
|
|
68
|
+
return response;
|
|
69
|
+
} catch (error: any) {
|
|
70
|
+
return rejectWithValue(error.message || 'Failed to upload file');
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
export const deleteGeoImportFile = createAsyncThunk(
|
|
76
|
+
'mapMarkerLocations/deleteFile',
|
|
77
|
+
async (fileId: string, { rejectWithValue }) => {
|
|
78
|
+
try {
|
|
79
|
+
await geoImportApi.deleteGeoImportFile(fileId);
|
|
80
|
+
return fileId;
|
|
81
|
+
} catch (error: any) {
|
|
82
|
+
return rejectWithValue(error.message || 'Failed to delete file');
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
);
|
|
86
|
+
|
|
87
|
+
const mapMarkerLocationsSlice = createSlice({
|
|
88
|
+
name: 'mapMarkerLocations',
|
|
89
|
+
initialState,
|
|
90
|
+
reducers: {
|
|
91
|
+
setLocations: (state, action: PayloadAction<MapMarkerLocation[]>) => {
|
|
92
|
+
state.locations = action.payload;
|
|
93
|
+
},
|
|
94
|
+
addLocation: (state, action: PayloadAction<MapMarkerLocation>) => {
|
|
95
|
+
state.locations.push(action.payload);
|
|
96
|
+
},
|
|
97
|
+
removeLocation: (state, action: PayloadAction<string>) => {
|
|
98
|
+
state.locations = state.locations.filter((loc) => loc.id !== action.payload);
|
|
99
|
+
},
|
|
100
|
+
setSelectedLocations: (state, action: PayloadAction<MapMarkerLocation[]>) => {
|
|
101
|
+
state.selectedLocations = action.payload;
|
|
102
|
+
},
|
|
103
|
+
addSelectedLocation: (state, action: PayloadAction<MapMarkerLocation>) => {
|
|
104
|
+
const exists = state.selectedLocations.find((loc) => loc.id === action.payload.id);
|
|
105
|
+
if (!exists) {
|
|
106
|
+
state.selectedLocations.push(action.payload);
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
removeSelectedLocation: (state, action: PayloadAction<string>) => {
|
|
110
|
+
state.selectedLocations = state.selectedLocations.filter((loc) => loc.id !== action.payload);
|
|
111
|
+
},
|
|
112
|
+
clearSelectedLocations: (state) => {
|
|
113
|
+
state.selectedLocations = [];
|
|
114
|
+
},
|
|
115
|
+
clearLocations: (state) => {
|
|
116
|
+
state.locations = [];
|
|
117
|
+
},
|
|
118
|
+
setCurrentFile: (state, action: PayloadAction<GeoImportFile | null>) => {
|
|
119
|
+
state.currentFile = action.payload;
|
|
120
|
+
},
|
|
121
|
+
clearError: (state) => {
|
|
122
|
+
state.error = null;
|
|
123
|
+
},
|
|
124
|
+
updateLocationPOIMetadata: (
|
|
125
|
+
state,
|
|
126
|
+
action: PayloadAction<{ id: string; metadata: Record<string, string>; poi: string[] }>
|
|
127
|
+
) => {
|
|
128
|
+
const location = state.locations.find((loc) => loc.id === action.payload.id);
|
|
129
|
+
if (location) {
|
|
130
|
+
location.metadata = { ...location.metadata, ...action.payload.metadata };
|
|
131
|
+
location.poi = action.payload.poi;
|
|
132
|
+
}
|
|
133
|
+
const selectedLocation = state.selectedLocations.find((loc) => loc.id === action.payload.id);
|
|
134
|
+
if (selectedLocation) {
|
|
135
|
+
selectedLocation.metadata = { ...selectedLocation.metadata, ...action.payload.metadata };
|
|
136
|
+
selectedLocation.poi = action.payload.poi;
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
toggleLocationEnabled: (state, action: PayloadAction<{ id: string; enabled: boolean }>) => {
|
|
140
|
+
const location = state.locations.find((loc) => loc.id === action.payload.id);
|
|
141
|
+
if (location) {
|
|
142
|
+
location.enabled = action.payload.enabled;
|
|
143
|
+
}
|
|
144
|
+
const selectedLocation = state.selectedLocations.find((loc) => loc.id === action.payload.id);
|
|
145
|
+
if (selectedLocation) {
|
|
146
|
+
selectedLocation.enabled = action.payload.enabled;
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
removeLocationPOI: (state, action: PayloadAction<{ id: string; poiId: string }>) => {
|
|
150
|
+
const location = state.locations.find((loc) => loc.id === action.payload.id);
|
|
151
|
+
if (location && location.poi) {
|
|
152
|
+
location.poi = location.poi.filter((p) => p !== action.payload.poiId);
|
|
153
|
+
}
|
|
154
|
+
const selectedLocation = state.selectedLocations.find((loc) => loc.id === action.payload.id);
|
|
155
|
+
if (selectedLocation && selectedLocation.poi) {
|
|
156
|
+
selectedLocation.poi = selectedLocation.poi.filter((p) => p !== action.payload.poiId);
|
|
157
|
+
}
|
|
158
|
+
if (state.selectedLocation && state.selectedLocation.id === action.payload.id && state.selectedLocation.poi) {
|
|
159
|
+
state.selectedLocation.poi = state.selectedLocation.poi.filter((p) => p !== action.payload.poiId);
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
setSelectedLocation: (state, action: PayloadAction<MapMarkerLocation | null>) => {
|
|
163
|
+
state.selectedLocation = action.payload;
|
|
164
|
+
},
|
|
165
|
+
clearSelectedLocation: (state) => {
|
|
166
|
+
state.selectedLocation = null;
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
extraReducers: (builder) => {
|
|
170
|
+
builder
|
|
171
|
+
.addCase(fetchGeoImportFiles.pending, (state) => {
|
|
172
|
+
state.isLoading = true;
|
|
173
|
+
state.error = null;
|
|
174
|
+
})
|
|
175
|
+
.addCase(fetchGeoImportFiles.fulfilled, (state, action) => {
|
|
176
|
+
state.isLoading = false;
|
|
177
|
+
state.files = action.payload.files;
|
|
178
|
+
state.pagination = action.payload.pagination;
|
|
179
|
+
})
|
|
180
|
+
.addCase(fetchGeoImportFiles.rejected, (state, action) => {
|
|
181
|
+
state.isLoading = false;
|
|
182
|
+
state.error = action.payload as string;
|
|
183
|
+
})
|
|
184
|
+
.addCase(fetchGeoImportLocations.pending, (state) => {
|
|
185
|
+
state.isLoading = true;
|
|
186
|
+
state.error = null;
|
|
187
|
+
})
|
|
188
|
+
.addCase(fetchGeoImportLocations.fulfilled, (state, action) => {
|
|
189
|
+
state.isLoading = false;
|
|
190
|
+
state.locations = action.payload.locations;
|
|
191
|
+
})
|
|
192
|
+
.addCase(fetchGeoImportLocations.rejected, (state, action) => {
|
|
193
|
+
state.isLoading = false;
|
|
194
|
+
state.error = action.payload as string;
|
|
195
|
+
})
|
|
196
|
+
.addCase(uploadGeoCoordinates.pending, (state) => {
|
|
197
|
+
state.isUploading = true;
|
|
198
|
+
state.error = null;
|
|
199
|
+
})
|
|
200
|
+
.addCase(uploadGeoCoordinates.fulfilled, (state, action) => {
|
|
201
|
+
state.isUploading = false;
|
|
202
|
+
state.files.unshift(action.payload.file);
|
|
203
|
+
})
|
|
204
|
+
.addCase(uploadGeoCoordinates.rejected, (state, action) => {
|
|
205
|
+
state.isUploading = false;
|
|
206
|
+
state.error = action.payload as string;
|
|
207
|
+
})
|
|
208
|
+
.addCase(deleteGeoImportFile.pending, (state) => {
|
|
209
|
+
state.isLoading = true;
|
|
210
|
+
state.error = null;
|
|
211
|
+
})
|
|
212
|
+
.addCase(deleteGeoImportFile.fulfilled, (state, action) => {
|
|
213
|
+
state.isLoading = false;
|
|
214
|
+
state.files = state.files.filter((file) => file.id !== action.payload);
|
|
215
|
+
})
|
|
216
|
+
.addCase(deleteGeoImportFile.rejected, (state, action) => {
|
|
217
|
+
state.isLoading = false;
|
|
218
|
+
state.error = action.payload as string;
|
|
219
|
+
});
|
|
220
|
+
},
|
|
221
|
+
});
|
|
222
|
+
|
|
223
|
+
export const {
|
|
224
|
+
setLocations,
|
|
225
|
+
addLocation,
|
|
226
|
+
removeLocation,
|
|
227
|
+
setSelectedLocations,
|
|
228
|
+
addSelectedLocation,
|
|
229
|
+
removeSelectedLocation,
|
|
230
|
+
clearSelectedLocations,
|
|
231
|
+
clearLocations,
|
|
232
|
+
setCurrentFile,
|
|
233
|
+
clearError,
|
|
234
|
+
updateLocationPOIMetadata,
|
|
235
|
+
toggleLocationEnabled,
|
|
236
|
+
removeLocationPOI,
|
|
237
|
+
setSelectedLocation,
|
|
238
|
+
clearSelectedLocation,
|
|
239
|
+
} = mapMarkerLocationsSlice.actions;
|
|
240
|
+
|
|
241
|
+
export default mapMarkerLocationsSlice.reducer;
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
/* MW Design System - Design Tokens (aligned with mw-planner-FE via @moving-walls/design-system) */
|
|
2
|
+
|
|
3
|
+
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
/* Colors */
|
|
7
|
+
--color-background: #ffffff;
|
|
8
|
+
--color-foreground: #0f172a;
|
|
9
|
+
--color-card: #ffffff;
|
|
10
|
+
--color-card-foreground: #0f172a;
|
|
11
|
+
--color-popover: #ffffff;
|
|
12
|
+
--color-popover-foreground: #0f172a;
|
|
13
|
+
--color-primary: #2176cc;
|
|
14
|
+
--color-primary-foreground: #f8fafc;
|
|
15
|
+
--color-secondary: #f1f5f9;
|
|
16
|
+
--color-secondary-foreground: #0f172a;
|
|
17
|
+
--color-muted: #f1f5f9;
|
|
18
|
+
--color-muted-foreground: #64748b;
|
|
19
|
+
--color-accent: #f1f5f9;
|
|
20
|
+
--color-accent-foreground: #0f172a;
|
|
21
|
+
--color-destructive: #c52828;
|
|
22
|
+
--color-destructive-foreground: #f8fafc;
|
|
23
|
+
--color-border: #e2e8f0;
|
|
24
|
+
--color-input: #e2e8f0;
|
|
25
|
+
--color-ring: #94a3b8;
|
|
26
|
+
--color-container-border: #e2e8f0;
|
|
27
|
+
|
|
28
|
+
/* Container Colors */
|
|
29
|
+
--Color-Container-Container-fill-neutral: #F3F3F3;
|
|
30
|
+
|
|
31
|
+
/* MW Primary Palette (aligned with mw-planner-FE) */
|
|
32
|
+
--color-mw-primary-50: #e8f0f7;
|
|
33
|
+
--color-mw-primary-100: #b9cfe6;
|
|
34
|
+
--color-mw-primary-200: #97b8da;
|
|
35
|
+
--color-mw-primary-300: #6898c9;
|
|
36
|
+
--color-mw-primary-400: #4a84bf;
|
|
37
|
+
--color-mw-primary-500: #2176cc;
|
|
38
|
+
--color-mw-primary-600: #1a5c9f;
|
|
39
|
+
--color-mw-primary-700: #15487c;
|
|
40
|
+
--color-mw-primary-800: #103860;
|
|
41
|
+
--color-mw-primary-900: #0c2a4a;
|
|
42
|
+
|
|
43
|
+
/* MW Secondary Palette (aligned with mw-planner-FE) */
|
|
44
|
+
--color-mw-secondary-50: #eff8fd;
|
|
45
|
+
--color-mw-secondary-100: #cee9f8;
|
|
46
|
+
--color-mw-secondary-200: #b6def4;
|
|
47
|
+
--color-mw-secondary-300: #94cfef;
|
|
48
|
+
--color-mw-secondary-400: #80c6ec;
|
|
49
|
+
--color-mw-secondary-500: #60b8e7;
|
|
50
|
+
--color-mw-secondary-600: #57a7d2;
|
|
51
|
+
--color-mw-secondary-700: #4483a4;
|
|
52
|
+
--color-mw-secondary-800: #35657f;
|
|
53
|
+
--color-mw-secondary-900: #284d61;
|
|
54
|
+
|
|
55
|
+
/* MW Neutral Palette (aligned with mw-planner-FE) */
|
|
56
|
+
--color-mw-neutral-50: #f3f3f3;
|
|
57
|
+
--color-mw-neutral-100: #d3d3d3;
|
|
58
|
+
--color-mw-neutral-200: #bebebe;
|
|
59
|
+
--color-mw-neutral-300: #a0a0a0;
|
|
60
|
+
--color-mw-neutral-400: #8d8d8d;
|
|
61
|
+
--color-mw-neutral-500: #717171;
|
|
62
|
+
--color-mw-neutral-600: #676767;
|
|
63
|
+
--color-mw-neutral-700: #505050;
|
|
64
|
+
--color-mw-neutral-800: #3e3e3e;
|
|
65
|
+
--color-mw-neutral-900: #352f2f;
|
|
66
|
+
|
|
67
|
+
/* MW Success Palette (aligned with mw-planner-FE) */
|
|
68
|
+
--color-mw-success-50: #eaf2eb;
|
|
69
|
+
--color-mw-success-100: #bed7bf;
|
|
70
|
+
--color-mw-success-200: #9ec3a1;
|
|
71
|
+
--color-mw-success-300: #72a876;
|
|
72
|
+
--color-mw-success-400: #57975b;
|
|
73
|
+
--color-mw-success-500: #2d7d32;
|
|
74
|
+
--color-mw-success-600: #29722e;
|
|
75
|
+
--color-mw-success-700: #205924;
|
|
76
|
+
--color-mw-success-800: #19451c;
|
|
77
|
+
--color-mw-success-900: #133515;
|
|
78
|
+
|
|
79
|
+
/* MW Error/Danger Palette (aligned with mw-planner-FE) */
|
|
80
|
+
--color-mw-error-50: #f9eaea;
|
|
81
|
+
--color-mw-error-100: #edbcbc;
|
|
82
|
+
--color-mw-error-200: #e49c9c;
|
|
83
|
+
--color-mw-error-300: #d86f6f;
|
|
84
|
+
--color-mw-error-400: #d15353;
|
|
85
|
+
--color-mw-error-500: #c52828;
|
|
86
|
+
--color-mw-error-600: #b32424;
|
|
87
|
+
--color-mw-error-700: #8c1c1c;
|
|
88
|
+
--color-mw-error-800: #6c1616;
|
|
89
|
+
--color-mw-error-900: #531111;
|
|
90
|
+
|
|
91
|
+
/* MW Warning Palette (aligned with mw-planner-FE) */
|
|
92
|
+
--color-mw-warning-50: #fef7ec;
|
|
93
|
+
--color-mw-warning-100: #fde4bb;
|
|
94
|
+
--color-mw-warning-200: #fcd79b;
|
|
95
|
+
--color-mw-warning-300: #fbc56d;
|
|
96
|
+
--color-mw-warning-400: #fab951;
|
|
97
|
+
--color-mw-warning-500: #f9a825;
|
|
98
|
+
--color-mw-warning-600: #e39922;
|
|
99
|
+
--color-mw-warning-700: #b1771a;
|
|
100
|
+
--color-mw-warning-800: #895c14;
|
|
101
|
+
--color-mw-warning-900: #694710;
|
|
102
|
+
|
|
103
|
+
/* MW Info Palette (aligned with mw-planner-FE) */
|
|
104
|
+
--color-mw-info-50: #e6f3fa;
|
|
105
|
+
--color-mw-info-100: #b0daf1;
|
|
106
|
+
--color-mw-info-200: #8ac8ea;
|
|
107
|
+
--color-mw-info-300: #55afe0;
|
|
108
|
+
--color-mw-info-400: #34a0da;
|
|
109
|
+
--color-mw-info-500: #0188d1;
|
|
110
|
+
--color-mw-info-600: #017cbe;
|
|
111
|
+
--color-mw-info-700: #016194;
|
|
112
|
+
--color-mw-info-800: #014b73;
|
|
113
|
+
--color-mw-info-900: #003958;
|
|
114
|
+
|
|
115
|
+
/* Extended palettes from mw-planner-FE */
|
|
116
|
+
--color-mw-purple-50: #ece1eb;
|
|
117
|
+
--color-mw-purple-500: #7e537a;
|
|
118
|
+
--color-mw-purple-600: #5f3e5c;
|
|
119
|
+
--color-mw-purple-warning-50: #f3ebfe;
|
|
120
|
+
--color-mw-purple-warning-500: #8a38f5;
|
|
121
|
+
--color-mw-orange-warning-50: #fef1eb;
|
|
122
|
+
--color-mw-orange-warning-500: #f57738;
|
|
123
|
+
--color-mw-orange-warning-800: #883d1b;
|
|
124
|
+
--color-mw-light-green-50: #f3f7e8;
|
|
125
|
+
--color-mw-light-green-500: #8bc24b;
|
|
126
|
+
--color-mw-light-green-600: #7cb243;
|
|
127
|
+
--color-mw-blush-grey-50: #c8d7dc;
|
|
128
|
+
--color-mw-blush-grey-500: #486a74;
|
|
129
|
+
--color-mw-teal-600: #0c6e64;
|
|
130
|
+
--color-mw-dark-grey-50: #f2f2f2;
|
|
131
|
+
--color-mw-dark-grey-100: #d7d7d7;
|
|
132
|
+
|
|
133
|
+
/* Backward compatibility */
|
|
134
|
+
--color-success: #2d7d32;
|
|
135
|
+
--color-success-foreground: #ffffff;
|
|
136
|
+
--color-warning: #f9a825;
|
|
137
|
+
--color-warning-foreground: #ffffff;
|
|
138
|
+
--color-info: #0188d1;
|
|
139
|
+
--color-info-foreground: #ffffff;
|
|
140
|
+
|
|
141
|
+
/* Spacing */
|
|
142
|
+
--spacing-px: 1px;
|
|
143
|
+
--spacing-0: 0px;
|
|
144
|
+
--spacing-0-5: 0.125rem;
|
|
145
|
+
--spacing-1: 0.25rem;
|
|
146
|
+
--spacing-1-5: 0.375rem;
|
|
147
|
+
--spacing-2: 0.5rem;
|
|
148
|
+
--spacing-2-5: 0.625rem;
|
|
149
|
+
--spacing-3: 0.75rem;
|
|
150
|
+
--spacing-3-5: 0.875rem;
|
|
151
|
+
--spacing-4: 1rem;
|
|
152
|
+
--spacing-5: 1.25rem;
|
|
153
|
+
--spacing-6: 1.5rem;
|
|
154
|
+
--spacing-7: 1.75rem;
|
|
155
|
+
--spacing-8: 2rem;
|
|
156
|
+
--spacing-9: 2.25rem;
|
|
157
|
+
--spacing-10: 2.5rem;
|
|
158
|
+
--spacing-11: 2.75rem;
|
|
159
|
+
--spacing-12: 3rem;
|
|
160
|
+
--spacing-14: 3.5rem;
|
|
161
|
+
--spacing-16: 4rem;
|
|
162
|
+
--spacing-20: 5rem;
|
|
163
|
+
--spacing-24: 6rem;
|
|
164
|
+
--spacing-28: 7rem;
|
|
165
|
+
--spacing-32: 8rem;
|
|
166
|
+
--spacing-36: 9rem;
|
|
167
|
+
--spacing-40: 10rem;
|
|
168
|
+
--spacing-44: 11rem;
|
|
169
|
+
--spacing-48: 12rem;
|
|
170
|
+
--spacing-52: 13rem;
|
|
171
|
+
--spacing-56: 14rem;
|
|
172
|
+
--spacing-60: 15rem;
|
|
173
|
+
--spacing-64: 16rem;
|
|
174
|
+
--spacing-72: 18rem;
|
|
175
|
+
--spacing-80: 20rem;
|
|
176
|
+
--spacing-96: 24rem;
|
|
177
|
+
|
|
178
|
+
/* Border radius (aligned with mw-planner-FE) */
|
|
179
|
+
--radius-2xs: 0.25rem;
|
|
180
|
+
--radius-xs: 0.5rem;
|
|
181
|
+
--radius-s: 0.75rem;
|
|
182
|
+
--radius-m: 1rem;
|
|
183
|
+
--radius-l: 1.25rem;
|
|
184
|
+
--radius-xl: 1.5rem;
|
|
185
|
+
--radius-2xl: 2rem;
|
|
186
|
+
--radius-3xl: 2.5rem;
|
|
187
|
+
--radius-4xl: 3rem;
|
|
188
|
+
--radius-5xl: 3.5rem;
|
|
189
|
+
--radius-full: 999px;
|
|
190
|
+
|
|
191
|
+
/* Font families */
|
|
192
|
+
--font-family-primary: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
193
|
+
--font-family-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
|
|
194
|
+
|
|
195
|
+
/* Font sizes */
|
|
196
|
+
--font-size-2xs: 10px;
|
|
197
|
+
--font-size-xs: 11px;
|
|
198
|
+
--font-size-sm: 12px;
|
|
199
|
+
--font-size-base: 13px;
|
|
200
|
+
--font-size-md: 14px;
|
|
201
|
+
--font-size-lg: 16px;
|
|
202
|
+
--font-size-xl: 18px;
|
|
203
|
+
--font-size-2xl: 20px;
|
|
204
|
+
--font-size-3xl: 22px;
|
|
205
|
+
--font-size-4xl: 26px;
|
|
206
|
+
--font-size-5xl: 30px;
|
|
207
|
+
--font-size-6xl: 36px;
|
|
208
|
+
--font-size-7xl: 42px;
|
|
209
|
+
--font-size-8xl: 48px;
|
|
210
|
+
--font-size-9xl: 60px;
|
|
211
|
+
|
|
212
|
+
/* Font weights */
|
|
213
|
+
--font-weight-thin: 100;
|
|
214
|
+
--font-weight-extralight: 200;
|
|
215
|
+
--font-weight-light: 300;
|
|
216
|
+
--font-weight-normal: 400;
|
|
217
|
+
--font-weight-medium: 500;
|
|
218
|
+
--font-weight-semibold: 600;
|
|
219
|
+
--font-weight-bold: 700;
|
|
220
|
+
--font-weight-extrabold: 800;
|
|
221
|
+
--font-weight-black: 900;
|
|
222
|
+
|
|
223
|
+
/* Line heights */
|
|
224
|
+
--line-height-none: 1;
|
|
225
|
+
--line-height-tight: 1.25;
|
|
226
|
+
--line-height-snug: 1.375;
|
|
227
|
+
--line-height-normal: 1.5;
|
|
228
|
+
--line-height-relaxed: 1.625;
|
|
229
|
+
--line-height-loose: 2;
|
|
230
|
+
--line-height-16: 1rem;
|
|
231
|
+
--line-height-18: 1.125rem;
|
|
232
|
+
--line-height-20: 1.25rem;
|
|
233
|
+
--line-height-32: 2rem;
|
|
234
|
+
|
|
235
|
+
/* Shadows */
|
|
236
|
+
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
237
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
238
|
+
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
239
|
+
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
240
|
+
--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
241
|
+
--shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
|
|
242
|
+
--shadow-none: 0 0 #0000;
|
|
243
|
+
|
|
244
|
+
/* Z-index */
|
|
245
|
+
--z-index-hide: -1;
|
|
246
|
+
--z-index-auto: auto;
|
|
247
|
+
--z-index-base: 0;
|
|
248
|
+
--z-index-docked: 10;
|
|
249
|
+
--z-index-dropdown: 1000;
|
|
250
|
+
--z-index-sticky: 1100;
|
|
251
|
+
--z-index-banner: 1200;
|
|
252
|
+
--z-index-overlay: 1300;
|
|
253
|
+
--z-index-modal: 1400;
|
|
254
|
+
--z-index-popover: 1500;
|
|
255
|
+
--z-index-skipLink: 1600;
|
|
256
|
+
--z-index-toast: 1700;
|
|
257
|
+
--z-index-tooltip: 1800;
|
|
258
|
+
|
|
259
|
+
/* Breakpoints (for media queries) */
|
|
260
|
+
--breakpoint-sm: 640px;
|
|
261
|
+
--breakpoint-md: 768px;
|
|
262
|
+
--breakpoint-lg: 1024px;
|
|
263
|
+
--breakpoint-xl: 1280px;
|
|
264
|
+
--breakpoint-2xl: 1536px;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
/* Dark mode overrides (aligned with mw-planner-FE) */
|
|
268
|
+
.dark {
|
|
269
|
+
--color-background: #020617;
|
|
270
|
+
--color-foreground: #f8fafc;
|
|
271
|
+
--color-card: #020617;
|
|
272
|
+
--color-card-foreground: #f8fafc;
|
|
273
|
+
--color-popover: #020617;
|
|
274
|
+
--color-popover-foreground: #f8fafc;
|
|
275
|
+
--color-primary: #2176cc;
|
|
276
|
+
--color-primary-foreground: #0f172a;
|
|
277
|
+
--color-secondary: #1e293b;
|
|
278
|
+
--color-secondary-foreground: #f8fafc;
|
|
279
|
+
--color-muted: #1e293b;
|
|
280
|
+
--color-muted-foreground: #94a3b8;
|
|
281
|
+
--color-accent: #1e293b;
|
|
282
|
+
--color-accent-foreground: #f8fafc;
|
|
283
|
+
--color-destructive: #d63535;
|
|
284
|
+
--color-destructive-foreground: #f8fafc;
|
|
285
|
+
--color-border: #1e293b;
|
|
286
|
+
--color-input: #1e293b;
|
|
287
|
+
--color-ring: #94a3b8;
|
|
288
|
+
|
|
289
|
+
/* MW Primary Palette (Dark Theme - aligned with mw-planner-FE) */
|
|
290
|
+
--color-mw-primary-50: #e8f0f7;
|
|
291
|
+
--color-mw-primary-100: #b9cfe6;
|
|
292
|
+
--color-mw-primary-200: #97b8da;
|
|
293
|
+
--color-mw-primary-300: #6898c9;
|
|
294
|
+
--color-mw-primary-400: #4a84bf;
|
|
295
|
+
--color-mw-primary-500: #1d65af;
|
|
296
|
+
--color-mw-primary-600: #1a5c9f;
|
|
297
|
+
--color-mw-primary-700: #15487c;
|
|
298
|
+
--color-mw-primary-800: #103860;
|
|
299
|
+
--color-mw-primary-900: #0c2a47;
|
|
300
|
+
|
|
301
|
+
/* MW Secondary Palette (Dark Theme - aligned with mw-planner-FE) */
|
|
302
|
+
--color-mw-secondary-50: #edf7fc;
|
|
303
|
+
--color-mw-secondary-100: #c8e7f7;
|
|
304
|
+
--color-mw-secondary-200: #addbf3;
|
|
305
|
+
--color-mw-secondary-300: #87caed;
|
|
306
|
+
--color-mw-secondary-400: #70c0e9;
|
|
307
|
+
--color-mw-secondary-500: #4cb0e4;
|
|
308
|
+
--color-mw-secondary-600: #45a0cf;
|
|
309
|
+
--color-mw-secondary-700: #367da2;
|
|
310
|
+
--color-mw-secondary-800: #2a617d;
|
|
311
|
+
--color-mw-secondary-900: #204a60;
|
|
312
|
+
|
|
313
|
+
/* MW Neutral Palette (Dark Theme) */
|
|
314
|
+
--color-mw-neutral-50: #f2f2f2;
|
|
315
|
+
--color-mw-neutral-100: #d7d7d7;
|
|
316
|
+
--color-mw-neutral-200: #c4c4c4;
|
|
317
|
+
--color-mw-neutral-300: #a9a9a9;
|
|
318
|
+
--color-mw-neutral-400: #999999;
|
|
319
|
+
--color-mw-neutral-500: #7f7f7f;
|
|
320
|
+
--color-mw-neutral-600: #747474;
|
|
321
|
+
--color-mw-neutral-700: #6a6a6a;
|
|
322
|
+
--color-mw-neutral-800: #464646;
|
|
323
|
+
--color-mw-neutral-900: #353535;
|
|
324
|
+
}
|