-
Notifications
You must be signed in to change notification settings - Fork 61
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
fix(native-app): change border radius circle to be full #17155
Conversation
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 eslint
warning eslint@8.57.0: This version is no longer supported. Please see https://eslint.org/version-support for other options. WalkthroughThe changes in this pull request involve a modification to the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Outside diff range and nitpick comments (1)
apps/native/app/src/ui/utils/theme.ts (1)
85-85
: Add documentation for the 'full' border radiusConsider adding a comment to clarify that this value creates a circular/pill shape effect when applied to elements.
+ // Creates a circular/pill shape effect full: 100,
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
📒 Files selected for processing (1)
apps/native/app/src/ui/utils/theme.ts
(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
apps/native/app/src/ui/utils/theme.ts (1)
Pattern apps/**/*
: "Confirm that the code adheres to the following:
- NextJS best practices, including file structure, API routes, and static generation methods.
- Efficient state management and server-side rendering techniques.
- Optimal use of TypeScript for component and utility type safety."
🔇 Additional comments (1)
apps/native/app/src/ui/utils/theme.ts (1)
85-85
: Verify the impact of the border radius change
Let's verify all usages of this border radius value in the native app to ensure the change from 'circle' to 'full' doesn't break existing components.
✅ Verification successful
Let me try a different approach to search for the usage patterns.
Border radius change from 'circle' to 'full' is already in use and consistent
The search results show that theme.border.radius.full
is already being used consistently across multiple components in the native app:
- list-item.tsx
- notification-card.tsx
- expandable-card.tsx
- header.tsx
- accordion-item.tsx
The change from 'circle' to 'full' appears to be an existing standard, and there are no instances of borderRadius.circle
that need updating. The value of '100px' for the 'full' border radius is being referenced correctly in these components.
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Search for any usage of borderRadius.circle or borderRadius.full in the native app
echo "Searching for old 'circle' usage that might need updating..."
rg -t tsx -t ts "borderRadius\.(circle|full)" apps/native/
# Look for style definitions that might be affected
echo "Checking for potentially affected style definitions..."
ast-grep --pattern 'style={$_borderRadius$_}' apps/native/
Length of output: 405
Script:
#!/bin/bash
# Search for any usage of borderRadius in the native app
echo "Searching for borderRadius usage..."
rg "borderRadius" apps/native/
# Search for style definitions containing 'circle' or 'full'
echo "Searching for circle/full in styles..."
rg "(circle|full)" apps/native/app/src/ui/
Length of output: 3022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17155 +/- ##
=======================================
Coverage 35.73% 35.73%
=======================================
Files 6926 6926
Lines 147678 147678
Branches 42063 42063
=======================================
+ Hits 52775 52779 +4
+ Misses 94903 94899 -4
Flags with carried forward coverage won't be shown. Click here to find out more. see 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
What
Changes in #17042 broke the app since the app has its own theme (not using the same theme as other projects in the monorepo).
I changed the
borderRadius.circle
to beborderRadius.full
.Checklist:
Summary by CodeRabbit
circle
tofull
in the theme settings.This change enhances clarity in design specifications while maintaining all other theme properties.