2026-02-16 13:32:04 -06:00
|
|
|
import { StrictMode } from "react";
|
|
|
|
|
import { createRoot } from "react-dom/client";
|
2026-03-02 16:44:03 -06:00
|
|
|
import { BrowserRouter } from "@/lib/router";
|
2026-02-17 12:24:48 -06:00
|
|
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
2026-02-16 13:32:04 -06:00
|
|
|
import { App } from "./App";
|
Overhaul UI with shadcn components and new pages
Add shadcn/ui components (badge, button, card, input, select,
separator). Add company context provider. New pages: Activity,
Approvals, Companies, Costs, Org chart. Restyle existing pages
(Dashboard, Agents, Issues, Goals, Projects) with shadcn components
and dark theme. Update layout, sidebar navigation, and routing.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:07:32 -06:00
|
|
|
import { CompanyProvider } from "./context/CompanyContext";
|
2026-02-17 12:24:48 -06:00
|
|
|
import { LiveUpdatesProvider } from "./context/LiveUpdatesProvider";
|
Add shared UI primitives, contexts, and reusable components
Add shadcn components: avatar, breadcrumb, checkbox, collapsible,
command, dialog, dropdown-menu, label, popover, scroll-area, sheet,
skeleton, tabs, textarea, tooltip. Add shared components: BreadcrumbBar,
CommandPalette, CompanySwitcher, CommentThread, EmptyState, EntityRow,
FilterBar, InlineEditor, MetricCard, PageSkeleton, PriorityIcon,
PropertiesPanel, StatusIcon, SidebarNavItem/Section. Add contexts for
breadcrumbs, dialogs, and side panels. Add keyboard shortcut hook and
utility helpers. Update layout, sidebar, and main app shell.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:57:00 -06:00
|
|
|
import { BreadcrumbProvider } from "./context/BreadcrumbContext";
|
|
|
|
|
import { PanelProvider } from "./context/PanelContext";
|
2026-02-20 10:32:32 -06:00
|
|
|
import { SidebarProvider } from "./context/SidebarContext";
|
Add shared UI primitives, contexts, and reusable components
Add shadcn components: avatar, breadcrumb, checkbox, collapsible,
command, dialog, dropdown-menu, label, popover, scroll-area, sheet,
skeleton, tabs, textarea, tooltip. Add shared components: BreadcrumbBar,
CommandPalette, CompanySwitcher, CommentThread, EmptyState, EntityRow,
FilterBar, InlineEditor, MetricCard, PageSkeleton, PriorityIcon,
PropertiesPanel, StatusIcon, SidebarNavItem/Section. Add contexts for
breadcrumbs, dialogs, and side panels. Add keyboard shortcut hook and
utility helpers. Update layout, sidebar, and main app shell.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:57:00 -06:00
|
|
|
import { DialogProvider } from "./context/DialogContext";
|
2026-02-20 13:47:13 -06:00
|
|
|
import { ToastProvider } from "./context/ToastContext";
|
2026-02-26 16:33:29 -06:00
|
|
|
import { ThemeProvider } from "./context/ThemeContext";
|
Add shared UI primitives, contexts, and reusable components
Add shadcn components: avatar, breadcrumb, checkbox, collapsible,
command, dialog, dropdown-menu, label, popover, scroll-area, sheet,
skeleton, tabs, textarea, tooltip. Add shared components: BreadcrumbBar,
CommandPalette, CompanySwitcher, CommentThread, EmptyState, EntityRow,
FilterBar, InlineEditor, MetricCard, PageSkeleton, PriorityIcon,
PropertiesPanel, StatusIcon, SidebarNavItem/Section. Add contexts for
breadcrumbs, dialogs, and side panels. Add keyboard shortcut hook and
utility helpers. Update layout, sidebar, and main app shell.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 09:57:00 -06:00
|
|
|
import { TooltipProvider } from "@/components/ui/tooltip";
|
Add MarkdownEditor component, asset image upload, and rich description editing
Introduce MarkdownEditor built on @mdxeditor/editor with headings,
lists, links, quotes, image upload with drag-and-drop, and themed CSS
integration. Add asset image upload API (routes, service, storage) and
wire image upload into InlineEditor multiline mode, NewIssueDialog,
NewProjectDialog, GoalDetail, IssueDetail, and ProjectDetail
description fields. Tighten prompt template editor styling.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 12:50:45 -06:00
|
|
|
import "@mdxeditor/editor/style.css";
|
2026-02-16 13:32:04 -06:00
|
|
|
import "./index.css";
|
|
|
|
|
|
2026-02-17 12:24:48 -06:00
|
|
|
const queryClient = new QueryClient({
|
|
|
|
|
defaultOptions: {
|
|
|
|
|
queries: {
|
|
|
|
|
staleTime: 30_000,
|
|
|
|
|
refetchOnWindowFocus: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
|
2026-02-16 13:32:04 -06:00
|
|
|
createRoot(document.getElementById("root")!).render(
|
|
|
|
|
<StrictMode>
|
2026-02-17 12:24:48 -06:00
|
|
|
<QueryClientProvider client={queryClient}>
|
2026-02-26 16:33:29 -06:00
|
|
|
<ThemeProvider>
|
|
|
|
|
<CompanyProvider>
|
|
|
|
|
<ToastProvider>
|
|
|
|
|
<LiveUpdatesProvider>
|
|
|
|
|
<BrowserRouter>
|
|
|
|
|
<TooltipProvider>
|
|
|
|
|
<BreadcrumbProvider>
|
|
|
|
|
<SidebarProvider>
|
|
|
|
|
<PanelProvider>
|
|
|
|
|
<DialogProvider>
|
|
|
|
|
<App />
|
|
|
|
|
</DialogProvider>
|
|
|
|
|
</PanelProvider>
|
|
|
|
|
</SidebarProvider>
|
|
|
|
|
</BreadcrumbProvider>
|
|
|
|
|
</TooltipProvider>
|
|
|
|
|
</BrowserRouter>
|
|
|
|
|
</LiveUpdatesProvider>
|
|
|
|
|
</ToastProvider>
|
|
|
|
|
</CompanyProvider>
|
|
|
|
|
</ThemeProvider>
|
2026-02-17 12:24:48 -06:00
|
|
|
</QueryClientProvider>
|
2026-02-16 13:32:04 -06:00
|
|
|
</StrictMode>
|
|
|
|
|
);
|