Skip to content

Conversation

@Boxuan-Matty-Lin
Copy link
Owner

This pull request introduces a major redesign of the app's tab navigation and theming, moving from the default Expo template to a custom "coffee shop" theme. It replaces the starter content with new screens and navigation structure, implements a custom tab bar with a central "Kopi" button, and updates the color palette and icon set to match the new branding. Additionally, it documents the tech stack and configuration in a new AGENTS.md file.

Navigation & Screens

  • Replaces the default Expo starter tabs and content with five new screens: Home, Favorites, Kopi (center tab), Orders, and Me, each with a simple placeholder layout and themed background/colors. (app/(tabs)/index.tsx, app/(tabs)/favorites.tsx, app/(tabs)/kopi.tsx, app/(tabs)/orders.tsx, app/(tabs)/me.tsx) [1] [2] [3] [4] [5]
  • Removes the old "Explore" and "Home" starter screens and their associated example/tutorial content. (app/(tabs)/explore.tsx, app/(tabs)/index.tsx) [1] [2]

Custom Tab Bar & Icons

  • Implements a custom tab bar in _layout.tsx with a prominent, elevated central "Kopi" button, custom icons, rounded corners, and themed colors. Uses a new KopiTabButton component for the center tab. (app/(tabs)/_layout.tsx)
  • Updates the icon mapping in icon-symbol.tsx to include new icons for the coffee theme (e.g., coffee cup, receipt, star, person).
  • Minor import order fix in icon-symbol.tsx.

Theming & Styling

  • Introduces a new color palette for light and dark modes, using coffee-inspired colors throughout the app. (constants/theme.ts, global.css) [1] [2]
  • Adds CSS variables for the new palette in global.css.

Documentation

  • Adds AGENTS.md to document the project's runtime, navigation, styling, animation, state management, tooling, and platform configuration.

@Boxuan-Matty-Lin Boxuan-Matty-Lin self-assigned this Nov 21, 2025
@Boxuan-Matty-Lin Boxuan-Matty-Lin added documentation Improvements or additions to documentation enhancement New feature or request labels Nov 21, 2025
@Boxuan-Matty-Lin Boxuan-Matty-Lin merged commit e0c61d0 into main Nov 21, 2025
5 checks passed
Copy link

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 transforms the app from an Expo starter template into a coffee shop-themed app with a custom navigation system. It introduces a new color palette centered around coffee tones, replaces default screens with five new tabs (Home, Favorites, Kopi, Orders, Me), and implements a custom tab bar featuring an elevated central "Kopi" button.

  • Custom tab bar with elevated center button and rounded corners
  • Coffee-themed color system using CSS variables and Tailwind configuration
  • Five new placeholder screens with consistent styling using NativeWind

Reviewed Changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
tailwind.config.js Extends content paths and adds custom coffee-themed color variables
global.css Defines CSS variables for the coffee color palette
constants/theme.ts Implements coffee-themed Palette and updates Colors for light/dark modes
components/ui/icon-symbol.tsx Adds icon mappings for coffee, receipt, person, and star icons
app/(tabs)/orders.tsx New Orders screen with placeholder content
app/(tabs)/me.tsx New Me screen with placeholder content
app/(tabs)/kopi.tsx New Kopi screen with placeholder content
app/(tabs)/index.tsx Simplified Home screen replacing starter content
app/(tabs)/favorites.tsx New Favorites screen with placeholder content
app/(tabs)/explore.tsx Removed old Explore screen
app/(tabs)/_layout.tsx Implements custom tab bar with KopiTabButton and themed styling

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

</ThemedText>
</ThemedView>
</ParallaxScrollView>
<View className="flex-1 items-center justify-center bg-milk-coffee">
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

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

[nitpick] The order of flex utilities in className differs from other screens (using 'items-center justify-center' vs 'justify-center items-center'). For consistency with favorites.tsx, kopi.tsx, orders.tsx, and me.tsx, consider using 'justify-center items-center' order.

Suggested change
<View className="flex-1 items-center justify-center bg-milk-coffee">
<View className="flex-1 justify-center items-center bg-milk-coffee">

Copilot uses AI. Check for mistakes.
</ThemedView>
</ParallaxScrollView>
<View className="flex-1 items-center justify-center bg-milk-coffee">
<Text className="text-xl font-semibold text-dark-coffee">Home Screen</Text>
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

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

[nitpick] The font weight differs from other screens which use 'font-bold'. For consistency across all tab screens (favorites.tsx, kopi.tsx, orders.tsx, me.tsx), consider using 'font-bold' instead of 'font-semibold'.

Suggested change
<Text className="text-xl font-semibold text-dark-coffee">Home Screen</Text>
<Text className="text-xl font-bold text-dark-coffee">Home Screen</Text>

Copilot uses AI. Check for mistakes.
--color-light-coffee: #D7CCC8;
--color-medium-coffee: #8D6E63;
--color-grey: #BCAAA4;
}
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

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

CSS variables are only defined for light mode in :root. Dark mode will still use these same colors. Consider adding a dark mode selector (e.g., .dark) with appropriate color values to match the dark theme colors defined in constants/theme.ts, or document that NativeWind colors will only work in light mode.

Suggested change
}
}
.dark {
--color-milk-coffee: #23211C; /* Example dark mode value, update as needed */
--color-dark-coffee: #D7CCC8; /* Example dark mode value, update as needed */
--color-light-coffee: #4A3B32; /* Example dark mode value, update as needed */
--color-medium-coffee: #6D4C41; /* Example dark mode value, update as needed */
--color-grey: #5D4037; /* Example dark mode value, update as needed */
}

Copilot uses AI. Check for mistakes.
shadowOpacity: isFocused ? 0.32 : 0.25,
},
]}>
<IconSymbol size={KOPI_ICON_SIZE} name="cup.and.saucer.fill" color="#FFFFFF" />
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

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

[nitpick] Hardcoded white color ('#FFFFFF') is used instead of the theme colors. Consider using Colors.white or Colors[theme].background for consistency with the theming system, making it easier to adjust if the design changes.

Suggested change
<IconSymbol size={KOPI_ICON_SIZE} name="cup.and.saucer.fill" color="#FFFFFF" />
<IconSymbol size={KOPI_ICON_SIZE} name="cup.and.saucer.fill" color={Colors.white} />

Copilot uses AI. Check for mistakes.
borderTopLeftRadius: BAR_RADIUS,
borderTopRightRadius: BAR_RADIUS,
borderTopWidth: 1,
borderWidth: 1,
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

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

The borderWidth: 1 creates a border on all sides of the tab bar, but borderTopWidth: 1 is already set on line 167. This creates a double border on the top edge (2px total). Consider removing either borderWidth or borderTopWidth to avoid the redundant top border.

Suggested change
borderWidth: 1,

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants