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

Show warning when editing finalized form #5681

Merged
merged 7 commits into from
Jul 21, 2023

Conversation

grzesiek2010
Copy link
Member

@grzesiek2010 grzesiek2010 commented Jul 17, 2023

Closes #5680

What has been done to verify that this works as intended?

I've tested the changes manually and updated automated tests.

Why is this the best possible solution? Were any other approaches considered?

Displaying the warning in FormUriActivity ensures that it will be displayed no matter how the form editing is started (from any place in ODK Collect or an external app).

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

I think that testing editing forms (drafts too) would be enough and there is not a big risk here. Please keep in mind that the warning should not be displayed after October 1st.

Do we need any specific form for testing your changes? If so, please attach one.

No.

Does this change require updates to documentation? If so, please file an issue here and include the link below.

No.

Before submitting this PR, please make sure you have:

  • run ./gradlew checkAll and confirmed all checks still pass OR confirm CircleCI build passes and run ./gradlew connectedDebugAndroidTest locally.
  • verified that any code or assets from external sources are properly credited in comments and/or in the about file.
  • verified that any new UI elements use theme colors. UI Components Style guidelines

@grzesiek2010 grzesiek2010 marked this pull request as ready for review July 17, 2023 23:40
@grzesiek2010 grzesiek2010 added the high priority Should be looked at before other PRs/issues label Jul 18, 2023
@dbemke
Copy link

dbemke commented Jul 19, 2023

After changing dark/ light mode to the opposite mode compared to the device's mode there are parts of the wrong mode applied. As far as I remember issues connected with opposite modes won't be fixed but just to let you know that it exists also in the warning. If you decide that it's possible to fix, let me know and I'll figure out some reproducible steps.
oppositeThemes

@dbemke
Copy link

dbemke commented Jul 19, 2023

This one is connected with the previous PR introducing the possibility to edit finalized form. I was away when it was introduced and I don't know if this case was discussed but the end page says "You will not be able to make edits once you finalize..." and now it's temporarily possible so it might be a bit confusing.

notAble ToEdit

@grzesiek2010
Copy link
Member Author

This one is connected with the previous PR introducing the possibility to edit finalized form. I was away when it was introduced and I don't know if this case was discussed but the end page says "You will not be able to make edits once you finalize..." and now it's temporary possible so it might be a bit confusing.

It is confusing but we decided that we should not change anything there. Even the snackbar action is View when you finalize but it allows you to edit forms.

@grzesiek2010
Copy link
Member Author

After changing dark/ light mode to the opposite mode compared to the device's mode there are parts of the wrong mode applied. As far as I remember issues connected with opposite modes won't be fixed but just to let you know that it exists also in the warning. If you decide that it's possible to fix, let me know and I'll figure out some reproducible steps.

It should be fixed.

@seadowg was there any reason not to use the LocalizedActivity in FormUriActivity?

@seadowg
Copy link
Member

seadowg commented Jul 20, 2023

@seadowg was there any reason not to use the LocalizedActivity in FormUriActivity?

I guess it probably didn't have any UI when it was first made? Other than that, I can't think of a reason.

@seadowg seadowg linked an issue Jul 20, 2023 that may be closed by this pull request
@srujner
Copy link

srujner commented Jul 21, 2023

Tested with Success alongside with @dbemke

Verified on device with Android 10,13

Verified cases:

  • Sending finalized Forms, Editing saved Forms, Viewing sent Forms, Deleting saved Forms;
  • Form version and media updates;
  • Viewing Snackbar after sending a form
  • Sending forms with big-sized media
  • All auto send options
  • Forms being sent at the same time

@grzesiek2010 grzesiek2010 merged commit d1f3731 into getodk:v2023.2.x Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
behavior verified high priority Should be looked at before other PRs/issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show warning when editing finalized form
4 participants