mirror of https://github.com/buster-so/buster.git
allow reasoning to flip
This commit is contained in:
parent
6e0b80203a
commit
e423f1305a
|
@ -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,
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue