Skip to content
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

(BSR) fix(venueMap): filters modal presentation #7305

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

mmeissonnier-pass
Copy link
Contributor

@mmeissonnier-pass mmeissonnier-pass commented Nov 29, 2024

Pour faire en sorte de faire apparaitre la modale react-navigation comme les autres modales react-native

Flakiness

If I had to re-run tests in the CI due to flakiness, I add the incident on Notion

Checklist

I have:

  • Made sure my feature is working on web.
  • Made sure my feature is working on mobile (depending on relevance : real or virtual devices)
  • Written unit tests native (and web when implementation is different) for my feature.
  • Added a screenshot for UI tickets or deleted the screenshot section if no UI change
  • If my PR is a bugfix, I add the link of the "résolution de problème sur le bug" on Notion
  • I am aware of all the best practices and respected them.

Screenshots

Android

Kapture.2024-11-29.at.09.40.26.mp4

iOS

Kapture.2024-11-29.at.14.58.13.mp4

Best Practices

Click to expand
  • Remove non-null assertion operators (just like other type assertions, this doesn’t change the runtime behavior of your code, so it’s important to only use ! when you know that the value can’t be null or undefined).

Test specific:

  • When you see a local variable that is over-written in every test, mock it.
  • Prefer user to fireEvent.

@mmeissonnier-pass mmeissonnier-pass force-pushed the fix/BSR-filters-modal-presentation branch 2 times, most recently from d7fd441 to 83b5058 Compare November 29, 2024 15:03
@mmeissonnier-pass mmeissonnier-pass marked this pull request as ready for review November 29, 2024 16:20
src/ui/components/modals/AppModal.tsx Show resolved Hide resolved

export const VenueMapFiltersStackNavigator = () => {
useWhiteStatusBar()
Copy link
Contributor

Choose a reason for hiding this comment

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

Pour ma compréhension ça fait quoi ça ?

Copy link
Contributor Author

@mmeissonnier-pass mmeissonnier-pass Nov 29, 2024

Choose a reason for hiding this comment

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

C'est un hook qui force la status bar en theme light quand le screen est focus et qui la remet en theme dark quand on sort de ce même screen.

import { StackNavigationOptions, TransitionPresets, TransitionSpecs } from '@react-navigation/stack'

export const FILTERS_MODAL_NAV_OPTIONS: StackNavigationOptions = {
...TransitionPresets.ModalSlideFromBottomIOS,
Copy link
Contributor

Choose a reason for hiding this comment

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

C'est Ok pour Android aussi ?

Copy link
Contributor Author

@mmeissonnier-pass mmeissonnier-pass Nov 29, 2024

Choose a reason for hiding this comment

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

J'ai fait quelques tests de mon côté, ça me paraissait correct. Mais 2 avis valent mieux qu'un 😃

Copy link
Contributor

Choose a reason for hiding this comment

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

C'est dans cette partie que tu as réussi à te débarrasser du petit espace iOS ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mmeissonnier-pass mmeissonnier-pass force-pushed the fix/BSR-filters-modal-presentation branch 2 times, most recently from b96a6dd to 889b1a1 Compare November 29, 2024 19:25
@mmeissonnier-pass mmeissonnier-pass force-pushed the fix/BSR-filters-modal-presentation branch from 889b1a1 to 97946ad Compare December 1, 2024 09:43
Copy link

sonarqubecloud bot commented Dec 1, 2024

@mmeissonnier-pass mmeissonnier-pass merged commit a7e8a99 into master Dec 2, 2024
53 checks passed
@mmeissonnier-pass mmeissonnier-pass deleted the fix/BSR-filters-modal-presentation branch December 2, 2024 08:51
import { StackNavigationOptions, TransitionPresets, TransitionSpecs } from '@react-navigation/stack'

export const FILTERS_MODAL_NAV_OPTIONS: StackNavigationOptions = {
...TransitionPresets.ModalSlideFromBottomIOS,
Copy link
Contributor

Choose a reason for hiding this comment

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

C'est dans cette partie que tu as réussi à te débarrasser du petit espace iOS ?

@@ -29,8 +28,6 @@ export const SearchCustomModalHeader: React.FC<Props> = ({
shouldDisplayCloseButton,
onClose,
}) => {
useWhiteStatusBar()
Copy link
Contributor

Choose a reason for hiding this comment

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

Le fait que tu retires l'utilisation du hook ici n'a pas d'impact sur la recherche ?

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.

4 participants