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

Dev/younes main #15

Merged
merged 6 commits into from
Mar 25, 2025
Merged

Dev/younes main #15

merged 6 commits into from
Mar 25, 2025

Conversation

thanhpd
Copy link
Owner

@thanhpd thanhpd commented Mar 25, 2025

No description provided.

@thanhpd thanhpd requested review from younesnouri and Copilot March 25, 2025 23:21
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces several UI and functionality improvements across the app including a new NoNotification icon component, updates to screen layouts and navigation, and enhancements to calendar and booking features. Key changes include:

  • New and updated components for notifications, profile, and calendar with improved UI elements.
  • Adjustments to navigation routes and header titles across multiple screens.
  • Code refactoring in hooks and type definitions along with removal of deprecated screens.

Reviewed Changes

Copilot reviewed 18 out of 19 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
client/components/icons/NoNotification.tsx Added a new SVG icon component for no notifications
client/app/notifications.tsx Integrated the NoNotification icon and updated empty state UI
client/app/_layout.tsx Updated header titles and removed header styling for some screens
client/constants/types.ts Reformatted type declarations for consistency
client/app/(tabs)/profile.tsx Updated profile header to use currentUser properties
client/components/ui/ActivityDetailsPopup.tsx Adjusted layout spacing using gap classes
client/app/(tabs)/_layout.tsx Revised tab icon colors and active/inactive tint settings
client/hooks/useAuth.ts Added toggleNotification and toggleGamification callbacks
client/components/ui/BookingOptions.tsx Fixed navigation calls by removing casts
client/components/SettingsSection.tsx Updated toggle buttons to use new auth hooks
client/app/(tabs)/index.tsx Added keys for list items and updated texts in the home screen
client/components/BookingSlotModal.tsx Updated Calendar theme configuration
client/app/nutrition.tsx Added flex styling to the container for better layout
client/app/(tabs)/membership.tsx Cleaned up membership display and removed unnecessary whitespace
client/app/training.tsx Changed price types and updated description text casing
client/components/ui/CalendarComponent.tsx Enhanced event-to-dot mapping and improved legend rendering
client/app/NutritionConsultancy.tsx & client/app/OnlineActivity.tsx Removed deprecated screens
Files not reviewed (1)
  • client/package-lock.json: Language not supported
Comments suppressed due to low confidence (1)

client/app/(tabs)/membership.tsx:198

  • The function name 'MmeberhipPage' appears to be misspelled; consider renaming it to 'MembershipPage'.
export default function MmeberhipPage() {

</View>
<View className="flex flex-col items-center justify-center mt-[70px]">
<Text className="text-red font-bold text-2xl">
There's no notifications
Copy link
Preview

Copilot AI Mar 25, 2025

Choose a reason for hiding this comment

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

The text "There's no notifications" is grammatically incorrect; consider replacing it with "There are no notifications".

Suggested change
There's no notifications
There are no notifications

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

@@ -107,7 +108,7 @@ export default function HomeScreen() {
<View style={styles.qrTextContainer}>
<Text style={styles.qrText}>Gym Check-in</Text>
<Text style={styles.qrsubText}>
Tap to here scan qr code
Tap to here scan QR code
Copy link
Preview

Copilot AI Mar 25, 2025

Choose a reason for hiding this comment

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

[nitpick] The instruction 'Tap to here scan QR code' seems awkward; consider rewording it to 'Tap here to scan QR code'.

Suggested change
Tap to here scan QR code
Tap here to scan QR code

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

@thanhpd thanhpd merged commit 2d79278 into main Mar 25, 2025
@thanhpd thanhpd deleted the dev/younes_main branch March 25, 2025 23:29
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.

None yet

2 participants