Commit 9802476
Fix Stimulus foundation: remove autosave conflict, add dashboard tests
Bug fixes:
- Remove autosave_controller.js (belongs in DARIAEngineering#3545 auto-save PR,
not in this foundation PR — avoids merge conflict)
- Export Stimulus Application as window.Stimulus so downstream PRs
(DARIAEngineering#3545, DARIAEngineering#3551) can register controllers without re-importing
- Keep jquery-ujs and popper.js restored (from prior commit)
Tests (4):
- Patient edit page renders successfully (replaces deleted React unit
tests with server-side rendering integration tests)
- Patient name displayed on dashboard
- Stimulus application.js loads without errors
- Dashboard form with data attributes renders
Note: React component tests (Input, Select, Tooltip, PatientDashboardForm)
and hook tests (useDebounce, useFetch, useFlash, usei18n) are removed
because this PR replaces React with server-rendered ERB + Stimulus.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent d4a81bf commit 9802476
4 files changed
Lines changed: 41 additions & 31 deletions
File tree
- app/javascript
- controllers
- test/controllers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 10 | + | |
14 | 11 | | |
15 | 12 | | |
16 | 13 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
0 commit comments