-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into force-v1-va-process-list
- Loading branch information
Showing
38 changed files
with
648 additions
and
359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/applications/edu-benefits/feedback-tool/components/ListItem.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import React, { Fragment } from 'react'; | ||
import PageLink from './PageLink'; | ||
|
||
const ListItem = ({ item, className }) => { | ||
return ( | ||
<li> | ||
{item.content.map((ele, index) => { | ||
if (ele.type === 'link') { | ||
return ( | ||
<Fragment key={index}> | ||
<PageLink | ||
href={ele.href} | ||
target={ele.target} | ||
text={ele.value} | ||
isEmail={ele.isEmail} | ||
/> | ||
{index !== item.content.length - 1 && | ||
!ele.value.endsWith('System') | ||
? ' ' | ||
: ''} | ||
</Fragment> | ||
); | ||
} | ||
if (ele.type === 'phone') { | ||
return ( | ||
<Fragment key={index}> | ||
<va-telephone | ||
contact={ele.value} | ||
tty={ele.tty} | ||
international={ele.international} | ||
/> | ||
</Fragment> | ||
); | ||
} | ||
return ( | ||
<span className={className?.li} key={index}> | ||
{ele.value} | ||
</span> | ||
); | ||
})} | ||
</li> | ||
); | ||
}; | ||
|
||
export default ListItem; |
17 changes: 17 additions & 0 deletions
17
src/applications/edu-benefits/feedback-tool/components/Lists.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import ListItem from './ListItem'; | ||
|
||
const Lists = ({ items, className }) => { | ||
return ( | ||
<ul className={className?.ul}> | ||
{items.map((item, index) => { | ||
return <ListItem key={index} item={item} className={className} />; | ||
})} | ||
</ul> | ||
); | ||
}; | ||
Lists.propTypes = { | ||
items: PropTypes.array, | ||
}; | ||
export default Lists; |
16 changes: 16 additions & 0 deletions
16
src/applications/edu-benefits/feedback-tool/components/NeedHelp.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from 'react'; | ||
import Lists from './Lists'; | ||
import { getHelpList } from '../constants'; | ||
|
||
const NeedHelp = () => { | ||
return ( | ||
<div slot="content"> | ||
<Lists | ||
className={{ li: 'vads-u-font-weight--bold', ul: 'list-style' }} | ||
items={getHelpList} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default NeedHelp; |
11 changes: 11 additions & 0 deletions
11
src/applications/edu-benefits/feedback-tool/components/PageLink.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
|
||
const PageLink = ({ href, text, target, isEmail }) => { | ||
return ( | ||
<a href={isEmail ? `mailto:${href}` : href} target={target}> | ||
{text} | ||
</a> | ||
); | ||
}; | ||
|
||
export default PageLink; |
34 changes: 34 additions & 0 deletions
34
src/applications/edu-benefits/feedback-tool/components/Table.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React from 'react'; | ||
|
||
function Table() { | ||
return ( | ||
<div className="custom-table"> | ||
<table className="usa-table"> | ||
<tbody> | ||
<tr> | ||
<th scope="row">Recruiting/Marketing Practices</th> | ||
<td>Post-Graduation Job Opportunities</td> | ||
<td>Release of transcripts</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Accreditation</th> | ||
<td>Change in Degree Plan/Requirements</td> | ||
<td>Transfer of Credits</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Financial Issues (e.g. Tuition/Fee charges)</th> | ||
<td>Quality of Education</td> | ||
<td>Refund Issues</td> | ||
</tr> | ||
<tr> | ||
<th scope="row">Student Loans</th> | ||
<td>Grade Policy</td> | ||
<td>Other</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
); | ||
} | ||
|
||
export default Table; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
155 changes: 155 additions & 0 deletions
155
src/applications/edu-benefits/feedback-tool/constants/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
export const complaintList = [ | ||
{ | ||
content: [ | ||
{ | ||
type: 'text', | ||
value: 'Military Tuition Assistance or MyCAA - ', | ||
}, | ||
{ | ||
type: 'link', | ||
value: 'Postsecondary Education Complaint System', | ||
href: 'https://pecs.militaryonesource.mil/pecs/', | ||
target: '_blank', | ||
}, | ||
{ | ||
type: 'text', | ||
value: | ||
'. Federal financial aid (e.g., Pell Grants and federal loans) - ', | ||
}, | ||
{ | ||
type: 'link', | ||
value: 'Department of Education (email complaint)', | ||
href: 'mailto:Compliancecomplaints@ed.gov', | ||
isEmail: true, | ||
}, | ||
], | ||
}, | ||
{ | ||
content: [ | ||
{ | ||
type: 'link', | ||
value: 'Consumer', | ||
href: 'https://www.consumerfinance.gov/complaint/', | ||
target: '_blank', | ||
}, | ||
{ | ||
type: 'text', | ||
value: 'Private student loans – ', | ||
}, | ||
{ | ||
type: 'link', | ||
value: 'Financial Protection Bureau', | ||
href: 'https://www.consumerfinance.gov/complaint/', | ||
target: '_blank', | ||
}, | ||
], | ||
}, | ||
]; | ||
export const prepareList = [ | ||
{ | ||
content: [ | ||
{ | ||
type: 'text', | ||
value: 'Provide your school’s name and address.', | ||
}, | ||
], | ||
}, | ||
{ | ||
content: [ | ||
{ | ||
type: 'text', | ||
value: 'Tell us the education benefits you’re using.', | ||
}, | ||
], | ||
}, | ||
{ | ||
content: [ | ||
{ | ||
type: 'text', | ||
value: | ||
'Give us your feedback. Please provide as much detail as possible to understand your issue.', | ||
}, | ||
], | ||
}, | ||
{ | ||
content: [ | ||
{ | ||
type: 'text', | ||
value: 'Let us know how you think we could resolve your issue.', | ||
}, | ||
], | ||
}, | ||
{ | ||
content: [ | ||
{ | ||
type: 'text', | ||
value: | ||
'Provide your email address if you want us to respond to you directly.', | ||
}, | ||
], | ||
}, | ||
]; | ||
export const getHelpList = [ | ||
{ | ||
content: [ | ||
{ | ||
type: 'text', | ||
value: 'GI Bill Hotline: ', | ||
}, | ||
{ | ||
type: 'phone', | ||
value: '8884424551', | ||
}, | ||
], | ||
}, | ||
{ | ||
content: [ | ||
{ | ||
type: 'text', | ||
value: 'Students Outside the U.S.: ', | ||
}, | ||
{ | ||
type: 'phone', | ||
value: '9187815678', | ||
international: true, | ||
}, | ||
], | ||
}, | ||
{ | ||
content: [ | ||
{ | ||
type: 'text', | ||
value: 'VA benefits hotline: ', | ||
}, | ||
{ | ||
type: 'phone', | ||
value: '8008271000', | ||
}, | ||
], | ||
}, | ||
{ | ||
content: [ | ||
{ | ||
type: 'text', | ||
value: 'MyVA411 main information line: ', | ||
}, | ||
{ | ||
type: 'phone', | ||
value: '8006982411', | ||
}, | ||
], | ||
}, | ||
{ | ||
content: [ | ||
{ | ||
type: 'text', | ||
value: 'Telecommunications Relay Services (using TTY) ', | ||
}, | ||
{ | ||
type: 'phone', | ||
value: '711', | ||
tty: true, | ||
}, | ||
], | ||
}, | ||
]; |
Oops, something went wrong.