Skip to content

Feature/eig 616 review UI barcodescan productdetails#42

Merged
iAmVishal16 merged 7 commits intoDevelopfrom
feature/eig-616-review-ui-barcodescan-productdetails
Dec 16, 2025
Merged

Feature/eig 616 review UI barcodescan productdetails#42
iAmVishal16 merged 7 commits intoDevelopfrom
feature/eig-616-review-ui-barcodescan-productdetails

Conversation

@Gaurav-eightinity01
Copy link
Collaborator

No description provided.

… all the dependent flags to that.

update AuthController to derive the sign‑in provider from Supabase user.identities (with a safe fallback to appMetadata["provider"]), then wire signedInWithApple, signedInWithGoogle, signedInAsGuest, and currentSignInProviderDisplay to that single source of truth so the Settings screen always shows the correct provider.
Replaced arrow-right asset images and updated references. Added new feedback and star rating image assets. Refactored UserFeedbackCard to include a selectable star rating UI and feedback image. Updated YourBarcodeScans to display dynamic scan count from UserPreferences and refresh on appear. Enhanced UserPreferences to track and refresh total scan count. Modified BarcodeDataCard to increment scan count only on successful product analysis. Improved ArrowSwipeShimmer opacity handling in BarcodeScanCameraControls.
@Gaurav-eightinity01
Copy link
Collaborator Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Deleted an extraneous 'matching' line from the UserFeedbackCard view to clean up the code and prevent potential confusion.
@Gaurav-eightinity01
Copy link
Collaborator Author

@ codex review

@Gaurav-eightinity01
Copy link
Collaborator Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines 239 to 242
// Reset scan counter after showing prompt
successfulScanCount = 0
totalScanCount = 0
UserDefaults.standard.set(successfulScanCount, forKey: UserPreferences.successfulScanCountKey)

Choose a reason for hiding this comment

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

P2 Badge Stop resetting total scan count when showing rating prompt

recordRatingPrompt() zeroes both successfulScanCount and the new totalScanCount, and both properties persist via successfulScanCountKey (lines 132‑137). That means whenever a rating prompt is recorded, the user-facing “Scans completed” total in YourBarcodeScans drops back to 0 even though lifetime scans should keep accumulating. The reset happens immediately after a prompt is shown.

Useful? React with 👍 / 👎.

@iAmVishal16 iAmVishal16 merged commit 33c5eed into Develop Dec 16, 2025
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.

2 participants