Overlay query params
5 unresolved threads
5 unresolved threads
Description
Added overlayId
to query params. From now it's possible to reload the app, send url to other users and open last active overlays
PR includes changes introduced in !92 (merged)
Edited by Tadeusz Miesiąc
Merge request reports
Activity
Filter activity
requested review from @AdrianOrlow and @mateusz-winiarczyk
25 26 }, []); 27 28 export type OverlayIdAndOrder = { 29 idObject: number; 30 order: number; 31 }; 32 33 export type OverlayOrder = { 34 id: number; 35 order: number; 36 calculatedOrder: number; 37 index: number; 38 }; 39 40 /** function calculates order of the function based on "order" property in ovarlay data. */ 41 export const calculateOvarlaysOrder = ( 1 import { roundToTwoDiggits } from '@/utils/number/roundToTwoDiggits'; 2 3 type GetLatitudeCoordinatesProps = { 4 width: number; 5 nOverlays: number; 18 21 ); 19 22 20 const FIRST_ENTITY_INDEX = 0; 21 // TODO, improve selector when multioverlay algorithm comes in place 22 23 export const overlayBioEntitiesForCurrentModelSelector = createSelector( 23 24 overlayBioEntityDataSelector, 25 activeOverlaysIdSelector, 24 26 currentModelIdSelector, 25 // eslint-disable-next-line @typescript-eslint/ban-ts-comment 26 // @ts-ignore 27 (data, currentModelId) => data[Object.keys(data)[FIRST_ENTITY_INDEX]]?.[currentModelId] ?? [], // temporary solution untill multioverlay algorithm comes in place 27 (data, activeOverlaysIds, currentModelId) => { 28 const result: OverlayBioEntityRender[] = []; 29 30 activeOverlaysIds.forEach(overlayId => { 31 if (data[overlayId]?.[currentModelId]) { 17 20 state => state.overlaysId, 18 21 ); 19 22 20 const FIRST_ENTITY_INDEX = 0; 21 // TODO, improve selector when multioverlay algorithm comes in place 22 23 export const overlayBioEntitiesForCurrentModelSelector = createSelector( 23 24 overlayBioEntityDataSelector, 25 activeOverlaysIdSelector, 24 26 currentModelIdSelector, 25 // eslint-disable-next-line @typescript-eslint/ban-ts-comment 26 // @ts-ignore 27 (data, currentModelId) => data[Object.keys(data)[FIRST_ENTITY_INDEX]]?.[currentModelId] ?? [], // temporary solution untill multioverlay algorithm comes in place 27 (data, activeOverlaysIds, currentModelId) => { 28 const result: OverlayBioEntityRender[] = []; 29 30 activeOverlaysIds.forEach(overlayId => { - Resolved by Tadeusz Miesiąc
- Resolved by Tadeusz Miesiąc
mentioned in merge request !92 (merged)
added 1 commit
- 952151b0 - feat(overlays): added overlays to query params
added 13 commits
-
952151b0...9f047443 - 12 commits from branch
development
- 27ff5a17 - Merge branch 'development' into overlay-query-params
-
952151b0...9f047443 - 12 commits from branch
enabled an automatic merge when the pipeline for 27ff5a17 succeeds
mentioned in commit 0fde397d
Please register or sign in to reply