mirror of https://github.com/buster-so/buster.git
Merge branch 'staging' into big-nate-bus-1647-make-report-top-level-button
This commit is contained in:
commit
5fcf3c85c4
|
@ -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()
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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';
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,10 @@ const DEFAULT_OPTIONS = {
|
||||||
anthropic: {
|
anthropic: {
|
||||||
disableParallelToolCalls: true,
|
disableParallelToolCalls: true,
|
||||||
},
|
},
|
||||||
|
openai: {
|
||||||
|
disableParallelToolCalls: true,
|
||||||
|
reasoningEffort: 'minimal',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue