Skip to content

IsRefreshing only when triggered by user#146

Merged
rugged-bl merged 3 commits intomainfrom
is-refreshing-only-by-user
Jan 11, 2026
Merged

IsRefreshing only when triggered by user#146
rugged-bl merged 3 commits intomainfrom
is-refreshing-only-by-user

Conversation

@rugged-bl
Copy link
Contributor

No description provided.

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.

Reviewed commit: af54c2b7a0

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@rugged-bl rugged-bl requested a review from Copilot January 11, 2026 18:42
Copy link
Contributor

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 updates the pull-to-refresh functionality to only show the refreshing state when triggered by user interaction, rather than for all sync operations. The changes ensure that the refresh indicator is event-specific and respects minimum display time requirements.

Changes:

  • Modified PullToRefreshStateManager to track refresh state per event ID instead of globally
  • Updated refresh logic to wait for sync operations to complete with proper timeouts
  • Added test coverage to verify the new refresh behavior with proper timing

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
PullToRefreshStateManager.kt Refactored to track event-specific refresh state and implement sync lifecycle management with minimum display time
ExpensesViewModel.kt Updated to pass event ID when triggering user refresh
ExpensesViewModelRefreshTest.kt Enhanced test to verify refresh behavior with timing and sync state changes
shared.versions.toml Updated Cronet version dependency

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

@rugged-bl rugged-bl merged commit 05cfa23 into main Jan 11, 2026
8 of 9 checks passed
@rugged-bl rugged-bl deleted the is-refreshing-only-by-user branch January 11, 2026 19:22
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