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

Canvass: Empty household names #2551

Open
sefsh opened this issue Feb 7, 2025 · 0 comments
Open

Canvass: Empty household names #2551

sefsh opened this issue Feb 7, 2025 · 0 comments
Labels
🐜 bug Something isn't working 🐟 Small Should be a quick-ish fix.

Comments

@sefsh
Copy link

sefsh commented Feb 7, 2025

Description

The feature

Zetkin features a new tool for organizing so-called canvassing (visiting households for talking and distributing material). Canvassers are provided with a dedicated interface in which they can view and interact with areas and locations visualized on a map.

The canvasser may add any amount of households on a location and name them anything.

The bug

Household title can be removed completely.

Steps to reproduce

  1. Go to https://app.dev.zetkin.org/organize/1
  2. Make sure you're signed in as [email protected]
  3. Click on 🗺 Geography in the side menu
  4. Draw an area (currently by clicking the DRAW button and putting a few points on screen)
  5. Click SAVE button to save the area.
  6. Create a project from the top-right button
  7. Create an area assignment from the "CREATE" button, call it Reporting test
  8. Click on maps tab in the newly created area assignment
  9. Use the map interface to locate and click on the area created in step 4
  10. Type to find, and select the user Angela Davis in the Add assignee dropdown.
  11. Click the top-right START ASSIGNMENT button
  12. Go to https://app.dev.zetkin.org/my
  13. Locate the and tap the Reporting test area assignment (possibly filed under "Canvass" category)
  14. Tap START ASSIGNMENT
  15. Use the + button until the map is maximally zoomed in
  16. Tap ADD LOCATION, name it, tap CREATE LOCATION
  17. Use the appearing drawer UI to open the location details by tapping the element or its ߍ button
  18. Tap HOUSEHOLDS button
  19. Tap + ADD NEW HOUSEHOLD button
  20. Tap the edit button (✏ )
  21. Empty the title field
  22. Tap SAVE button

Expected Behaviour

Empty household titles are impossible to rename to.

Actual Behaviour

Empty household titles are allowed

Screenshots

Suggested solution

Check the household title field and disable the SAVE button if the field is empty.

@sefsh sefsh added 🐜 bug Something isn't working 🐟 Small Should be a quick-ish fix. labels Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐜 bug Something isn't working 🐟 Small Should be a quick-ish fix.
Projects
None yet
Development

No branches or pull requests

1 participant