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

Add Incomplete forms option to Root menu as Home Screen #2827

Merged
merged 5 commits into from
Sep 2, 2024

Conversation

avazirna
Copy link
Contributor

@avazirna avazirna commented Aug 26, 2024

Summary

This PR is just to add a new navigation drawer item for Incomplete forms, so users can easily access forms that have been saved as incomplete.

Feature Flag

This is related to the Incomplete forms feature and the custom property cc-use-root-menu-as-home-screen.

Product Description

This is how the navigation drawer looks like with the addition:

Safety Assurance

  • I have confidence that this PR will not introduce a regression for the reasons below

Safety story

This just adds a menu item to an existing feature.

@avazirna avazirna marked this pull request as ready for review August 30, 2024 14:53
@@ -229,8 +229,7 @@ private static int getItemIcon(String id) {
case SAVED_FORMS_ITEM_ID:
return R.drawable.ic_saved_forms_nav_drawer;
case INCOMPLETE_FORMS_ITEM_ID:
//TODO: Need to add an icon for this option
return -1;
return R.drawable.ic_incomplete_nav_drawer;
Copy link
Contributor

Choose a reason for hiding this comment

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

can we not use the existing home_incomplete.xml ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@shubham1g5 I considered that but it would distort the look and feel, no? In that mode all, the icons are grey and the home_incomplete is coloured and requires a background:
image

@avazirna avazirna force-pushed the add-incomplete-forms-option-to-root-module-menu branch from 2258ed3 to 02b4e46 Compare September 2, 2024 13:22
@avazirna
Copy link
Contributor Author

avazirna commented Sep 2, 2024

@shubham1g5 I changed the icon to a vector drawable and made the necessary changes to the layout for it to scale as needed

Copy link
Contributor

@shubham1g5 shubham1g5 left a comment

Choose a reason for hiding this comment

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

thanks!

@avazirna avazirna merged commit c870772 into master Sep 2, 2024
5 of 7 checks passed
@avazirna avazirna deleted the add-incomplete-forms-option-to-root-module-menu branch September 2, 2024 15:01
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