Skip to content
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: wrong error after adding folder [WPB-15478] #3820

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

Garzas
Copy link
Contributor

@Garzas Garzas commented Jan 23, 2025

TaskWPB-15478 [Android] Error shown for a split second on successful creation of new folder


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

After successfully added folder there was short period of showing error that folder name already exist. It's caused because current folder list is propagating new folder before screen closes

Solutions

Disable updating folders state by checking progress state

@Garzas Garzas self-assigned this Jan 23, 2025
@echoes-hq echoes-hq bot added the echoes: product-roadmap Work aligned with the customer-announced roadmap, targeting a specific release date. label Jan 23, 2025
Copy link
Contributor

@yamilmedina yamilmedina left a comment

Choose a reason for hiding this comment

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

Small typo, nothing critical

)
if (!folderNameState.loading) {
folderNameState = folderNameState.copy(
buttonEnabled = text.trim().isNotEmpty() && !nameExist && text.length <= NAME_MAX_COUNT,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
buttonEnabled = text.trim().isNotEmpty() && !nameExist && text.length <= NAME_MAX_COUNT,
buttonEnabled = text.trim().isNotEmpty() && !nameExists && text.length <= NAME_MAX_COUNT,

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.79%. Comparing base (a71af95) to head (88ee323).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3820      +/-   ##
===========================================
+ Coverage    45.78%   45.79%   +0.01%     
===========================================
  Files          486      486              
  Lines        16638    16643       +5     
  Branches      2797     2798       +1     
===========================================
+ Hits          7617     7622       +5     
  Misses        8239     8239              
  Partials       782      782              
Files with missing lines Coverage Δ
...ui/home/conversations/folder/NewFolderViewModel.kt 97.95% <100.00%> (+0.23%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a71af95...88ee323. Read the comment docs.

Copy link
Contributor

Built wire-android-staging-compat-pr-3820.apk is available for download

Copy link
Contributor

Built wire-android-dev-debug-pr-3820.apk is available for download

@Garzas Garzas added this pull request to the merge queue Jan 23, 2025
Merged via the queue into develop with commit 13be8a1 Jan 23, 2025
13 of 14 checks passed
@Garzas Garzas deleted the fix/create-folder-error branch January 23, 2025 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: product-roadmap Work aligned with the customer-announced roadmap, targeting a specific release date. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants