Commit a8da490
authored
feat: add help cards in /help and /about, based on configurable supportEmail (#1933)
## Description
This PR adds an environment variable `supportEmail`. If set, a card
"Questions or issues" is added in the `/help` page like so:

## Motivation
Currently, users had no way to look up a contact email in case of issues
or questions. This PR adds it via a configurable `supportEmail` env var.
## Fixes:
None
## Changes:
Please provide a list of the changes implemented by this PR
* add `supportEmail` in appConfig
* add a card in /help component
## Tests included
- [ ] Included for each change/fix?
- [x] Passing? (Merge will not be approved unless this is checked)
## Documentation
- [ ] swagger documentation updated \[required\]
- [x] official documentation updated \[nice-to-have\] SciCatProject/documentation#81
### official documentation info
N/A
## Backend version
- [ ] Does it require a specific version of the backend
- which version of the backend is required:
## Summary by Sourcery
Add supportEmail configuration and display contextual help cards in the
UI
New Features:
- Introduce supportEmail environment variable in AppConfig
- Render a “Questions or issues?” card on the /help page when
supportEmail is set
- Render a “Getting help” card on the /about page for PSI facility with
optional contact email1 parent d7bfbbb commit a8da490
File tree
3 files changed
+15
-0
lines changed- src/app
- help/help
3 files changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
0 commit comments