improving the app's visual consistency and code quality#5
Merged
Conversation
…vigation, and updated UI components
…ross multiple screens
…ency - Reorganized imports for better structure - Updated text formatting for better readability - Standardized string quotes to double quotes - Enhanced layout styles for consistency - Improved conditional rendering and mapping of petitions - Added spacing and alignment adjustments for UI elements
…improved readability and maintainability
…and state management
… HomeScreen and PetitionDetailsScreen
…ePetitionScreen and AllPetitionsScreen
…n with back navigation handling
Add full AppIcons asset set (iOS AppIcon.appiconset and Android mipmap variants) and introduce appstore/playstore PNGs. Update app.json to use the new local icons for general icon, ios icon, android icon/adaptive foreground, and web favicon (also set adaptive background to #ffffff). Replace remote avatar image URIs in HomeScreen and CreatePetitionScreen with local require(...) references to the new playstore asset to ensure consistent, offlineable branding.
Update LoginScreen and RegisterScreen to use async auth flows and a shared navigateAfterAuth helper. Inputs are validated early (with alerts), email/name are trimmed/lowercased, and auth calls now use the updated auth store API (LoginScreen calls login(email), RegisterScreen uses register(name, email)). Navigation now respects returnTo by going back or navigating into the Tabs stack ({ screen: returnTo }). Added try/catch to surface failures with alerts.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request focuses on improving the app's visual consistency and code quality. The main changes include updating app icons for all platforms, refining component styling for a more polished UI, and cleaning up code formatting and imports across several files.
App icon and asset updates:
app.jsonfor iOS, Android, and web, and added platform-specific icons for a more consistent branding experience.assets/AppIcons/Assets.xcassets/AppIcon.appiconset/Contents.json.Component style refinements:
Header,InputField,PrimaryButton, andPetitionCardcomponents: increased heights, adjusted paddings, margins, line heights, and font weights for better visual alignment and accessibility. [1] [2] [3] [4] [5] [6] [7] [8]Code formatting and import cleanup:
MaterialIconsinstead ofFeatherfor a more unified icon set.These changes collectively enhance the app's UI consistency, maintainability, and overall user experience.