You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new, experimental "canvassing" (door knocking, mailbox leafletting etc) feature in Zetkin contains a mobile-first UI for canvassers, that they use when out visiting places. The UI allows for creating places and households that are not yet documented.
The Stepper component is a UI widget in the new canvassing feature that is used, among other things, to increment/decrement the number of floors and households per floor when creating households.
In that UI, it should be disallowed to have values that are equal to or less than zero (since a house can't have zero floors, or zero households per floor).
Steps to reproduce
First make sure that the instance you're using has canvassing features enabled, by setting the environment variable FEAT_AREAS=* (which enables for all organizations) in .env.local. This is already the case on the dev server, but won't be the case on localhost
Resize your browser to be very small, e.g. 650px tall
xd question. How do we distinguish the names of the floors? There are BV and KV and sometimes they are called -1 and -2.
That's a great question. We thought a lot about how to name things, and concluded that it's not possible for us to come up with one solution that will work everywhere. So we are leaving it up to the users (or their organization) to decide how to name things. When creating floors, Zetkin will automatically number them from 1, but that can be changed later.
In this context, for this issue, it doesn't really matter how they will be named, because the stepper is for the number of floors, and a building can't have a negative number of floors, or even zero. The same is true for households per floor, which can also not be less than one.
Description
The new, experimental "canvassing" (door knocking, mailbox leafletting etc) feature in Zetkin contains a mobile-first UI for canvassers, that they use when out visiting places. The UI allows for creating places and households that are not yet documented.
The
Stepper
component is a UI widget in the new canvassing feature that is used, among other things, to increment/decrement the number of floors and households per floor when creating households.In that UI, it should be disallowed to have values that are equal to or less than zero (since a house can't have zero floors, or zero households per floor).
Steps to reproduce
FEAT_AREAS=*
(which enables for all organizations) in.env.local
. This is already the case on the dev server, but won't be the case on localhostExpected Behaviour
Decrementing to zero or below should not be possible.
Actual Behaviour
Decrementing is allowed.
Screenshots (if you have any)
Proposed solution
The
Stepper
component should be given optionalmin
andmax
values, and themin
value should be set to 1 for both of these steppers.The text was updated successfully, but these errors were encountered: