arduino / arduino/Arduino-Science-Journal-iOS

Users have the ability to create alert triggers without alerting-method

Open
#54 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
28
Forks
10
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
When creating a trigger of the type alert, it is possible to **not** choose an "Alert me using..." method, this results in a trigger which is active but doesn't do anything.

**To Reproduce**
Steps to reproduce the behavior:
1. Select a sensor
2. Create a new trigger
3. Choose "Alert Trigger" as trigger type
4. Save without choosing anything in "Alert me using..."

**Expected behavior**
The user should not be able to save if no alert method is selected, the method "Visual Trigger" should be pre-selected. This is also the behaviour on Android.

**Screenshots**
![7c610cba-e5da-4ee4-8c65-348992e31094](https://user-images.githubusercontent.com/47141795/101020202-68736600-356e-11eb-84ac-e4c2a5466482.jpg)
![9356da85-0613-4bd2-b153-d7c14050f522](https://user-images.githubusercontent.com/47141795/101020212-6b6e5680-356e-11eb-8df7-20d1a7e851c8.jpg)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the alert-trigger creation flow: select a sensor, choose Alert Trigger, and save without an alert method. Verify that saving is prevented when no method is selected and that Visual Trigger is pre-selected, matching the described Android behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.