Skip to content

Commit

Permalink
Merge branch 'main' into force-v1-va-process-list
Browse files Browse the repository at this point in the history
  • Loading branch information
ataker committed Mar 11, 2024
2 parents 88c5644 + bd4c9bd commit 4272186
Show file tree
Hide file tree
Showing 38 changed files with 648 additions and 359 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/daily-deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:
release_wait:
description: Minutes to wait before creating release
required: false
default: 5
default: '5'
commit_sha:
description: Deploy specific commit
required: false
schedule:
- cron: 0 20 * * 1-5
- cron: 0 19 * * 1-5

env:
CHANNEL_ID: C0MQ281DJ # vfs-platform-builds
Expand Down
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 src/applications/edu-benefits/feedback-tool/components/Lists.jsx
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;
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;
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 src/applications/edu-benefits/feedback-tool/components/Table.jsx
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;
6 changes: 4 additions & 2 deletions src/applications/edu-benefits/feedback-tool/config/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const { get, omit, set } = dataUtils;
import IntroductionPage from '../containers/IntroductionPage';
import ConfirmationPage from '../containers/ConfirmationPage';
import SchoolSelectField from '../components/SchoolSelectField.jsx';
import GetFormHelp from '../../components/GetFormHelp';
// import GetFormHelp from '../../components/GetFormHelp';

import {
accreditationLabel,
Expand All @@ -45,6 +45,7 @@ import {
import migrations from './migrations';

import manifest from '../manifest.json';
import NeedHelp from '../components/NeedHelp';

const {
address: applicantAddress,
Expand Down Expand Up @@ -177,7 +178,8 @@ const formConfig = {
},
title: 'GI Bill® School Feedback Tool',
preSubmitInfo,
getHelp: GetFormHelp,
// getHelp: GetFormHelp,
getHelp: NeedHelp,
footerContent: FormFooter,
transformForSubmit: transform,
chapters: {
Expand Down
155 changes: 155 additions & 0 deletions src/applications/edu-benefits/feedback-tool/constants/index.js
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,
},
],
},
];

0 comments on commit 4272186

Please sign in to comment.