Merge branch 'api/api-v1.21.0-origin' into patch/api-v1.21.0

This commit is contained in:
Taha Yassine Kraiem 2025-04-23 15:02:42 +01:00
commit e78eac49fa
5 changed files with 24 additions and 5 deletions

View file

@ -6,7 +6,7 @@ import { CARD_LIST, CARD_CATEGORIES, CardType } from './ExampleCards';
import { useStore } from 'App/mstore';
import Option from './Option';
import CardsLibrary from 'Components/Dashboard/components/DashboardList/NewDashModal/CardsLibrary';
import { FUNNEL } from 'App/constants/card';
import { FUNNEL, TABLE } from 'App/constants/card';
import { useHistory } from 'react-router';
import { FilterKey } from 'Types/filter/filterType';
import FilterSeries from '@/mstore/types/filterSeries';
@ -72,9 +72,18 @@ const SelectCard: React.FC<SelectCardProps> = (props: SelectCardProps) => {
name: "Series 1",
filter: {
filters: selectedCard.filters,
eventsOrder: selectedCard.cardType === TABLE ? 'and' : 'then'
}
})
];
} else if (selectedCard.cardType === TABLE) {
cardData.series = [new FilterSeries().fromJson({
name: "Series 1",
filter: {
filters: [],
eventsOrder: 'and'
}
})];
}
if (selectedCard.cardType === FUNNEL) {

View file

@ -11,7 +11,7 @@ import useIsMounted from 'App/hooks/useIsMounted';
import AnimatedSVG, {ICONS} from 'Shared/AnimatedSVG/AnimatedSVG';
import {numberWithCommas} from 'App/utils';
import {HEATMAP} from 'App/constants/card';
import {Tag} from 'antd';
import { Tag, Typography } from 'antd';
interface Props {
className?: string;
@ -75,7 +75,7 @@ function WidgetSessions(props: Props) {
setLoading(false);
});
};
const fetchClickmapSessions = (customFilters: Record<string, any>) => {
sessionStore.getSessions(customFilters).then((data) => {
setData([{...data, seriesId: 1, seriesName: 'Clicks'}]);
@ -148,7 +148,13 @@ function WidgetSessions(props: Props) {
</div>
{hasFilters && widget.metricType === 'table' &&
<div className="py-2"><Tag closable onClose={clearFilters}>{filterText}</Tag></div>}
<div className="py-2">
<Tag closable onClose={clearFilters} className="inline-flex">
<Typography.Text className="max-w-80 overflow-hidden text-ellipsis inline-block">
{filterText}
</Typography.Text>
</Tag>
</div>}
</div>
<div className="flex items-center gap-4">

View file

@ -194,6 +194,9 @@ const FilterAutoComplete: React.FC<Props> = ({
const data = await searchService.fetchAutoCompleteValues({ ..._params, q: inputValue });
const _options = data.map((i: any) => ({ value: i.value, label: i.value })) || [];
setOptions(_options);
if (inputRef.current === document.activeElement) {
setMenuIsOpen(true);
}
callback(_options);
} catch (e) {
throw new Error(e);

View file

@ -20,6 +20,7 @@ export default class FilterStore {
}
setTopValues = (key: string, values: TopValue[]) => {
if(!Array.isArray(values)) return;
this.topValues[key] = values?.filter((value) => value !== null && value.value !== '');
};

View file

@ -18,4 +18,4 @@ version: 0.1.10
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
AppVersion: "v1.21.31"
AppVersion: "v1.21.32"