Skip to content

Commit 678d6b3

Browse files
Copilothotlong
andauthored
fix(ci): export missing types + fix app-shell tsc + report viewer color assertion
Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/dd1e7dec-72db-4246-90b2-bbecdf6a8c3f Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent b9dbdc9 commit 678d6b3

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

packages/app-shell/src/layout/ConsoleFloatingChatbot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export default function ConsoleFloatingChatbot({
201201
React.useEffect(() => {
202202
if (!activeAgent && agents.length > 0) {
203203
const preferred = defaultAgentProp ?? envDefaultAgent;
204-
const match = preferred && agents.find((a) => a.name === preferred);
204+
const match = preferred ? agents.find((a) => a.name === preferred) : undefined;
205205
setActiveAgent((match ?? agents[0]).name);
206206
}
207207
}, [agents, activeAgent, defaultAgentProp, envDefaultAgent]);

packages/plugin-report/src/__tests__/ReportViewer.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ describe('ReportViewer', () => {
408408
const cells = container.querySelectorAll('td');
409409
const wonCell = Array.from(cells).find((td) => td.textContent === 'Won');
410410
expect(wonCell).toBeDefined();
411-
expect(wonCell?.style.backgroundColor).toBe('#bbf7d0');
411+
expect(wonCell?.style.backgroundColor).toBe('rgb(187, 247, 208)');
412412

413413
// The cell with 'Lost' should NOT have background styling
414414
const lostCell = Array.from(cells).find((td) => td.textContent === 'Lost');

packages/types/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,11 @@ export type {
271271
AggregateParams,
272272
AggregateResult,
273273
MutationEvent,
274+
ExportJobStatus,
275+
ExportJobFormat,
276+
CreateExportJobRequest,
277+
CreateExportJobResult,
278+
ExportJobProgressInfo,
274279
} from './data';
275280

276281
// ============================================================================

0 commit comments

Comments
 (0)