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

Zeego MintsFilter migration #6126

Closed
wants to merge 6 commits into from
Closed

Zeego MintsFilter migration #6126

wants to merge 6 commits into from

Conversation

walmat
Copy link
Contributor

@walmat walmat commented Sep 20, 2024

Fixes APP-1510
Fixes APP-1797
Fixes APP-1691

What changed (plus any additional context for devs)

There is a lot of noise in this PR because of the need for Expo Modules for react-native-ios-context-menu.

This PR adds the initial work of implementing Zeego dropdown menus. We're doing this to provide consistency between iOS and Android when it comes to dropdown menus. Right now we're using ActionSheets a lot on Android and incrementally we are hoping to reduce that number down to zero.

For this PR, we are adding one entry point in the MintsFilter Menu component.

Screen recordings / screenshots

iOS

Screenshot 2024-09-24 at 4 48 33 PM

Android

// coming soon

What to test

test that all other context menus are unaffected and the mints filter still works

Copy link

linear bot commented Sep 20, 2024

Copy link

socket-security bot commented Sep 20, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@babel/[email protected] None 0 107 kB nicolo-ribaudo
npm/@babel/[email protected] None 0 78.5 kB nicolo-ribaudo
npm/@expo/[email protected] filesystem 0 139 kB philpl
npm/@expo/[email protected] environment, filesystem, network, shell, unsafe 0 8.7 MB brentvatne
npm/@expo/[email protected] None 0 55 kB wschurman
npm/@expo/[email protected] filesystem 0 1.1 MB brentvatne
npm/@expo/[email protected] None 0 48.1 kB brentvatne
npm/@expo/[email protected] environment, filesystem 0 151 kB brentvatne
npm/@expo/[email protected] environment, filesystem, shell 0 218 kB philpl
npm/@expo/[email protected] environment, filesystem 0 29.6 kB brentvatne
npm/@expo/[email protected] filesystem 0 76.2 kB brentvatne
npm/@expo/[email protected] environment, eval, filesystem 0 275 kB brentvatne
npm/@expo/[email protected] None 0 16.2 kB bycedric
npm/@expo/[email protected] environment, filesystem, network, shell 0 98.8 kB brentvatne
npm/@expo/[email protected] filesystem 0 381 kB brentvatne
npm/@expo/[email protected] None 0 36.2 kB expoadmin
npm/@expo/[email protected] None 0 5.76 MB brentvatne
npm/@expo/[email protected] environment, filesystem 0 307 kB evanbacon
npm/@floating-ui/[email protected] None 0 213 kB atomiks, fezvrasta
npm/@floating-ui/[email protected] None 0 160 kB atomiks, fezvrasta
npm/@floating-ui/[email protected] None 0 61.5 kB atomiks
npm/@floating-ui/[email protected] None 0 64 kB atomiks
npm/@radix-ui/[email protected] None 0 4.96 kB vladmoroz
npm/@radix-ui/[email protected] None 0 9.2 kB vladmoroz
npm/@radix-ui/[email protected] None 0 26.2 kB vladmoroz
npm/@radix-ui/[email protected] None 0 7.78 kB vladmoroz
npm/@radix-ui/[email protected] None 0 108 kB vladmoroz
npm/@radix-ui/[email protected] None 0 28.2 kB vladmoroz
npm/@radix-ui/[email protected] None 0 7.85 kB vladmoroz
npm/@radix-ui/[email protected] None 0 66.1 kB vladmoroz
npm/@radix-ui/[email protected] None 0 106 kB vladmoroz
npm/@radix-ui/[email protected] None 0 9.76 kB vladmoroz
npm/@radix-ui/[email protected] None 0 60.3 kB vladmoroz
npm/@radix-ui/[email protected] None 0 6.42 kB vladmoroz
npm/@radix-ui/[email protected] None 0 246 kB vladmoroz
npm/@radix-ui/[email protected] None 0 75.3 kB vladmoroz
npm/@radix-ui/[email protected] None 0 10.3 kB vladmoroz
npm/@radix-ui/[email protected] None 0 33.2 kB vladmoroz
npm/@radix-ui/[email protected] None 0 20.9 kB vladmoroz
npm/@radix-ui/[email protected] None 0 64.2 kB vladmoroz
npm/@radix-ui/[email protected] None 0 25.4 kB vladmoroz
npm/@radix-ui/[email protected] None 0 6.12 kB vladmoroz
npm/@radix-ui/[email protected] None 0 12.3 kB vladmoroz
npm/@radix-ui/[email protected] None 0 7.53 kB vladmoroz
npm/@radix-ui/[email protected] None 0 5.82 kB vladmoroz
npm/@radix-ui/[email protected] None 0 6.58 kB vladmoroz
npm/@radix-ui/[email protected] None 0 11.4 kB vladmoroz
npm/@radix-ui/[email protected] None 0 16.1 kB vladmoroz
npm/@react-native-menu/[email protected] None 0 163 kB naturalclar
npm/@segment/[email protected] None 0 133 kB f2prateek
npm/@urql/[email protected] environment, network 0 400 kB npm-urql
npm/@urql/[email protected] environment 0 39.6 kB npm-urql
npm/[email protected] None 0 22.2 kB kevinbeaty
npm/[email protected] environment 0 3.57 kB linusu
npm/[email protected] None 0 13.7 kB leerobinson
npm/[email protected] None 0 30.6 kB kashey
npm/[email protected] None 0 223 B sugarpirate
npm/[email protected] None 0 17.2 kB necolas
npm/[email protected] environment 0 77.1 kB brentvatne
npm/[email protected] environment, shell 0 287 kB exiasr
npm/[email protected] None 0 53.4 kB joeferner
npm/[email protected] None 0 2.7 kB juliangruber
npm/[email protected] None 0 15.9 kB pvorb
npm/[email protected] None 0 120 kB sindresorhus
npm/[email protected] None 0 3.48 kB sindresorhus
npm/[email protected] None 0 49.6 kB chadhietala
npm/[email protected] None 0 14.9 kB silverwind
npm/[email protected] None 0 4.45 kB sindresorhus
npm/[email protected] None 0 12.7 kB sindresorhus
npm/[email protected] None 0 3.21 kB kashey
npm/[email protected] None 0 18.2 kB motdotla
npm/[email protected] environment 0 8.47 kB sindresorhus
npm/[email protected] None 0 12.4 kB ryanve
npm/[email protected] shell 0 4.32 kB exponent
npm/[email protected] None 0 158 kB tsapeta
npm/[email protected] None 0 112 kB brentvatne
npm/[email protected] None 0 303 kB brentvatne
npm/[email protected] None 0 139 kB gabrieldonadel
npm/[email protected] None 0 50.1 kB brentvatne
npm/[email protected] environment, filesystem, unsafe 0 377 kB brentvatne
npm/[email protected] None 0 1.65 MB alanhughes, aleqsio, betoatexpo, ...24 more
npm/[email protected] environment 0 231 kB tsapeta
npm/[email protected] environment 0 21.8 kB yangshun
npm/[email protected] network 0 46.5 kB jonbern
npm/[email protected] None 0 33.9 kB bramstein
npm/[email protected] network 0 6.89 kB fson
npm/[email protected] None 0 5.26 kB kashey
npm/[email protected] network 0 3.35 kB sindresorhus
npm/[email protected] None 0 26.4 kB nlf
npm/[email protected] None 0 5.73 kB sindresorhus
npm/[email protected] None 0 4.73 kB sindresorhus
npm/[email protected] None 0 42.1 kB whitequark
npm/[email protected] None 0 4.7 kB jonschlinkert
npm/[email protected] None 0 2.76 kB sindresorhus
npm/[email protected] None 0 4.12 kB sindresorhus
npm/[email protected] None 0 8.82 kB jonschlinkert
npm/[email protected] environment, eval, filesystem, network 0 539 kB nuxt.bot
npm/[email protected] None 0 3.38 kB tjholowaychuk
npm/[email protected] filesystem 0 23.2 kB bojand
npm/[email protected] None 0 7.26 MB devongovett
npm/[email protected] None 0 9.12 MB devongovett
npm/[email protected] None 0 7.79 MB devongovett
npm/[email protected] None 0 7.37 MB devongovett
npm/[email protected] None 0 7.38 MB devongovett
npm/[email protected] None 0 9.03 MB devongovett
npm/[email protected] None 0 9.03 MB devongovett
npm/[email protected] None 0 8.41 MB devongovett
npm/[email protected] environment 0 454 kB devongovett
npm/[email protected] filesystem 0 4.56 kB linusu
npm/[email protected] None 0 12.9 kB pvorb
npm/[email protected] None 0 3.78 kB ccheever
npm/[email protected] None 0 36.7 kB ptarjan
npm/[email protected] filesystem, network, shell 0 9.77 kB jongleberry
npm/[email protected] None 0 5.38 kB mdlavin
npm/[email protected] None 0 16.2 kB isaacs
npm/[email protected] environment, filesystem, shell 0 46.3 kB sindresorhus
npm/[email protected] environment 0 3.15 kB sindresorhus
npm/[email protected] environment, shell 0 4.89 kB isaacs
npm/[email protected] None 0 3.85 kB kevva
npm/[email protected] environment 0 4.9 kB dickeyxxx
npm/[email protected] environment, filesystem 0 200 kB ai
npm/[email protected] None 0 11.5 kB sindresorhus
npm/[email protected] None 0 95.8 kB mwbrooks
npm/[email protected] None 0 239 kB janicduplessis
npm/[email protected] None 0 25 kB kashey
npm/[email protected] None 0 78.6 kB kashey
npm/[email protected] None 0 18.3 kB kashey
npm/[email protected] None 0 1.94 kB stephenmathieson
npm/[email protected] environment, filesystem, shell 0 53.6 kB h2non
npm/[email protected] None 0 178 kB fernandorojo
npm/[email protected] None 0 140 kB 7rulnik
npm/[email protected] None 0 94.4 kB evrt
npm/[email protected] None 0 1.14 MB alangpierce
npm/[email protected] filesystem, shell 0 46 kB jorandirkgreef
npm/[email protected] filesystem 0 5.95 kB sindresorhus
npm/[email protected] None 0 6.59 kB dead_horse
npm/[email protected] None 0 7.92 kB dead_horse
npm/[email protected] None 0 85.5 kB ljharb
npm/[email protected] None 0 68 kB dsagal2
npm/[email protected] None 0 23 kB sindresorhus
npm/[email protected] None 0 20.6 kB ljharb
npm/[email protected] None 0 2.58 kB sindresorhus
npm/[email protected] None 0 51.8 kB kashey
npm/[email protected] None 0 49.5 kB kashey
npm/[email protected] None 0 17.2 kB odysseas
npm/[email protected] None 0 21 kB chrisdickinson
npm/[email protected] None 0 349 kB philpl
npm/[email protected] None 0 553 kB fernandorojo

🚮 Removed packages: npm/@expo/[email protected], npm/@expo/[email protected], npm/@expo/[email protected], npm/@react-native-menu/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

Copy link

linear bot commented Sep 20, 2024

@@ -30,6 +30,7 @@ module.exports = function (api) {
root: ['./src'],
},
],
'@babel/plugin-transform-export-namespace-from',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was in order to get the expo modules to work nicely. See: dominicstop/react-native-ios-context-menu#81 (comment)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This includes basic functionality for Dropdowns with titles and components. Will add submenus in a follow-up PR.

@walmat walmat changed the title [WIP] Zeego context menu migration Zeego MintsFilter migration Sep 24, 2024
@walmat walmat marked this pull request as ready for review September 24, 2024 20:50
sideOffset={sideOffset}
collisionPadding={12}
>
{menuConfig.menuTitle && (

Choose a reason for hiding this comment

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

this will crash if someone passes an empty string btw

@walmat walmat closed this Sep 25, 2024
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.

3 participants