Skip to content

Commit 559cfec

Browse files
author
fangedShadow
committed
merged in new changes
2 parents 28bcc87 + cd41f98 commit 559cfec

71 files changed

Lines changed: 3841 additions & 476 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

public/header.png

430 KB
Loading

src/actions/hgnFormAction.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { FETCH_FORM_DATA, SET_FORM_DATA } from "../constants/hgnFormConstants"
2+
3+
4+
export const fetchformData=()=>{
5+
return async dispatch=>{
6+
dispatch({
7+
type:FETCH_FORM_DATA
8+
})
9+
}
10+
}
11+
12+
export const setformData=(data)=>({
13+
type:SET_FORM_DATA,
14+
payload:data
15+
})

src/components/BMDashboard/Login/BMLogin.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ function BMLogin(props) {
9393
<FormText>
9494
Enter your current user credentials to access the Building Management Dashboard
9595
</FormText>
96+
<p>Note: You must use your Production/Main credentials for this login.</p>
9697
<FormGroup>
9798
<Label for="email">Email</Label>
9899
<Input

src/components/BMDashboard/Login/__tests__/BMLogin.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ describe('BMLogin component', () => {
9191
),
9292
).toBeInTheDocument();
9393
});
94+
it('check if Note: You must use your Production/Main credentials for this login. header displays as expected', () => {
95+
renderComponent(store);
96+
expect(
97+
screen.getByText('Note: You must use your Production/Main credentials for this login.'),
98+
).toBeInTheDocument();
99+
});
94100
it('check if email label is displaying as expected', () => {
95101
renderComponent(store);
96102
expect(screen.getByText('Email')).toBeInTheDocument();

src/components/CommunityPortal/Login/CPLogin.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ function CPLogin(props) {
9393
<FormText>
9494
Enter your current user credentials to access the Community Portal Dashboard
9595
</FormText>
96+
<p>Note: You must use your Production/Main credentials for this login.</p>
9697
<FormGroup>
9798
<Label for="email">Email</Label>
9899
<Input

src/components/CommunityPortal/Login/__tests__/CPLogin.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,12 @@ describe('CPLogin component', () => {
9191
),
9292
).toBeInTheDocument();
9393
});
94+
it('check if Note: You must use your Production/Main credentials for this login. header displays as expected', () => {
95+
renderComponent(store);
96+
expect(
97+
screen.getByText('Note: You must use your Production/Main credentials for this login.'),
98+
).toBeInTheDocument();
99+
});
94100
it('check if email label is displaying as expected', () => {
95101
renderComponent(store);
96102
expect(screen.getByText('Email')).toBeInTheDocument();

src/components/EductionPortal/Login/EPLogin.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ function EPLogin(props) {
9191
<h2>Log In To Good Education Portal</h2>
9292
<Form onSubmit={handleSubmit}>
9393
<FormText>Enter your current user credentials to access the Good Education Portal</FormText>
94+
<p>Note: You must use your Production/Main credentials for this login.</p>
9495
<FormGroup>
9596
<Label for="email">Email</Label>
9697
<Input

src/components/EductionPortal/Login/__tests__/EPLogin.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ describe('EPLogin component', () => {
8989
screen.getByText('Enter your current user credentials to access the Good Education Portal'),
9090
).toBeInTheDocument();
9191
});
92+
it('check if Note: You must use your Production/Main credentials for this login. header displays as expected', () => {
93+
renderComponent(store);
94+
expect(
95+
screen.getByText('Note: You must use your Production/Main credentials for this login.'),
96+
).toBeInTheDocument();
97+
});
9298
it('check if email label is displaying as expected', () => {
9399
renderComponent(store);
94100
expect(screen.getByText('Email')).toBeInTheDocument();
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { useEffect } from 'react';
2+
import { useDispatch } from 'react-redux';
3+
import { getUserProfileBasicInfo } from 'actions/userManagement';
4+
import Banner from '../questionpages/Banner';
5+
import QuestionnaireInfo from '../questionpages/QuestionnaireInfo';
6+
import InfoForm from '../questionpages/InfoForm';
7+
import Progress from '../questionpages/Progress';
8+
import '../styles/hgnform.css';
9+
10+
function Page1() {
11+
const dispatch = useDispatch();
12+
dispatch(getUserProfileBasicInfo());
13+
useEffect(() => {
14+
window.scrollTo(0, 0);
15+
}, []);
16+
17+
return (
18+
<div className="hgnform">
19+
<Banner />
20+
<QuestionnaireInfo />
21+
<InfoForm />
22+
<Progress progressValue={16.67 * 1} />
23+
</div>
24+
);
25+
}
26+
27+
export default Page1;
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { useEffect, useRef } from 'react';
2+
import Banner from '../questionpages/Banner';
3+
import Progress from '../questionpages/Progress';
4+
import QuestionnaireHeader from '../questionpages/QuestionnaireHeader';
5+
import GeneralQuestions from '../questionpages/GeneralQuestions';
6+
7+
function Page2() {
8+
const headerRef = useRef(null);
9+
10+
useEffect(() => {
11+
if (headerRef.current) {
12+
headerRef.current.scrollIntoView({ behavior: 'auto', block: 'start' });
13+
}
14+
}, []);
15+
16+
return (
17+
<div className="hgnform">
18+
<Banner />
19+
<QuestionnaireHeader ref={headerRef} />
20+
<GeneralQuestions />
21+
<Progress progressValue={16.67 * 2} />
22+
</div>
23+
);
24+
}
25+
26+
export default Page2;

0 commit comments

Comments
 (0)