feat: migrate screener to FSD with first feature-slice (features/screener)
Some checks failed
CI / ci (pull_request) Failing after 2m49s
CI / ci (push) Failing after 2m36s

This commit is contained in:
Sergey Krylov 2026-06-20 21:23:08 +03:00
parent 2fc98341a6
commit 9b208481dd
12 changed files with 14 additions and 7 deletions

View File

@ -9,7 +9,7 @@ import { RegisterPage } from '@/pages/RegisterPage';
import { ProfilePage } from '@/pages/ProfilePage';
import { PortfoliosListPage } from '@/pages/portfolios/PortfoliosListPage';
import { PortfolioDetailPage } from '@/pages/portfolios/PortfolioDetailPage';
import { ScreenerPage } from '@/pages/screener/ScreenerPage';
import { ScreenerPage } from '@/pages/screener';
import { BrokerAccountsPage } from '@/pages/broker-accounts';
import { BrokerAccountLayout } from '@/entities/broker-account/ui/BrokerAccountLayout';
import { BrokerAccountOverviewPage } from '@/pages/broker-account';

View File

@ -0,0 +1,3 @@
export { useScreener } from './model/useScreener';
export { FilterPanel, FilterPanelShare, FilterPanelBond, ScreenerTable } from './ui';
export type { ScreenerQuery } from './api/screenerApi';

View File

@ -0,0 +1 @@
export { useScreener } from './useScreener';

View File

@ -1,7 +1,7 @@
import { useSearchParams } from 'react-router-dom';
import { useQuery } from '@tanstack/react-query';
import { getScreenerResults } from '../api/screener';
import type { ScreenerQuery } from '../api/screener';
import { getScreenerResults } from '../api/screenerApi';
import type { ScreenerQuery } from '../api/screenerApi';
export function useScreener() {
const [searchParams, setSearchParams] = useSearchParams();

View File

@ -1,5 +1,5 @@
import { useState } from 'react';
import type { ScreenerQuery } from '../../api/screener';
import type { ScreenerQuery } from '../api/screenerApi';
import { FilterPanelShare } from './FilterPanelShare';
import { FilterPanelBond } from './FilterPanelBond';

View File

@ -0,0 +1,4 @@
export { FilterPanel } from './FilterPanel';
export { FilterPanelShare } from './FilterPanelShare';
export { FilterPanelBond } from './FilterPanelBond';
export { ScreenerTable } from './ScreenerTable';

View File

@ -0,0 +1 @@
export { ScreenerPage } from './ui/ScreenerPage';

View File

@ -1,6 +1,4 @@
import { useScreener } from '../../hooks/useScreener';
import { FilterPanel } from '../../components/screener/FilterPanel';
import { ScreenerTable } from '../../components/screener/ScreenerTable';
import { useScreener, FilterPanel, ScreenerTable } from '@/features/screener';
export function ScreenerPage() {
const { params, result, isLoading, error, setFilters, setPage, setSort, resetFilters } =