Skip to content

New saved place UI #1388

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

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open

New saved place UI #1388

wants to merge 6 commits into from

Conversation

amy-corson-ibigroup
Copy link
Contributor

@amy-corson-ibigroup amy-corson-ibigroup commented May 7, 2025

Description:

  • Update the Saved Places UI to more closely match the saved trips UI
  • Remove delete button and move delete function into edit page
  • Add toast to confirm place has been deleted (provides status update to AT users)

PR Checklist:

  • Does the code follow accessibility standards (WCAG 2.1 AA Compliant)?
  • Are all languages supported (Internationalization/Localization)?
  • Are appropriate Typescript types implemented?
Before After
image image

Copy link
Collaborator

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks much cleaner!

@@ -12,9 +12,10 @@ import {
getPlaceMainText
} from '../../../util/user'
import { isBlank } from '../../../util/ui'
import { Plus } from '@styled-icons/fa-solid'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import { Plus } from '@styled-icons/fa-solid'
import { Plus } from '@styled-icons/fa-solid/Plus'

Help! Our bundle size!

@@ -12,6 +12,7 @@ import { injectIntl, FormattedMessage } from 'react-intl'
import { connect } from 'react-redux'
import styled from 'styled-components'
import * as yup from 'yup'
import { Trash } from '@styled-icons/fa-solid'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import { Trash } from '@styled-icons/fa-solid'
import { Trash } from '@styled-icons/fa-solid/Trash'

aaaaaaa

): void {
toastSuccess(
getPlaceMainText(place, intl),
intl.formatMessage({
id: 'actions.user.placeRemembered'
id: `actions.user.place${change}`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember there was discussion a while ago about avoiding dynamic i18n string generation unless we really couldn't avoid it. Maybe a compromise could be

Suggested change
id: `actions.user.place${change}`
id: `actions.user.place.${change}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants