Merge branch 'staging' into big-nate-bus-1647-make-report-top-level-button

This commit is contained in:
Nate Kelley 2025-08-07 15:12:14 -06:00
commit 5fcf3c85c4
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
4 changed files with 26 additions and 16 deletions

View File

@ -11,6 +11,7 @@ export async function getReportHandler(
): Promise<GetReportIndividualResponse> { ): Promise<GetReportIndividualResponse> {
const report = await getReport({ reportId, userId: user.id }); const report = await getReport({ reportId, userId: user.id });
try {
const platejsResult = await markdownToPlatejs(report.content); const platejsResult = await markdownToPlatejs(report.content);
if (platejsResult.error) { if (platejsResult.error) {
@ -28,6 +29,12 @@ export async function getReportHandler(
}; };
return response; return response;
} catch (error) {
console.error('Error converting markdown to PlateJS:', error);
throw new HTTPException(500, {
message: 'Error converting markdown',
});
}
} }
const app = new Hono() const app = new Hono()

View File

@ -1,5 +1,5 @@
import type { DraggableAttributes, DraggableSyntheticListeners } from '@dnd-kit/core'; import type { DraggableAttributes, DraggableSyntheticListeners } from '@dnd-kit/core';
import React, { createContext } from 'react'; import { createContext } from 'react';
interface Context { interface Context {
attributes: DraggableAttributes; attributes: DraggableAttributes;

View File

@ -1,11 +1,10 @@
'use client'; 'use client';
import React, { useMemo } from 'react'; import React, { useMemo,useContext } from 'react';
import { useMemoizedFn } from '@/hooks'; import { useMemoizedFn } from '@/hooks';
import { useDashboardMetric } from './useDashboardMetric'; import { useDashboardMetric } from './useDashboardMetric';
import { assetParamsToRoute } from '@/lib/assets'; import { assetParamsToRoute } from '@/lib/assets';
import { MetricCard } from '@/components/ui/metric'; import { MetricCard } from '@/components/ui/metric';
import { useContext } from 'use-context-selector';
import { SortableItemContext } from '@/components/ui/grid/SortableItemContext'; import { SortableItemContext } from '@/components/ui/grid/SortableItemContext';
import { useMetricCardThreeDotMenuItems } from './metricCardThreeDotMenuItems'; import { useMetricCardThreeDotMenuItems } from './metricCardThreeDotMenuItems';

View File

@ -16,6 +16,10 @@ const DEFAULT_OPTIONS = {
anthropic: { anthropic: {
disableParallelToolCalls: true, disableParallelToolCalls: true,
}, },
openai: {
disableParallelToolCalls: true,
reasoningEffort: 'minimal',
},
}, },
}; };