allow reasoning to flip

This commit is contained in:
Nate Kelley 2025-04-18 15:43:44 -06:00
parent 6e0b80203a
commit e423f1305a
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
3 changed files with 3 additions and 9 deletions

View File

@ -156,7 +156,6 @@ export const useXAxis = ({
| 'quarter' | 'quarter'
| 'year'; | 'year';
const format = DATE_FORMATS[unit]; const format = DATE_FORMATS[unit];
console.log('auto unit?', { unit, format });
return formatLabel(rawValue, { ...xColumnLabelFormat, dateFormat: format }); return formatLabel(rawValue, { ...xColumnLabelFormat, dateFormat: format });
} }
const res = formatLabel(rawValue, xColumnLabelFormat); const res = formatLabel(rawValue, xColumnLabelFormat);
@ -210,7 +209,6 @@ export const useXAxis = ({
const memoizedXAxisOptions: DeepPartial<ScaleChartOptions<'bar'>['scales']['x']> | undefined = const memoizedXAxisOptions: DeepPartial<ScaleChartOptions<'bar'>['scales']['x']> | undefined =
useMemo(() => { useMemo(() => {
if (isPieChart) return undefined; if (isPieChart) return undefined;
console.log('type', { type, timeUnit, derivedTimeUnit });
return { return {
type, type,
offset, offset,

View File

@ -37,7 +37,6 @@ export const useAppLayout = () => {
// Handle shallow routing (only updating query params) // Handle shallow routing (only updating query params)
if (options?.shallow && targetPathname === currentPathname) { if (options?.shallow && targetPathname === currentPathname) {
console.log('shallow routing', targetPathname, currentPathname);
return new Promise((resolve) => { return new Promise((resolve) => {
const params = getQueryParamsFromPath(targetPath); const params = getQueryParamsFromPath(targetPath);
onChangeQueryParams(params, false); onChangeQueryParams(params, false);

View File

@ -66,12 +66,9 @@ export const useAutoChangeLayout = ({
chatId chatId
) { ) {
previousLastMessageId.current = lastMessageId; previousLastMessageId.current = lastMessageId;
// onSetSelectedFile({ id: lastMessageId, type: 'reasoning', versionNumber: undefined });
onChangePage({ onSetSelectedFile({ id: lastMessageId, type: 'reasoning', versionNumber: undefined });
route: BusterRoutes.APP_CHAT_ID_REASONING_ID,
chatId,
messageId: lastMessageId
});
console.log('FLIP TO REASONING!', lastMessageId); console.log('FLIP TO REASONING!', lastMessageId);
} }