Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

Commit b279d80

Browse files
committed
feat: Add ReportView and SearchResultsPage components
- Implemented ReportView for displaying and editing reports with live data preview. - Created SearchResultsPage for enhanced search functionality across objects, dashboards, pages, and reports. - Introduced ViewConfigPanel for schema-driven configuration of views, replacing imperative code with a declarative approach. - Updated index file to export new components for easier access.
1 parent 28c3089 commit b279d80

111 files changed

Lines changed: 1465 additions & 858 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/console-starter/src/App.tsx‎

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,24 @@
11
/**
22
* Minimal third-party console template.
33
*
4-
* Wraps createConsole() with the auth provider + toaster so that login,
5-
* registration, and password-reset work out of the box against the backend
6-
* pointed to by VITE_SERVER_URL.
4+
* `createConsole({})` is enough — every slot (auth pages, home, organizations,
5+
* AppContent) defaults to the implementation shipped from @object-ui/app-shell,
6+
* so this starter renders a fully functional console out of the box against
7+
* the backend at VITE_SERVER_URL.
78
*
8-
* Customise by:
9-
* - Replacing pages in ./pages with your own
10-
* - Adding a real AppContent that renders your business screens
11-
* - Wiring your own theme/branding around <ConsoleApp/>
12-
*
13-
* The shell (auth gate, /home, /organizations, /apps/:appName/* routing,
14-
* adapter + metadata providers) is fully owned by createConsole. Extend
15-
* through the config object below — no package internals to fork.
9+
* To customise: pass any of `authPages`, `homePage`, `organizationsPage`, or
10+
* `AppContent` overrides into `createConsole(...)`. See
11+
* @object-ui/app-shell/src/console/types.ts for the full surface.
1612
*/
1713

1814
import { createConsole } from '@object-ui/app-shell';
1915
import { AuthProvider } from '@object-ui/auth';
2016
import { Toaster } from 'sonner';
21-
import {
22-
MyAppContent,
23-
MyHomeLayout,
24-
MyHomePage,
25-
MyOrganizationsLayout,
26-
MyOrganizationsPage,
27-
MyLoginPage,
28-
MyRegisterPage,
29-
MyForgotPasswordPage,
30-
} from './pages';
3117

3218
const SERVER_URL = import.meta.env.VITE_SERVER_URL || '';
3319
const AUTH_URL = `${SERVER_URL}/api/v1/auth`;
3420

35-
const ConsoleApp = createConsole({
36-
basename: '/',
37-
authPages: {
38-
Login: MyLoginPage,
39-
Register: MyRegisterPage,
40-
ForgotPassword: MyForgotPasswordPage,
41-
},
42-
homePage: { Layout: MyHomeLayout, Page: MyHomePage },
43-
organizationsPage: { Layout: MyOrganizationsLayout, Page: MyOrganizationsPage },
44-
AppContent: MyAppContent,
45-
});
21+
const ConsoleApp = createConsole({ basename: '/' });
4622

4723
export function App() {
4824
return (

‎apps/console-starter/src/pages.tsx‎

Lines changed: 0 additions & 115 deletions
This file was deleted.

‎apps/console/dev/__tests__/ActivityFeedFilters.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ vi.mock('lucide-react', () => ({
3434
Filter: () => <span>🔍</span>,
3535
}));
3636

37-
import { ActivityFeed, type ActivityItem } from '../../src/components/ActivityFeed';
37+
import { ActivityFeed, type ActivityItem } from '@object-ui/app-shell';
3838

3939
const sampleActivities: ActivityItem[] = [
4040
{ id: '1', type: 'create', objectName: 'Lead', user: 'Alice', description: 'Created lead Alpha', timestamp: new Date().toISOString() },

‎apps/console/dev/__tests__/AppHeader.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, it, expect, vi } from 'vitest';
22
import { render, screen, fireEvent } from '@testing-library/react';
33
import '@testing-library/jest-dom';
4-
import { AppHeader } from '../../src/components/AppHeader';
4+
import { AppHeader } from '@object-ui/app-shell';
55

66
// Mock react-router-dom
77
vi.mock('react-router-dom', () => ({

‎apps/console/dev/__tests__/AppSidebar.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { describe, it, expect, vi, beforeEach } from 'vitest';
22
import { render, screen, fireEvent, waitFor } from '@testing-library/react';
33
import '@testing-library/jest-dom';
44
import { MemoryRouter, Routes, Route } from 'react-router-dom';
5-
import { AppSidebar } from '../../src/components/AppSidebar';
5+
import { AppSidebar } from '@object-ui/app-shell';
66
import { SidebarProvider } from '@object-ui/components';
77

88
// --- Mocks ---

‎apps/console/dev/__tests__/BrowserSimulation.test.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ vi.mock('@object-ui/app-shell', async () => {
129129

130130
// --- 2. Import AppContent ---
131131
import { AppContent } from '../../src/App';
132-
import { NavigationProvider } from '../../src/context/NavigationContext';
133-
import { FavoritesProvider } from '../../src/context/FavoritesProvider';
132+
import { NavigationProvider } from '@object-ui/app-shell';
133+
import { FavoritesProvider } from '@object-ui/app-shell';
134134

135135
describe('Console Application Simulation', () => {
136136

‎apps/console/dev/__tests__/CalendarNestedConfig.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, it, expect, vi, beforeEach } from 'vitest';
22
import { render, screen, waitFor } from '@testing-library/react';
3-
import { ObjectView } from '../../src/components/ObjectView';
3+
import { ObjectView } from '@object-ui/app-shell';
44
import { SchemaRendererProvider } from '@object-ui/react';
55
import '@object-ui/plugin-grid';
66
import '@object-ui/plugin-kanban';

‎apps/console/dev/__tests__/ConsoleApp.test.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { render, screen, waitFor, fireEvent } from '@testing-library/react';
33
import '@testing-library/jest-dom';
44
import { AppContent } from '../../src/App';
55
import { MemoryRouter, Routes, Route } from 'react-router-dom';
6-
import { NavigationProvider } from '../../src/context/NavigationContext';
7-
import { FavoritesProvider } from '../../src/context/FavoritesProvider';
6+
import { NavigationProvider } from '@object-ui/app-shell';
7+
import { FavoritesProvider } from '@object-ui/app-shell';
88

99
// --- Mocks ---
1010

‎apps/console/dev/__tests__/DashboardDesignInteraction.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import { describe, it, expect, vi, beforeEach } from 'vitest';
1212
import { render, screen, fireEvent, act } from '@testing-library/react';
1313
import { MemoryRouter, Route, Routes } from 'react-router-dom';
14-
import { DashboardView } from '../../src/components/DashboardView';
14+
import { DashboardView } from '@object-ui/app-shell';
1515

1616
// Track props passed to mocked components
1717
const { rendererCalls, dashboardConfigCalls, widgetConfigCalls, mockRefresh } = vi.hoisted(() => ({

‎apps/console/dev/__tests__/DashboardViewSelection.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import { describe, it, expect, vi, beforeEach } from 'vitest';
99
import { render, screen, fireEvent, act } from '@testing-library/react';
1010
import { MemoryRouter, Route, Routes } from 'react-router-dom';
11-
import { DashboardView } from '../../src/components/DashboardView';
11+
import { DashboardView } from '@object-ui/app-shell';
1212

1313
// Track the latest props passed to mocked components
1414
const { rendererCalls, dashboardConfigCalls, widgetConfigCalls, mockRefresh } = vi.hoisted(() => ({

0 commit comments

Comments
 (0)