forked from ETS-Next-Gen/writing_observer
-
Notifications
You must be signed in to change notification settings - Fork 2
Writing Portfolio Dashboard #151
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
Open
JohnDamilola
wants to merge
3
commits into
merge-8-20-25
Choose a base branch
from
dami-portfolio
base: merge-8-20-25
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
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 hidden or 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 +1 @@ | ||
| 0.1.0+2025.08.15T13.29.30.819Z.f61cb8b1.master | ||
| 0.1.0+2026.01.05T18.09.47.3NZ.b995bb5.dami.portfolio |
This file contains hidden or 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,41 @@ | ||
| # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
|
||
| # dependencies | ||
| /node_modules | ||
| /.pnp | ||
| .pnp.* | ||
| .yarn/* | ||
| !.yarn/patches | ||
| !.yarn/plugins | ||
| !.yarn/releases | ||
| !.yarn/versions | ||
|
|
||
| # testing | ||
| /coverage | ||
|
|
||
| # next.js | ||
| /.next/ | ||
| /out/ | ||
|
|
||
| # production | ||
| /build | ||
|
|
||
| # misc | ||
| .DS_Store | ||
| *.pem | ||
|
|
||
| # debug | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| .pnpm-debug.log* | ||
|
|
||
| # env files (can opt-in for committing if needed) | ||
| .env* | ||
|
|
||
| # vercel | ||
| .vercel | ||
|
|
||
| # typescript | ||
| *.tsbuildinfo | ||
| next-env.d.ts |
This file contains hidden or 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,36 @@ | ||
| This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). | ||
|
|
||
| ## Getting Started | ||
|
|
||
| First, run the development server: | ||
|
|
||
| ```bash | ||
| npm run dev | ||
| # or | ||
| yarn dev | ||
| # or | ||
| pnpm dev | ||
| # or | ||
| bun dev | ||
| ``` | ||
|
|
||
| Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. | ||
|
|
||
| You can start editing the page by modifying `app/page.js`. The page auto-updates as you edit the file. | ||
|
|
||
| This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel. | ||
|
|
||
| ## Learn More | ||
|
|
||
| To learn more about Next.js, take a look at the following resources: | ||
|
|
||
| - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. | ||
| - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. | ||
|
|
||
| You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome! | ||
|
|
||
| ## Deploy on Vercel | ||
|
|
||
| The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. | ||
|
|
||
| Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details. |
This file contains hidden or 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,5 @@ | ||
| rm -rf out/ | ||
| npm run build | ||
| rm -rf ../wo_portfolio_diff/wo_portfolio_diff/portfolio_diff/ | ||
| mkdir ../wo_portfolio_diff/wo_portfolio_diff/portfolio_diff/ | ||
| cp -r out/ ../wo_portfolio_diff/wo_portfolio_diff/portfolio_diff/ |
This file contains hidden or 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,14 @@ | ||
| import { dirname } from "path"; | ||
| import { fileURLToPath } from "url"; | ||
| import { FlatCompat } from "@eslint/eslintrc"; | ||
|
|
||
| const __filename = fileURLToPath(import.meta.url); | ||
| const __dirname = dirname(__filename); | ||
|
|
||
| const compat = new FlatCompat({ | ||
| baseDirectory: __dirname, | ||
| }); | ||
|
|
||
| const eslintConfig = [...compat.extends("next/core-web-vitals")]; | ||
|
|
||
| export default eslintConfig; |
This file contains hidden or 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,7 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "paths": { | ||
| "@/*": ["./src/*"] | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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,14 @@ | ||
| # `lo_event` is the Learning Observer event library (and also `lo_assess` within it is the Learning Observer activity library, which should be factored out eventually). | ||
|
|
||
| # * It's a library, and there's no practical stand-alone way to do more extensive development without some use-cases. This is a good set of use cases. | ||
| # * As we develop those, we often make changes to `lo_event` and `lo_assess`. Quite a lot, actually. | ||
|
|
||
| # This script packages `lo_event` into a node package, wipes the `next.js` cache (which often contains relics before changes), and installs it. | ||
|
|
||
| # Without this, development of `lo_event` is painful. Even with this, in an ideal case, we would rerun this whenever there were changes to `lo_event` automatically with some kind of watch daemon. | ||
| rm -Rf .next/cache/ | ||
| pushd ../lo_event/ | ||
| npm run prebuild | ||
| npm pack | ||
| popd | ||
| npm install ../lo_event/lo_event-0.0.3.tgz --no-save |
This file contains hidden or 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,21 @@ | ||
| /** @type {import('next').NextConfig} */ | ||
| const nextConfig = { | ||
| basePath: "/_next/wo_portfolio_diff/portfolio_diff", | ||
| eslint: { | ||
| ignoreDuringBuilds: true, | ||
| }, | ||
| transpilePackages: ["lo_event", "lo_dash_react_components"], | ||
| webpack: ( | ||
| config, | ||
| { buildId, dev, isServer, defaultLoaders, nextRuntime, webpack } | ||
| ) => { | ||
| config.resolve.fallback = { | ||
| ...config.resolve.fallback, | ||
| fs: false, // tells Webpack to ignore fs in client bundle | ||
| }; | ||
| return config; | ||
| }, | ||
| output: "export", | ||
| }; | ||
|
|
||
| export default nextConfig; |
This file contains hidden or 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,33 @@ | ||
| { | ||
| "name": "portfolio_diff", | ||
| "version": "0.1.0", | ||
| "private": true, | ||
| "scripts": { | ||
| "dev": "next dev", | ||
| "build": "next build", | ||
| "start": "next start", | ||
| "lint": "next lint" | ||
| }, | ||
| "dependencies": { | ||
| "babel-loader": "^10.0.0", | ||
| "echarts": "^6.0.0", | ||
| "echarts-for-react": "^3.0.5", | ||
| "framer-motion": "^12.23.6", | ||
| "lo_dash_react_components": "file:../lo_dash_react_components", | ||
| "lo_event": "file:../lo_event", | ||
| "lucide-react": "^0.525.0", | ||
| "next": "15.3.5", | ||
| "react": "^19.0.0", | ||
| "react-dom": "^19.0.0", | ||
| "react-redux": "^9.2.0", | ||
| "recharts": "^3.1.2", | ||
| "redux": "^5.0.1" | ||
| }, | ||
| "devDependencies": { | ||
| "@eslint/eslintrc": "^3", | ||
| "@tailwindcss/postcss": "^4", | ||
| "eslint": "^9", | ||
| "eslint-config-next": "15.3.5", | ||
| "tailwindcss": "^4" | ||
| } | ||
| } |
This file contains hidden or 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,5 @@ | ||
| const config = { | ||
| plugins: ["@tailwindcss/postcss"], | ||
| }; | ||
|
|
||
| export default config; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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,70 @@ | ||
| "use client"; | ||
|
|
||
| import Link from "next/link"; | ||
| import { Home } from "lucide-react"; | ||
| import PropTypes from "prop-types"; | ||
|
|
||
| export default function Breadcrumb({ | ||
| items = [], | ||
| homeHref = "/", | ||
| homeLabel = "Dashboard", | ||
| className = "", | ||
| }) { | ||
| const wrapCls = `mb-4 ${className}`.trim(); | ||
|
|
||
| return ( | ||
| <nav className={wrapCls} aria-label="Breadcrumb"> | ||
| <ol className="flex items-center text-sm text-gray-600"> | ||
| {/* Home */} | ||
| <li className="flex items-center"> | ||
| <Link | ||
| href={homeHref} | ||
| className="flex items-center gap-1 text-gray-900 hover:text-blue-600" | ||
| > | ||
| <Home className="h-4 w-4" /> | ||
| {homeLabel} | ||
| </Link> | ||
| </li> | ||
|
|
||
| {/* Trail */} | ||
| {items.map((item, idx) => { | ||
| const isLast = idx === items.length - 1; | ||
| return ( | ||
| <li key={`${item.label}-${idx}`} className="flex items-center"> | ||
| <span className="mx-2 text-gray-400">/</span> | ||
| {item.href && !isLast ? ( | ||
| <Link | ||
| href={item.href} | ||
| className="hover:text-gray-900 max-w-[200px] truncate" | ||
| > | ||
| {item.label} | ||
| </Link> | ||
| ) : ( | ||
| <span | ||
| className={`max-w-[240px] truncate ${ | ||
| isLast ? "text-gray-900 font-medium" : "text-gray-700" | ||
| }`} | ||
| {...(isLast ? { "aria-current": "page" } : {})} | ||
| > | ||
| {item.label} | ||
| </span> | ||
| )} | ||
| </li> | ||
| ); | ||
| })} | ||
| </ol> | ||
| </nav> | ||
| ); | ||
| } | ||
|
|
||
| Breadcrumb.propTypes = { | ||
| items: PropTypes.arrayOf( | ||
| PropTypes.shape({ | ||
| label: PropTypes.string.isRequired, | ||
| href: PropTypes.string, | ||
| }) | ||
| ), | ||
| homeHref: PropTypes.string, | ||
| homeLabel: PropTypes.string, | ||
| className: PropTypes.string, | ||
| }; |
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.
Are these
.svgs needed?