Skip to content
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

NJWE-2499 - Training Details frontend update #3093

Merged
merged 12 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ const nextConfig = {
REACT_APP_ENVIRONMENT: process.env.REACT_APP_ENVIRONMENT,
REACT_APP_PREVIEW_API: process.env.REACT_APP_PREVIEW_API,
REACT_APP_SPACE_ID: process.env.REACT_APP_SPACE_ID,
REACT_APP_FEATURE_CAREER_PATHWAYS: process.env.REACT_APP_FEATURE_CAREER_PATHWAYS,
REACT_APP_FEATURE_CAREER_PATHWAYS:
process.env.REACT_APP_FEATURE_CAREER_PATHWAYS,
REACT_APP_FEATURE_MULTILANG: process.env.REACT_APP_FEATURE_MULTILANG,
REACT_APP_FEATURE_PINPOINT: process.env.REACT_APP_FEATURE_PINPOINT,
REACT_APP_FEATURE_SHOW_PINPOINT_SEGMENTS: process.env.REACT_APP_FEATURE_SHOW_PINPOINT_SEGMENTS,
REACT_APP_FEATURE_SHOW_PINPOINT_SEGMENTS:
process.env.REACT_APP_FEATURE_SHOW_PINPOINT_SEGMENTS,
REACT_APP_SITE_NAME: process.env.REACT_APP_SITE_NAME,
REACT_APP_SITE_URL: process.env.REACT_APP_SITE_URL,
},
Expand All @@ -20,11 +22,15 @@ const nextConfig = {
async rewrites() {
return [
{
source: '/api/:path*',
destination: 'http://localhost:8080/:path*', // Proxy all API calls to backend
source: "/api/:path*",
destination: "http://localhost:8080/:path*", // Proxy all API calls to backend
},
];
},
sassOptions: {
// Silences the 'legacy-js-api' deprecation warning
silenceDeprecations: ["legacy-js-api"],
},
};

export default nextConfig;
6,687 changes: 1,937 additions & 4,750 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"react-paginate": "^8.2.0",
"react-to-print": "^3.0.2",
"run": "^1.5.0",
"sass": "^1.81.0",
"sass-loader": "^16.0.3"
"sass": "^1.82.0",
"sass-loader": "^16.0.4"
},
"devDependencies": {
"@chromatic-com/storybook": "^3.2.2",
Expand Down
74 changes: 74 additions & 0 deletions src/app/training/[code]/CipDrawer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
import { Drawer } from "@components/modules/Drawer";
import { Heading } from "@components/modules/Heading";

export const CipDrawer = ({
cipDrawerOpen,
setCipDrawerOpen,
}: {
cipDrawerOpen: boolean;
setCipDrawerOpen: (value: boolean) => void;
}) => {
return (
<Drawer open={cipDrawerOpen} setOpen={setCipDrawerOpen}>
<Heading level={3}>
Classification of Instructional Programs (CIP) codes
</Heading>
<p>
Classification of Instructional Programs (CIP) codes, are standardized
codes used to categorize academic programs and courses. Each program or
course is assigned a CIP code based on its content and subject matter.
<sup>1.</sup> <sup>2.</sup>
</p>
<p>
You can find a list of CIP codes{" "}
<a
href="https://nces.ed.gov/ipeds/cipcode/browse.aspx?y=56"
target="_blank"
rel="noopener noreferrer"
>
here.
</a>
</p>
<br />
<div className="small sources">
<span>
<sup>1.</sup> Sources
<ul>
<li>
National Center for Education Statistics (NCES):
<br />
<a
href="https://nces.ed.gov/ipeds/cipcode/"
target="_blank"
rel="noopener noreferrer"
>
https://nces.ed.gov/ipeds/cipcode/
</a>
</li>
<li>
U.S. Department of Education:
<br />
<a
href="https://www.ed.gov/"
target="_blank"
rel="noopener noreferrer"
>
https://www.ed.gov/
</a>
</li>
</ul>
</span>
<p>
<sup>2.</sup> This definition was generated with the help of{" "}
<a
href="https://chat.openai.com/"
target="_blank"
rel="noopener noreferrer"
>
chatGPT(3.5)
</a>
</p>
</div>
</Drawer>
);
};
Loading