techmatters / terraso-product

Non-engineering tasks or tasks that have significance across repos in Terraso.
0 stars 0 forks source link

Slope data input #158

Closed ltseng closed 4 months ago

ltseng commented 1 year ago

Gather slope information for a site

References

Slope Test Cases

Design

Figma

### Tasks
- [ ] https://github.com/techmatters/terraso-product/issues/207
- [ ] https://github.com/techmatters/terraso-product/issues/494#issuecomment-1863499557
- [ ] https://github.com/techmatters/terraso-mobile-client/issues/249
- [ ] https://github.com/techmatters/terraso-mobile-client/issues/127
- [ ] https://github.com/techmatters/terraso-client-shared/issues/10
- [ ] https://github.com/techmatters/terraso-mobile-client/issues/766
- [ ] https://github.com/techmatters/terraso-backend/issues/623
- [ ] https://github.com/techmatters/terraso-product/issues/823
- [ ] https://github.com/techmatters/terraso-product/issues/824

Acceptance criteria

### Bugs
- [ ] https://github.com/techmatters/terraso-mobile-client/issues/843
- [ ] https://github.com/techmatters/terraso-mobile-client/issues/853
- [ ] https://github.com/techmatters/terraso-mobile-client/issues/822
- [ ] https://github.com/techmatters/terraso-mobile-client/issues/1390

User Story

CourtneyLee333 commented 1 year ago

@ltseng I'm wondering about the concept of deleting slope data and starting over, and general methods around editing collected data. Do we need a way for the user to "unlock" previously collected data in order to delete or change it? In other words, to make it clear their actions will overwrite what's already been collected? In the current app it would be quite easy to tap the previously chosen image without realizing it will delete the data.

Do we want an unlock feature on all the data input sections, and a save button? I'm thinking in terms of a linear workflow, and for some user satisfaction in doing all this hard physical work, a sense of starting and completing a task might be a nice thing.

ltseng commented 1 year ago

I think it could be useful, as long as we put up the right guardrails. We would want to check with engineers on the feasibility of this too, since I imagine this would have database complications, and potential for data conflicts. I'm thinking this would be a useful post-MVP feature.

CourtneyLee333 commented 1 year ago

I wonder if it would necessarily have database complications, or if it would a simpler UI thing. For example, the user might need to tap an edit button before making a change to saved data rather than just changing it. Or, if they change previously saved data they get a dialog box asking if they are sure. I think this is worth asking the BLM group.

ltseng commented 1 year ago

I'll add this to the list of questions for next week's meeting

Edit: Actually, looks like you best me to it!

ltseng commented 1 year ago

@shrouxm and @david-code when we get to building the digital slope meter, keep in mind that this will ideally be built as a reusable component that can be later called from the Toolbox

ltseng commented 9 months ago

I've separated out the parts of this task that originally referenced landscape position and slope aspect into their own user story - https://github.com/techmatters/terraso-product/issues/519

@shrouxm is this issue ready to QA? @david-code I'm assuming that you haven't gotten to locking down the contributor and viewer access to slope yet, right? (Just so I don't file additional unnecessary bugs)

shrouxm commented 9 months ago

@ltseng there are a couple bugs that became obvious once the changes were distributed so i would say hold off on QA until those are resolved!

ltseng commented 9 months ago

@CourtneyLee333 I have completed the functional QA of this user story and am now passing this on to you for design QA. Please note the three bugs I have found so far.

CourtneyLee333 commented 9 months ago

@ltseng I'm so excited to see these screens! Here are a few things I found:

ltseng commented 9 months ago

@CourtneyLee333 I filed https://github.com/techmatters/terraso-mobile-client/issues/848 to track the styling issues separately. Regarding your last bullet point, I actually asked Garo about that directly, since I had noticed the same thing. They said:

The image selectors aren't slow because of app performance issues but because it's actually saving the updated value to the backend before displaying it on the screen, we haven't implemented the behavior where it updates locally immediately while waiting for the backend response yet, but we'll only need to do that once and then it'll work everywhere!

CourtneyLee333 commented 8 months ago

@ltseng I found one more design bug. On my iPad the dialog either omits the word "or" or it's covered by the close icon. The dialog title should be "Enter steepness percentage or degree".

Image

ltseng commented 8 months ago

Thanks for catching that! Adding to https://github.com/techmatters/terraso-mobile-client/issues/848