-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isolating 21a sub app #33262
Merged
Merged
isolating 21a sub app #33262
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
0b9610c
isolating 21a sub app
chumpy 54b2b98
Merge branch 'main' into art/96895/isolate-21a-app
chumpy 68aa00e
bettere versions
chumpy a2beea6
Merge branch 'main' into art/96895/isolate-21a-app
chumpy 107a474
moving store and updating readme
chumpy 9550d28
Merge branch 'art/96895/isolate-21a-app' of github.com:department-of-…
chumpy 3ea71d2
Merge branch 'main' into art/96895/isolate-21a-app
chumpy 625078c
fixing base package.json
chumpy a6aaa6c
Merge branch 'main' into art/96895/isolate-21a-app
chumpy 1c6ae7a
Merge branch 'main' into art/96895/isolate-21a-app
chumpy 4074d3a
Merge branch 'main' into art/96895/isolate-21a-app
chumpy bcedb75
Merge branch 'main' into art/96895/isolate-21a-app
chumpy e53d12a
Merge branch 'main' into art/96895/isolate-21a-app
chumpy 22d1393
Merge branch 'main' into art/96895/isolate-21a-app
chumpy 12d302f
Merge branch 'main' into art/96895/isolate-21a-app
chumpy 61a8443
Merge branch 'main' into art/96895/isolate-21a-app
chumpy 925361c
Merge branch 'main' into art/96895/isolate-21a-app
chumpy 37f0dca
Merge branch 'main' into art/96895/isolate-21a-app
chumpy 33c7afa
Merge branch 'main' into art/96895/isolate-21a-app
chumpy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 1 addition & 5 deletions
6
src/applications/accredited-representative-portal/accreditation/21a/README.md
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 |
---|---|---|
@@ -1,6 +1,2 @@ | ||
### 🚨WIP Status and Dependency on the `representative` Application🚨 | ||
This sub-application is incomplete and its development has been paused. It is almost dependency-free from the `representative` application that it might eventually live under except for the following imports: | ||
- `Header` | ||
- `Footer` | ||
- `createReduxStore` | ||
- `SIGN_IN_URL` | ||
This sub-application is incomplete and its development has been paused. It is dependency-free from the `representative` application that it might eventually live under. |
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
77 changes: 77 additions & 0 deletions
77
...ns/accredited-representative-portal/accreditation/21a/components/common/Footer/Footer.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,77 @@ | ||
import React from 'react'; | ||
import { replaceWithStagingDomain } from '~/platform/utilities/environment/stagingDomains'; | ||
|
||
const Footer = () => { | ||
return ( | ||
<footer data-testid="arp-footer" className="footer arp-footer"> | ||
<div className="footer-inner"> | ||
<div className="usa-grid usa-grid-full footer-banner vads-u-padding-top--2"> | ||
<h3>Accredited Representative Portal</h3> | ||
<p> | ||
An official website of the{' '} | ||
<a className="vads-u-color--white" href="https://va.gov"> | ||
U.S. Department of Veterans Affairs | ||
</a> | ||
</p> | ||
<a href="/" title="Go to VA.gov"> | ||
<img | ||
src={replaceWithStagingDomain( | ||
'https://www.va.gov/img/homepage/va-logo-white.png', | ||
)} | ||
alt="VA logo and Seal, U.S. Department of Veterans Affairs" | ||
width="200" | ||
className="vads-u-height--auto" | ||
data-testid="footer-full-logo" | ||
/> | ||
</a> | ||
</div> | ||
<div | ||
className="usa-grid usa-grid-full va-footer-links-bottom" | ||
data-testid="footer-full-links-bottom" | ||
> | ||
<ul> | ||
<li> | ||
<a href="https://department.va.gov/about/">About VA</a> | ||
</li> | ||
<li> | ||
<a href="https://va.gov/accessibility-at-va">Accessibility</a> | ||
</li> | ||
<li> | ||
<a href="https://department.va.gov/foia/"> | ||
Freedom of Information Act (FOIA) | ||
</a> | ||
</li> | ||
<li> | ||
<a href="https://va.gov/oig/">Office of Inspector General</a> | ||
</li> | ||
<li> | ||
<a href="https://va.gov/privacy-policy/"> | ||
Privacy, policies, and legal information | ||
</a> | ||
</li> | ||
<li> | ||
<a href="https://va.gov/ormdi/NOFEAR_Select.asp"> | ||
No FEAR Act Data | ||
</a> | ||
</li> | ||
<li> | ||
<a href="https://va.gov/performance-dashboard/"> | ||
VA performance dashboard | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<div className="usa-grid usa-grid-full"> | ||
<p> | ||
Looking for U.S. government information and services? Visit{' '} | ||
<a className="vads-u-color--white" href="https://usa.gov"> | ||
USA.gov | ||
</a> | ||
</p> | ||
</div> | ||
</div> | ||
</footer> | ||
); | ||
}; | ||
|
||
export default Footer; |
17 changes: 17 additions & 0 deletions
17
...ns/accredited-representative-portal/accreditation/21a/components/common/Header/Header.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 MobileHeader from './MobileHeader/MobileHeader'; | ||
import WiderThanMobileHeader from './WiderThanMobileHeader/WiderThanMobileHeader'; | ||
|
||
import './Header.scss'; | ||
|
||
const Header = () => { | ||
return ( | ||
<header data-testid="arp-header" className="header arp-header"> | ||
<MobileHeader /> | ||
<WiderThanMobileHeader /> | ||
</header> | ||
); | ||
}; | ||
|
||
export default Header; |
106 changes: 106 additions & 0 deletions
106
...s/accredited-representative-portal/accreditation/21a/components/common/Header/Header.scss
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,106 @@ | ||
@import "~@department-of-veterans-affairs/css-library/dist/tokens/scss/variables"; | ||
@import "~@department-of-veterans-affairs/css-library/dist/stylesheets/mixins"; | ||
|
||
.arp-header { | ||
min-height: 78px; | ||
|
||
@media (min-width: $medium-screen) { | ||
min-height: 98px; | ||
} | ||
|
||
.va-header-logo-wrapper { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.user-nav { | ||
white-space: nowrap; | ||
|
||
.loading-icon-container { | ||
color: var(--vads-color-white); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
flex-grow: 1; | ||
} | ||
|
||
.icon { | ||
width: 26px; | ||
height: 24px; | ||
} | ||
|
||
.user-dropdown-email { | ||
margin-left: 4px; | ||
display: block; | ||
max-width: 120px; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
} | ||
} | ||
|
||
.mobile { | ||
.header-us-flag { | ||
height: 20px; | ||
} | ||
|
||
.expand-official-govt-explanation { | ||
font-size: 12px; | ||
} | ||
|
||
.govt-expanded-arrow { | ||
transform: rotate(180deg); | ||
transform-origin: 50% 50%; | ||
} | ||
|
||
.va-crisis-line-container { | ||
margin: 0px; | ||
} | ||
|
||
.arp-logo { | ||
width: 320px; | ||
} | ||
|
||
.user-nav { | ||
margin-left: 10px; | ||
|
||
.user-dropdown-email { | ||
max-width: 64px; | ||
} | ||
} | ||
|
||
@media (min-width: $medium-screen) { | ||
display: none !important; | ||
} | ||
} | ||
|
||
.wider-than-mobile { | ||
display: none; | ||
|
||
@media (min-width: $medium-screen) { | ||
display: block; | ||
|
||
.arp-logo { | ||
width: 480px; | ||
} | ||
|
||
.vet-toolbar { | ||
display: flex; | ||
justify-content: flex-end; | ||
flex: 0 1 300px; | ||
|
||
.user-nav { | ||
margin-inline: 10px; | ||
|
||
.loading-icon-container { | ||
width: 88px; | ||
} | ||
} | ||
} | ||
|
||
.va-header-logo-menu { | ||
padding-left: 10px; | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...sentative-portal/accreditation/21a/components/common/Header/MobileHeader/MobileHeader.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,20 @@ | ||
import React from 'react'; | ||
|
||
import MobileOfficialGovtWebsite from './MobileOfficialGovtWebsite'; | ||
import MobileLogoRow from './MobileLogoRow'; | ||
|
||
const MobileHeader = () => { | ||
return ( | ||
<div | ||
data-testid="mobile-header" | ||
className="vads-u-display--flex vads-u-flex-direction--column vads-u-margin--0 vads-u-padding--0 mobile" | ||
> | ||
<div className="vads-u-display--flex vads-u-flex-direction--column"> | ||
<MobileOfficialGovtWebsite /> | ||
</div> | ||
<MobileLogoRow /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default MobileHeader; |
38 changes: 38 additions & 0 deletions
38
...entative-portal/accreditation/21a/components/common/Header/MobileHeader/MobileLogoRow.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,38 @@ | ||
import React from 'react'; | ||
|
||
import UserNav from '../common/UserNav'; | ||
|
||
export const MobileLogoRow = () => { | ||
return ( | ||
<nav className="vads-u-display--flex vads-u-flex-direction--column vads-u-margin--0 vads-u-padding--0"> | ||
<div className="header-logo-row vads-u-background-color--primary-darker vads-u-display--flex vads-u-align-items--center vads-u-justify-content--space-between vads-u-padding-y--1p5 vads-u-padding-left--1p5 vads-u-padding-right--1"> | ||
<a | ||
data-testid="mobile-logo-row-logo-link" | ||
aria-label="VA logo" | ||
className="header-logo vads-u-display--flex vads-u-align-items--center vads-u-justify-content--center" | ||
href="/representative" | ||
> | ||
<img | ||
data-testid="mobile-logo-row-logo" | ||
className="arp-logo" | ||
src="/img/arp-header-logo.png" | ||
alt="VA Accredited Representative Portal Logo, U.S. Department of Veterans Affairs" | ||
/> | ||
</a> | ||
<div className="vads-u-display--flex vads-u-flex-direction--row vads-u-align-items--center"> | ||
<div className="profile-nav-container"> | ||
<div className="hidden-header vads-u-display--flex vads-u-align-items--center"> | ||
<div className="sign-in-nav"> | ||
<div className="sign-in-links"> | ||
<UserNav isMobile /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</nav> | ||
); | ||
}; | ||
|
||
export default MobileLogoRow; |
96 changes: 96 additions & 0 deletions
96
...tal/accreditation/21a/components/common/Header/MobileHeader/MobileOfficialGovtWebsite.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,96 @@ | ||
import React, { useState } from 'react'; | ||
import recordEvent from '~/platform/monitoring/record-event'; | ||
|
||
export const MobileOfficialGovtWebsite = () => { | ||
const [expanded, setExpanded] = useState(false); | ||
|
||
const onToggle = () => { | ||
if (expanded) { | ||
recordEvent({ event: 'int-accordion-collapse' }); | ||
} else { | ||
recordEvent({ event: 'int-accordion-expand' }); | ||
} | ||
|
||
setExpanded(!expanded); | ||
}; | ||
|
||
return ( | ||
<div className="vads-u-display--flex vads-u-flex-direction--column"> | ||
{/* Banner */} | ||
<div className="vads-u-background-color--gray-lightest vads-u-display--flex vads-u-align-items--center vads-u-justify-content--center vads-u-text-align--center vads-u-padding--0p5"> | ||
<img | ||
alt="U.S. flag" | ||
className="header-us-flag vads-u-margin-right--1" | ||
src="https://www.va.gov/img/tiny-usa-flag.png" | ||
/> | ||
{/* eslint-disable-next-line @department-of-veterans-affairs/prefer-button-component */} | ||
<button | ||
data-testid="official-govt-website-toggle-mobile" | ||
aria-controls="official-govt-site-explanation" | ||
aria-expanded={expanded ? 'true' : 'false'} | ||
className="expand-official-govt-explanation va-button-link vads-u-text-decoration--none vads-u-display--flex vads-u-align-items--center" | ||
onClick={onToggle} | ||
type="button" | ||
> | ||
An official website of the United States government. | ||
<svg | ||
aria-hidden="true" | ||
className={`vads-u-margin-left--0p5${ | ||
expanded ? ' govt-expanded-arrow' : '' | ||
}`} | ||
focusable="false" | ||
width="12" | ||
viewBox="6 6 12 12" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
fill="#005ea2" | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M16.59 8.59L12 13.17L7.41 8.59L6 10L12 16L18 10L16.59 8.59Z" | ||
/> | ||
</svg> | ||
</button> | ||
</div> | ||
{/* Expanded section */} | ||
{expanded && ( | ||
<div | ||
data-testid="official-govt-website-content-mobile" | ||
aria-hidden={expanded ? 'false' : 'true'} | ||
className="vads-u-background-color--gray-lightest vads-u-display--flex vads-u-flex-direction--column vads-u-padding--1p5 vads-u-padding-y--2" | ||
id="official-govt-site-explanation" | ||
> | ||
<div className="vads-u-display--flex vads-u-flex-direction--row vads-u-align-items--flex-start"> | ||
<img | ||
alt="Dot gov" | ||
className="usa-banner-icon usa-media_block-img" | ||
src="https://www.va.gov/img/icon-dot-gov.svg" | ||
/> | ||
<p className="vads-u-margin-top--0"> | ||
<strong>The .gov means it’s official.</strong> | ||
<br /> | ||
Federal government websites often end in .gov or .mil. Before | ||
sharing sensitive information, make sure you’re on a federal | ||
government site. | ||
</p> | ||
</div> | ||
<div className="vads-u-display--flex vads-u-flex-direction--row vads-u-align-items--flex-start vads-u-margin-top--2"> | ||
<img | ||
alt="SSL" | ||
className="usa-banner-icon usa-media_block-img" | ||
src="https://www.va.gov/img/icon-https.svg" | ||
/> | ||
<p className="vads-u-margin-top--0"> | ||
<strong>The site is secure.</strong> | ||
<br /> The <strong>https://</strong> ensures that you’re | ||
connecting to the official website and that any information you | ||
provide is encrypted and sent securely. | ||
</p> | ||
</div> | ||
</div> | ||
)} | ||
</div> | ||
); | ||
}; | ||
|
||
export default MobileOfficialGovtWebsite; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint disabled here