Skip to content

Commit

Permalink
remove test profile page as part of clean up, update dasbhoard UI per…
Browse files Browse the repository at this point in the history
… figma (#29246)
  • Loading branch information
hemeshvpatel committed Apr 18, 2024
1 parent 1eb3102 commit 548d5fc
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 87 deletions.
2 changes: 0 additions & 2 deletions src/applications/ask-va/containers/DashboardCards.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ const DashboardCards = () => {
inquiries.length > 0 &&
inquiries.some(card => card.levelOfAuthentication === 'Business');

// Now use sortedInquiries in your map function instead of inquiries

const getData = async () => {
const response = await apiRequest(DASHBOARD_DATA)
.then(res => {
Expand Down
69 changes: 57 additions & 12 deletions src/applications/ask-va/containers/IntroductionPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,61 @@ const IntroductionPage = props => {

{loggedIn ? (
<>
<Link className="vads-c-action-link--blue" to={getStartPage}>
Create new question
<Link className="vads-c-action-link--green" to={getStartPage}>
Ask a new question
</Link>
<div className="vads-u-margin-top--5 vads-u-margin-bottom--5">
<va-accordion
disable-analytics={{
value: 'false',
}}
open-single
section-heading={{
value: 'null',
}}
uswds={{
value: 'true',
}}
>
<va-accordion-item
header="Only use Ask VA for non-urgent questions"
id="first"
>
<p>
It can take up to
<strong>7 business days</strong> to get a response.
</p>
<p>
If you need help now, use one of these urgent communication
options:
</p>
<ul>
<li>
<strong>
If you’re in crisis or having thoughts of suicide,
</strong>{' '}
connect with our Veterans Crisis Line. We offer confidential
support anytime, day or night.{' '}
<a href="https://www.veteranscrisisline.net">
Connect with Veterans Crisis Line
</a>
</li>
<li>
<strong>
If you think your life or health is in danger,
</strong>{' '}
call{' '}
<va-telephone
contact="911"
message-aria-describedby="Emergency care contact number"
/>
, or go to the nearest emergency room.
</li>
</ul>
</va-accordion-item>
</va-accordion>
</div>

<DashboardCards />
</>
) : (
Expand Down Expand Up @@ -109,19 +161,12 @@ const IntroductionPage = props => {
Continue without signing in
</Link>
</p>
<h2>Check the status of your question</h2>
<p className="vads-u-margin--0">Reference number</p>
<VaSearchInput label="Reference number" />
</div>
</>
)}

<h2>Check the status of your question</h2>
<p className="vads-u-margin--0">Reference number</p>
<VaSearchInput label="Reference number" />
<Link
className="vads-c-action-link--blue vads-u-margin-top--2"
to="/user/profile-test"
>
User Profile Test
</Link>
</div>
);
};
Expand Down
68 changes: 0 additions & 68 deletions src/applications/ask-va/containers/ProfilePage.jsx

This file was deleted.

5 changes: 0 additions & 5 deletions src/applications/ask-va/routes.jsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import { createRoutesWithSaveInProgress } from 'platform/forms/save-in-progress/helpers';
import formConfig from './config/form';
import App from './containers/App.jsx';
import ProfileTest from './containers/ProfilePage.jsx';
import ResponseInboxPage from './containers/ResponseInboxPage';

const routes = [
{
path: '/user/dashboard/:id',
component: ResponseInboxPage,
},
{
path: '/user/profile-test',
component: ProfileTest,
},
{
path: '/',
component: App,
Expand Down

0 comments on commit 548d5fc

Please sign in to comment.