Skip to content

Commit

Permalink
Fixing calendar on dashboard and new docs (bcgov#2173)
Browse files Browse the repository at this point in the history
* Changes to show all survey results to superusers

* removing hard coded values

* fixing linting

* splitting to seperate end points

* fixing auth check

* fixing linting

* merging method in service

* Handle no data error for graphs

* adding new nodata component

* adding new email for submission response

* fixing linting and testing

* Fixing calender on dashboard and new docs
  • Loading branch information
VineetBala-AOT authored Sep 12, 2023
1 parent 6270e92 commit ef0a68e
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 27 deletions.
File renamed without changes.
28 changes: 28 additions & 0 deletions docs/Getting_Email_Templates_from_GCNotify.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Logging into GC Notify:

- Log in to GC Notify.

Accessing Templates:

- Click on the "Templates" section.

![Alt text](image.png)

Finding the Template ID:

- Select a template, and then scroll down to find the Template ID.

![Alt text](image-1.png)

Using the Template ID:

- Use the Template ID you found in the previous step within your configuration files.

Creating a New Template:

- If you need to create a new template, click the button located at the bottom of the page within the "Template" tab.

![Alt text](image-2.png)

- For information on formatting emails, please refer to the following link: https://notification.canada.ca/formatting-emails
- To include custom content in emails, you can find more details at: https://notification.canada.ca/sending-custom-content
22 changes: 22 additions & 0 deletions docs/Steps_To_Deploy_Dagster.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
1) On Openshift:
Go to system:image-puller in rolebindings and add the following lines in the subject:

- kind: ServiceAccount
name: dagster-dagster-user-deployments-user-deployments
namespace: c72cba-prod

2) Change Passwords:
Update the passwords in the values.yaml file located in the repo.

3) Install Dagster:
Run the following command to install Dagster using Helm:

helm install dagster dagster/ --values dagster/values.yaml

4) Create met-dagster Secret:
Ensure that you create the met-dagster secret file.

5) Role Bindings:
Add dagster-admin to role bindings.

Note: As of now, we are using Dagster version 1.4.4.
Binary file added docs/image-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/image-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { LocalizationProvider, DatePicker } from '@mui/x-date-pickers';
import { Dayjs } from 'dayjs';
import { Then, If, Else, Unless } from 'react-if';
import { formatToUTC } from 'components/common/dateHelper';
import CalendarTodayIcon from '@mui/icons-material/CalendarToday';
import axios, { AxiosError } from 'axios';
import { HTTP_STATUS_CODES } from 'constants/httpResponseCodes';

Expand Down Expand Up @@ -185,19 +184,7 @@ const SubmissionTrend = ({ engagement, engagementIsLoading }: SubmissionTrendPro
onChange={(newDate: Dayjs | null) => setFromDate(newDate)}
label="mm/dd/yyyy"
inputFormat="MM/DD/YYYY"
renderInput={(params) => (
<TextField
{...params}
InputProps={{
...params.InputProps,
endAdornment: isExtraSmall ? (
<></>
) : (
<CalendarTodayIcon sx={{ fontSize: 20 }} />
),
}}
/>
)}
renderInput={(params) => (isExtraSmall ? <></> : <TextField {...params} />)}
/>
</Stack>
</Grid>
Expand All @@ -215,19 +202,7 @@ const SubmissionTrend = ({ engagement, engagementIsLoading }: SubmissionTrendPro
onChange={(newDate: Dayjs | null) => setToDate(newDate)}
label="mm/dd/yyyy"
inputFormat="MM/DD/YYYY"
renderInput={(params) => (
<TextField
{...params}
InputProps={{
...params.InputProps,
endAdornment: isExtraSmall ? (
<></>
) : (
<CalendarTodayIcon sx={{ fontSize: 20 }} />
),
}}
/>
)}
renderInput={(params) => (isExtraSmall ? <></> : <TextField {...params} />)}
/>
</Stack>
</Grid>
Expand Down

0 comments on commit ef0a68e

Please sign in to comment.