Skip to content
Snippets Groups Projects

Feature/project info publications list submap select

2 unresolved threads

Description

Introduced submap selector

image

How it works

  • on select it triggers fetching publications
  • it sets value in the store for selected modelId
  • if any other action fires "fetchPublications" it's going to use modelId from the store

Merge request reports

Merge request pipeline #85326 passed

Merge request pipeline passed for 6997074a

Test coverage 91.31% (-1.55%) from 1 job

Merged by Tadeusz MiesiącTadeusz Miesiąc 1 year ago (Feb 6, 2024 4:34pm UTC)

Loading

Pipeline #85339 passed

Pipeline passed for dd0d629f on development

Test coverage 91.31% (-1.55%) from 1 job

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
77 };
78
79 export const PublicationsTable = ({ data }: PublicationsTableProps): JSX.Element => {
80 const dispatch = useAppDispatch();
81 const pagesCount = useAppSelector(totalSizeSelector);
82 const isPublicationsLoading = useAppSelector(isLoadingSelector);
83 const sortColumn = useAppSelector(sortColumnSelector);
84 const sortOrder = useAppSelector(sortOrderSelector);
85 const selectedId = useAppSelector(selectedModelIdSelector);
86
87 const reduxPagination = useAppSelector(paginationSelector);
88 const [pagination, setPagination] = useState(reduxPagination);
89
90 // useEffect(() => {
91 // dispatch(getPublications({ page: pagination.pageIndex, length: DEFAULT_PAGE_SIZE }));
92 // }, [pagination, dispatch]);
  • 1 import { useEffect, useState } from 'react';
    2
    3 const DEFAULT_DELAY = 500;
    4
    5 export const useDebounce = <T>(value: T, delay?: number): T => {
  • LGTM

    RFC: please use use-debounce package instead of internal implementation

  • Adrian Orłów approved this merge request

    approved this merge request

  • Tadeusz Miesiąc added 2 commits

    added 2 commits

    • be986a76 - feat(publications): search bar && layout modal
    • 1a316561 - feat(publications): pr fixes

    Compare with previous version

  • Tadeusz Miesiąc added 30 commits

    added 30 commits

    • 1a316561...0573eb9b - 29 commits from branch development
    • 6997074a - Merge branch 'development' into feature/project-info-publications-list-submap-select

    Compare with previous version

  • Tadeusz Miesiąc mentioned in commit dd0d629f

    mentioned in commit dd0d629f

  • Please register or sign in to reply
    Loading