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,23 +11,30 @@ export async function getReportHandler(
|
|||
): Promise<GetReportIndividualResponse> {
|
||||
const report = await getReport({ reportId, userId: user.id });
|
||||
|
||||
const platejsResult = await markdownToPlatejs(report.content);
|
||||
try {
|
||||
const platejsResult = await markdownToPlatejs(report.content);
|
||||
|
||||
if (platejsResult.error) {
|
||||
console.error('Error converting markdown to PlateJS:', platejsResult.error);
|
||||
if (platejsResult.error) {
|
||||
console.error('Error converting markdown to PlateJS:', platejsResult.error);
|
||||
throw new HTTPException(500, {
|
||||
message: 'Error converting markdown to PlateJS',
|
||||
});
|
||||
}
|
||||
|
||||
const content = platejsResult.elements ?? [];
|
||||
|
||||
const response: GetReportIndividualResponse = {
|
||||
...report,
|
||||
content,
|
||||
};
|
||||
|
||||
return response;
|
||||
} catch (error) {
|
||||
console.error('Error converting markdown to PlateJS:', error);
|
||||
throw new HTTPException(500, {
|
||||
message: 'Error converting markdown to PlateJS',
|
||||
message: 'Error converting markdown',
|
||||
});
|
||||
}
|
||||
|
||||
const content = platejsResult.elements ?? [];
|
||||
|
||||
const response: GetReportIndividualResponse = {
|
||||
...report,
|
||||
content,
|
||||
};
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
const app = new Hono()
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import type { DraggableAttributes, DraggableSyntheticListeners } from '@dnd-kit/core';
|
||||
import React, { createContext } from 'react';
|
||||
import { createContext } from 'react';
|
||||
|
||||
interface Context {
|
||||
attributes: DraggableAttributes;
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
'use client';
|
||||
|
||||
import React, { useMemo } from 'react';
|
||||
import React, { useMemo,useContext } from 'react';
|
||||
import { useMemoizedFn } from '@/hooks';
|
||||
import { useDashboardMetric } from './useDashboardMetric';
|
||||
import { assetParamsToRoute } from '@/lib/assets';
|
||||
import { MetricCard } from '@/components/ui/metric';
|
||||
import { useContext } from 'use-context-selector';
|
||||
import { SortableItemContext } from '@/components/ui/grid/SortableItemContext';
|
||||
import { useMetricCardThreeDotMenuItems } from './metricCardThreeDotMenuItems';
|
||||
|
||||
|
|
|
@ -16,6 +16,10 @@ const DEFAULT_OPTIONS = {
|
|||
anthropic: {
|
||||
disableParallelToolCalls: true,
|
||||
},
|
||||
openai: {
|
||||
disableParallelToolCalls: true,
|
||||
reasoningEffort: 'minimal',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue