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

Separates layout on complex XML for easier maintenance #5075

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Williamrai
Copy link
Collaborator

What does this do?

Separates layout on complex XML for easier maintenance

Why is this needed?

In layouts like fragment_suggested_edits_tasks we can organize the code across multiple layouts and include them as needed. This approach will simplify the process of adding new views to the UI and help maintain the design. In Contribution dashboard we needed to add new UI elements for donor history, which increased the number of lines of code. In the future if we add new designs this may result in a large amount code in a single file, making it challenging to maintain. By using separate layouts, I think we can make this process much more easier.

@@ -58,7 +58,7 @@ class SuggestedEditsTasksFragmentViewModel : ViewModel() {
blockMessageWikipedia = null
blockMessageWikidata = null
blockMessageCommons = null
totalContributions = 0
totalContributions = 10
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would it be possible to change the default value to 0?

@cooltey
Copy link
Collaborator

cooltey commented Nov 4, 2024

Thanks @Williamrai! I really like this idea of how it simplified the layout. Can we wait until we merge the feature branch since I made some layout changes by reducing the duplicate message cards?

@Williamrai Williamrai added the HOLD Will review as soon as other more pressing PRs are merged/released. label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HOLD Will review as soon as other more pressing PRs are merged/released.
Development

Successfully merging this pull request may close these issues.

2 participants
  NODES
COMMUNITY 2
Idea 1
idea 1
Project 2
USERS 1