You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository does not receive automatic reviews because it has fewer than 10 stars.
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: 554a48c0-6613-411b-b0fa-5d8a813ac8a4
No actionable comments were generated in the recent review.
Walkthrough
The change adds shared haptic and pulsing loading components. Favorite controls and navigation use haptics. Notification refresh reports success, and the screen can show cached notifications with a connection-error banner and retry action.
Changes: UI feedback and notification states
Layer / File(s)
Summary
Shared haptic and loading primitives app/src/main/java/com/cornellappdev/android/eatery/ui/haptics/Haptics.kt, app/src/main/java/com/cornellappdev/android/eatery/ui/components/general/LoadingPulse.kt, app/src/main/java/com/cornellappdev/android/eatery/ui/components/home/MainLoading.kt
Adds haptic methods for favorite changes, refresh, and tab selection. Adds the pulsing alpha modifier and configurable EateryBlob color and end padding.
Screen interaction and loading integrations app/src/main/java/com/cornellappdev/android/eatery/ui/components/general/EateryCard.kt, app/src/main/java/com/cornellappdev/android/eatery/ui/components/general/FavoriteButton.kt, app/src/main/java/com/cornellappdev/android/eatery/ui/navigation/MainTabbedNavigation.kt, app/src/main/java/com/cornellappdev/android/eatery/ui/screens/EateryDetailScreen.kt, app/src/main/java/com/cornellappdev/android/eatery/ui/screens/FavoritesScreen.kt
Favorite controls trigger haptics before their existing callbacks. Bottom navigation triggers haptics when the selected tab changes. The favorites loading state uses pulsing placeholders and EateryBlob components.
Notification refresh and connection-error presentation app/src/main/java/com/cornellappdev/android/eatery/ui/viewmodels/NotificationsHomeViewModel.kt, app/src/main/java/com/cornellappdev/android/eatery/ui/screens/NotificationsHomeScreen.kt, app/src/main/java/com/cornellappdev/android/eatery/ui/components/general/ConnectionErrorBanner.kt, app/src/main/res/drawable/ic_wifi_slash.xml, app/src/main/res/values/strings.xml
The view state exposes a connection-error flag when notifications remain after a failed fetch. Pull-to-refresh emits a success event, and unread notifications are marked as read only after a successful fetch. The screen adds pulsing loading rows and displays a retry banner with cached notifications.
This change adds haptic feedback, pulsing loading placeholders and a connection-error banner. No actionable merge-blocking risk was identified. The failing Notion sync check is an external configuration problem unrelated to the app code.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "Add haptic feedback" matches the main change. The PR adds an EateryHaptics class and rememberEateryHaptics() helper, and wires light ticks to favorite toggles, selection ticks to bottom tab…
Description check
The description follows the repository template's main sections: Overview, Changes Made (as a bulleted list under Overview), Testing (corresponding to Test Coverage), and Notes (corresponding to Next …
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "Add haptic feedback" matches the main change. The PR adds an EateryHaptics class and rememberEateryHaptics() helper, and wires light ticks to favorite toggles, selection ticks to bottom tab changes, and refresh haptics to Notifications pull-to-refresh. The title is short and specific, though it does not mention that the change is centralized in EateryHaptics.
Full details: Description check
Explanation
The description follows the repository template's main sections: Overview, Changes Made (as a bulleted list under Overview), Testing (corresponding to Test Coverage), and Notes (corresponding to Next Steps). The author documents the haptic scope, exclusions, test device, and stacked base branch. The template's Test Coverage section is titled differently in the description, and it lacks a Related PRs or Issues entry, which is optional. Screenshots are optional and absent. Some template headings are not matched exactly, but the required information is present.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Fix failing CI checks
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
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
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.
Overview
This PR adds haptic feedback using Compose's
LocalHapticFeedback, which respects the system touch feedback setting.EateryHapticsinui/hapticsso all haptics go through one placeTesting
Tested on a Pixel 7a (Android 16)
Notes
mabel/loadingstatesToggleOff, which Pixel plays very faintly. Open to switching it to the same tick as favorite.Summary by CodeRabbit