hasadna / hasadna/reportit-user

open questions: add 'allowEmpty' flag

Open
#5 0 comments 0 reactions 1 assignee Claimed by @akariv View on GitHub
Dominant language
TypeScript
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

some of the questions (not all of them) should enable the user to submit without typing in ('anonymous' for the name is the clearest examples, but we already have two other cases in which currently we have to ask a yes/no question just to confirm in advance the user has some info to type in:

- האם את/ה יודעים את שם חברת האבטחה?
- האם את/ה יודעים את שם המאבטח/ת?

we should minimize/subtract these steps, **without giving up on the standard content validation assumption for most of the question**

### notice
this issue is relevant for the reportit-agent part as well.

## alternative solution:

handle the split method when an empty string is submitted into a `this.content.setTextArea()`:

![image](https://user-images.githubusercontent.com/3581741/54272666-cd15b280-458c-11e9-99ff-7254f0918926.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.