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

View File

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

View File

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