-
Notifications
You must be signed in to change notification settings - Fork 387
Redesign Add favorite 2 #1715
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
Merged
Redesign Add favorite 2 #1715
Changes from 3 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
a532bd6
Add ChevronItem
alisa911 64fc993
Feat guard WptEditPanel against unsaved changes exit
alisa911 369a52b
Add test 87
alisa911 ee2cc89
Add exit guard and blocker for WptEditPanel
alisa911 2bd89b8
Fix hasAddChanges description comparison
alisa911 4a702ac
Fix helper text alignment in FavoriteName
alisa911 c6fdd9c
Prevent password manager autocomplete on Name and Address fields
alisa911 14d005d
Fix left padding alignment in Name and Address fields
alisa911 107caa2
Fix WptEditPanel input padding, label alignment and save button spacing
alisa911 85883f1
Center map on pin when WptEditPanel and secondary drawer open
alisa911 1ab5dd9
Fix Folder title in WptEditPanel
alisa911 a9c56d7
Refactor extract AppRadio
alisa911 79f5110
Fix folder item height
alisa911 90ba937
Add top level item and medium text for root folders in AddFolderDialog
alisa911 627e1a3
Fix folder dropdown positioning
alisa911 31d02c7
Fix crash
alisa911 d491760
Add localStorage color palette fallback for free users
alisa911 4a2ac13
Add new poi icons cach
alisa911 a2e338a
Fix test
alisa911 955de58
Refactoring
alisa911 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| import React from 'react'; | ||
| import { Button, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle } from '@mui/material'; | ||
| import { useTranslation } from 'react-i18next'; | ||
| import dialogStyles from '../dialog.module.css'; | ||
|
|
||
| export default function ExitWithoutSavingDialog({ open, onKeepEditing, onExit }) { | ||
| const { t } = useTranslation(); | ||
|
|
||
| return ( | ||
| <Dialog className={dialogStyles.dialog} open={open} onClose={onKeepEditing}> | ||
| <DialogTitle className={dialogStyles.title}>{t('web:exit_without_saving')}</DialogTitle> | ||
| <DialogContent className={dialogStyles.content}> | ||
| <DialogContentText className={dialogStyles.contentText}> | ||
| {t('web:all_changes_will_be_lost')} | ||
| </DialogContentText> | ||
| </DialogContent> | ||
| <DialogActions> | ||
| <Button id="se-exit-dialog-keep-editing" className={dialogStyles.button} onClick={onKeepEditing}> | ||
| {t('web:keep_editing')} | ||
| </Button> | ||
| <Button id="se-exit-dialog-exit" className={dialogStyles.button} onClick={onExit}> | ||
| {t('web:shared_string_exit')} | ||
| </Button> | ||
| </DialogActions> | ||
| </Dialog> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| import React from 'react'; | ||
| import { ListItemIcon, ListItemText, MenuItem, Typography } from '@mui/material'; | ||
| import { ReactComponent as ChevronIcon } from '../../../assets/icons/ic_action_arrow_up.svg'; | ||
| import styles from './items.module.css'; | ||
|
|
||
| export default function ChevronItem({ id, icon = null, title, value, onClick, disabled = false }) { | ||
| return ( | ||
| <MenuItem id={id} className={`${styles.item} ${styles.itemChevron}`} onClick={onClick} disabled={disabled}> | ||
| {icon && <ListItemIcon className={styles.icon}>{icon}</ListItemIcon>} | ||
| <ListItemText> | ||
| <Typography className={styles.mainText}>{title}</Typography> | ||
| </ListItemText> | ||
| <div className={styles.itemChevronRight}> | ||
| {value !== undefined && <Typography className={styles.addInfo}>{value}</Typography>} | ||
| <ChevronIcon className={styles.sectionRowChevron} /> | ||
| </div> | ||
| </MenuItem> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.