-
Notifications
You must be signed in to change notification settings - Fork 101
LF-4672 (1) - Rtk upgrade/locations rebase #4083
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: integration
Are you sure you want to change the base?
Changes from all commits
ab5aea6
c3d4b89
c2c9767
60f6634
95b3c2b
60b48e2
3d5153c
7bcf861
9b6f131
db01e35
08b03b0
c169624
0832a27
d741b3c
259b661
29655f2
513b3aa
0805f47
e4845a0
5c65007
d394d45
f874135
5e0e32f
e740bb5
3b098af
c7f2a85
6105f7a
aee1aee
e189fcf
81b680b
0e72fee
5e183e4
0106366
2e9c8a6
81dfe54
707f651
84ba2d0
25f1f6e
27882d6
1412a48
7894258
94224e3
67ca713
e732950
0fe5c88
cf6652a
0e19016
3b358e8
21a2714
b112bc0
a58cca4
bf4d8ab
84c16f6
7e44973
769124a
28e4a20
aabd0c6
8d8ab5c
b071fd9
86087f6
3b1ef95
888e380
e0ba2ae
667a2dc
c3795ba
6dea925
04204f3
4a8d819
a10bc3e
4c74a6e
79f4997
9b622e0
e234f98
868c56f
ac1797f
6c1226f
6b87e2e
bb818fd
a8bed05
b386bb8
a339822
dbbda32
3177ef2
040e20a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,6 +20,7 @@ import { ReactComponent as Gate } from '../../assets/images/farmMapFilter/Gate.s | |
| import { ReactComponent as SoilSampleLocation } from '../../assets/images/farmMapFilter/SoilSampleLocation.svg'; | ||
| import { ReactComponent as WaterValve } from '../../assets/images/farmMapFilter/WaterValve.svg'; | ||
| import { ReactComponent as Sensor } from '../../assets/images/farmMapFilter/Sensor.svg'; | ||
| import { ReactComponent as SensorArray } from '../../assets/images/farmMapFilter/SensorArray.svg'; | ||
| import { useTranslation } from 'react-i18next'; | ||
| import PropTypes from 'prop-types'; | ||
| import { locationEnum } from '../../containers/Map/constants'; | ||
|
|
@@ -142,6 +143,11 @@ export default function MapDrawer({ | |
| icon: () => <Sensor style={{ transform: 'translate(-5px, 5px)' }} />, | ||
| key: locationEnum.sensor, | ||
| }, | ||
| { | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Part of the sensors vs sensor array being filtered separately discussion with Loic. |
||
| name: t('FARM_MAP.MAP_FILTER.SENSOR_ARRAY'), | ||
| icon: () => <SensorArray />, | ||
| key: locationEnum.sensor_array, | ||
| }, | ||
| { | ||
| name: t('FARM_MAP.MAP_FILTER.SOIL_SAMPLE_LOCATION'), | ||
| icon: () => <SoilSampleLocation />, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| /* | ||
| * Copyright 2025 LiteFarm.org | ||
| * This file is part of LiteFarm. | ||
| * | ||
| * LiteFarm is free software: you can redistribute it and/or modify | ||
| * it under the terms of the GNU General Public License as published by | ||
| * the Free Software Foundation, either version 3 of the License, or | ||
| * (at your option) any later version. | ||
| * | ||
| * LiteFarm is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU General Public License for more details, see <https://www.gnu.org/licenses/>. | ||
| */ | ||
|
|
||
| import { useTranslation } from 'react-i18next'; | ||
| import styles from './styles.module.scss'; | ||
| import { Main } from '../../Typography'; | ||
| import { Loading } from '../../Loading/Loading'; | ||
| import { Dialog } from '@mui/material'; | ||
| import { makeStyles } from '@mui/styles'; | ||
|
|
||
| const useStyles = makeStyles((_theme) => ({ | ||
| paper: (_props) => ({ | ||
| overflow: 'inherit', | ||
| }), | ||
| })); | ||
|
|
||
| export default function LoadingMapModal({ isOpen }: { isOpen: boolean }) { | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This temporary component will be deleted with part 2 where I implement Loic's loading design. |
||
| const { t } = useTranslation(); | ||
| const classes = useStyles(); | ||
| return ( | ||
| <Dialog PaperProps={{ className: classes.paper }} open={isOpen} scroll="paper"> | ||
| <div className={styles.container}> | ||
| <Loading /> | ||
| <Main>{t('FARM_MAP.ASSETS_LOADING')}</Main> | ||
| </div> | ||
| </Dialog> | ||
| ); | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| /* | ||
| * Copyright 2025 LiteFarm.org | ||
| * This file is part of LiteFarm. | ||
| * | ||
| * LiteFarm is free software: you can redistribute it and/or modify | ||
| * it under the terms of the GNU General Public License as published by | ||
| * the Free Software Foundation, either version 3 of the License, or | ||
| * (at your option) any later version. | ||
| * | ||
| * LiteFarm is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| * GNU General Public License for more details, see <https://www.gnu.org/licenses/>. | ||
| */ | ||
|
|
||
| .container { | ||
| display: flex; | ||
| // align-items: center; | ||
| flex-direction: column; | ||
| max-width: 312px; | ||
| width: 90vw; | ||
| // height: 320px; | ||
| background: #fafafd; | ||
| border-radius: 7.05466px; | ||
| position: relative; | ||
| padding: 24px; | ||
| } | ||
|
|
||
| .button { | ||
| margin-top: 24px; | ||
| box-shadow: 0px 2px 4px rgba(102, 115, 138, 0.3); | ||
| display: flex; | ||
| flex-direction: row; | ||
| justify-content: center; | ||
| align-items: center; | ||
|
|
||
| .downloadSvg { | ||
| stroke: var(--labels); | ||
| margin-right: 4px; | ||
| } | ||
|
|
||
| .mailSvg { | ||
| stroke: var(--labels); | ||
| margin-right: 8px; | ||
| font-size: 18px; | ||
| } | ||
| } | ||
|
|
||
| .button:active { | ||
| box-shadow: none; | ||
| color: var(--grey900); | ||
| border-color: var(--grey600); | ||
|
|
||
| .svg { | ||
| stroke: var(--grey900); | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was a duplicated part of a selector migration, also locationEnum should be phased out for typescript versions.