Commit 82ac4a1
authored
PLU-507: FormSG error message when form is not public (#1224)
## Problem
Unclear when form is not open to responses after form has been
connected.
## Solution
Returns the error message so that it is displayed on the UI.
## Before & After Screenshots
**BEFORE**:
<img width="1145" height="230" alt="Screenshot 2025-09-22 at 8 25 24 PM"
src="https://github.com/user-attachments/assets/288733ee-112f-4bf7-bb4c-20a0886739be"
/>
<img width="634" height="375" alt="Screenshot 2025-09-22 at 8 25 31 PM"
src="https://github.com/user-attachments/assets/3b0f59d1-b46a-4e53-85a1-02f543a1b6e1"
/>
**AFTER**:
<img width="898" height="296" alt="Screenshot 2025-09-22 at 6 34 17 PM"
src="https://github.com/user-attachments/assets/0afbaf30-07d8-471d-abb8-6b964568f2ec"
/>
<img width="638" height="447" alt="Screenshot 2025-09-22 at 6 34 24 PM"
src="https://github.com/user-attachments/assets/5f9dc0c1-bd84-4116-b4d6-1bbd312b7eb4"
/>
## Tests
- [ ] Existing functionalities work
- [ ] Can add new form
- [ ] Can change form
- [ ] Can reconnect form
- [ ] "Ensure form is public" is shown correctly when attempting to
connect a new form that is closed
- [ ] Updated error message
- [ ] "Ensure form is public" is shown correctly for a form that has
already been connected1 parent 6a57a01 commit 82ac4a1
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
59 | | - | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
0 commit comments