74 Commits
Author SHA1 Message Date
tiennm99 578009066f build: move from pnpm to npm
Replace pnpm-lock.yaml with package-lock.json. The seven security overrides
move to package.json#overrides, including the two version-scoped
brace-expansion entries, which npm resolves per major branch the same way
pnpm did.

pnpm-workspace.yaml's allowBuilds becomes package.json#allowScripts: npm 11
gates dependency install scripts the same way, so sharp and unrs-resolver stay
explicitly approved rather than silently enabled.
2026-08-17 12:02:57 +07:00
tiennm99 e8b590e9a3 Revert "Merge branch 'refactor/source-cleanup-and-viewer-split'"
This reverts commit 32123499cb, reversing
changes made to 2f5df7bbec.
2026-08-07 13:44:56 +07:00
tiennm99 32123499cb Merge branch 'refactor/source-cleanup-and-viewer-split'
History-preserving absorb: the branch's content lands in this merge
commit and is restored to the previous main tree in the next commit.
The branch ref is deleted after this merge; its history stays reachable
through the second parent.
2026-08-07 13:44:56 +07:00
tiennm99 2f5df7bbec Revert "Merge branch 'vercel/react-server-components-cve-vu-xejazm'"
This reverts commit 09afad997c, reversing
changes made to 3cef2ee4f4.
2026-08-07 13:44:56 +07:00
tiennm99 09afad997c Merge branch 'vercel/react-server-components-cve-vu-xejazm'
History-preserving absorb: the branch's content lands in this merge
commit and is restored to the previous main tree in the next commit.
The branch ref is deleted after this merge; its history stays reachable
through the second parent.
2026-08-07 13:44:56 +07:00
tiennm99 3cef2ee4f4 Revert "Merge branch 'feature/pages'"
This reverts commit 3741d1b754, reversing
changes made to 3c7c93323f.
2026-08-07 13:44:56 +07:00
tiennm99 3741d1b754 Merge branch 'feature/pages'
History-preserving absorb: the branch's content lands in this merge
commit and is restored to the previous main tree in the next commit.
The branch ref is deleted after this merge; its history stays reachable
through the second parent.
2026-08-07 13:44:56 +07:00
tiennm99 3c7c93323f Revert "Merge branch 'feature/svelte'"
This reverts commit cdfefce61d, reversing
changes made to 3d20f84a4c.
2026-08-07 13:44:56 +07:00
tiennm99 cdfefce61d Merge branch 'feature/svelte'
History-preserving absorb: the branch's content lands in this merge
commit and is restored to the previous main tree in the next commit.
The branch ref is deleted after this merge; its history stays reachable
through the second parent.
2026-08-07 13:44:56 +07:00
tiennm99 3d20f84a4c Revert "Merge branch 'feature/react'"
This reverts commit d14d951cbe, reversing
changes made to d557d87898.
2026-08-07 13:44:56 +07:00
tiennm99 d14d951cbe Merge branch 'feature/react'
History-preserving absorb: the branch's content lands in this merge
commit and is restored to the previous main tree in the next commit.
The branch ref is deleted after this merge; its history stays reachable
through the second parent.
2026-08-07 13:44:56 +07:00
tiennm99 d557d87898 fix(deps): resolve 23 Dependabot advisories
Clears all 23 open advisories (13 high, 10 moderate) on the default
branch.

next 16.2.10 -> 16.2.11 (18 of the 23 alerts), with eslint-config-next
kept in lockstep.

Bump the exact-pinned overrides that held two packages at vulnerable
versions: js-yaml 4.2.0 -> 4.3.0, postcss 8.5.16 -> 8.5.18.

Add two overrides that no upstream bump could reach:
- sharp 0.35.0, because next 16.2.11 declares ^0.34.5 and caret on a 0.x
  version excludes the patched 0.35.0
- brace-expansion 1.1.16 and 5.0.7, scoped per major branch, since
  minimatch@3 pulls 1.x and minimatch@10 pulls 5.x independently

Verified by absence: the lockfile no longer contains next 16.2.10,
sharp 0.34.5, postcss 8.5.16, js-yaml 4.2.0, brace-expansion 1.1.14 or
5.0.6. Checking only that patched versions are present would pass while a
vulnerable copy survived under a different parent.
2026-07-26 00:26:28 +07:00
tiennm99 f207130719 chore: remove Claude Code project config
Delete .claude/settings.json and drop the .claude/session-state entry from
.gitignore. Claude Code workspace state is kept outside this repo now.
2026-07-26 00:12:58 +07:00
tiennm99 332a31aa99 chore: remove dependabot version-update config 2026-07-25 14:14:58 +07:00
tiennm99 b7bebedc94 chore(deps): bump next 16.2.10, react 19.2.7, axios, date-fns, recharts and refresh lockfile 2026-07-17 18:04:45 +07:00
tiennm99 0bc13f5fda fix: remediate dependency advisories 2026-07-03 11:27:31 +07:00
tiennm99 3a39111cc4 fix(lint): pin eslint ^9 for eslint-config-next@16 compat; replace removed next lint (#37)
- Downgrade eslint ^10 → ^9 (eslint-config-next@16 requires eslint >=9)
- Rewrite eslint.config.mjs to use native flat config API (defineConfig +
  eslint-config-next/core-web-vitals direct import) instead of FlatCompat
  bridge which triggers a circular-structure JSON crash with eslint-config-next@16
- Remove @eslint/eslintrc devDep (no longer needed with native flat config)
2026-05-23 23:58:39 +07:00
tiennm99 2a23cd11b0 refactor: source cleanup, viewer split, tooling/docs sync (#35)
* refactor: clean up source files and split viewer into modules

Source-level cleanup with no behavior changes:
- Drop unused React default imports (React 19 auto JSX runtime)
- Hoist CHART_COLORS and add MAX_DOTS_DAYS / MAX_LEGEND_LINES named constants
- Use date-fns addDays/subDays in route helpers (no more setDate mutation)
- Drop dead current:0 field from progress state
- Use format() for export filename (local tz, not UTC)
- Replace key={idx} with composite domain keys in table rows
- Fix border-3 (non-existent in Tailwind v4) -> border-[3px] in spinner
- Fix html lang from "vi" to "en" to match UI language
- Sync description text to "Excel or CSV" across metadata and header

Restructure:
- Rename ExchangeRateViewer.js -> exchange-rate-viewer.js (kebab-case)
- Extract icons, storage helpers, and constants into sibling modules

* chore: fix lint script and align dependabot commit format

- Switch pnpm lint to "eslint src" (Next 16 removed "next lint")
- Add conventional commit-message prefix/scope to dependabot config

* docs: align README with current build and export reality

- Mention CSV alongside Excel in feature description
- Drop npm/yarn/bun commands (project locks to pnpm 11.1.1)
- Add Node 24+ / pnpm 11+ requirement note
- Fix edit-page path: src/app/page.js
2026-05-23 17:33:18 +07:00
tiennm99 1e33a343dd docs: align README with current build and export reality
- Mention CSV alongside Excel in feature description
- Drop npm/yarn/bun commands (project locks to pnpm 11.1.1)
- Add Node 24+ / pnpm 11+ requirement note
- Fix edit-page path: src/app/page.js
2026-05-23 17:23:23 +07:00
tiennm99 e178483bca chore: fix lint script and align dependabot commit format
- Switch pnpm lint to "eslint src" (Next 16 removed "next lint")
- Add conventional commit-message prefix/scope to dependabot config
2026-05-23 17:23:18 +07:00
tiennm99 2417946d9e refactor: clean up source files and split viewer into modules
Source-level cleanup with no behavior changes:
- Drop unused React default imports (React 19 auto JSX runtime)
- Hoist CHART_COLORS and add MAX_DOTS_DAYS / MAX_LEGEND_LINES named constants
- Use date-fns addDays/subDays in route helpers (no more setDate mutation)
- Drop dead current:0 field from progress state
- Use format() for export filename (local tz, not UTC)
- Replace key={idx} with composite domain keys in table rows
- Fix border-3 (non-existent in Tailwind v4) -> border-[3px] in spinner
- Fix html lang from "vi" to "en" to match UI language
- Sync description text to "Excel or CSV" across metadata and header

Restructure:
- Rename ExchangeRateViewer.js -> exchange-rate-viewer.js (kebab-case)
- Extract icons, storage helpers, and constants into sibling modules
2026-05-23 17:23:13 +07:00
tiennm99 6211658e7f chore: drop inapplicable dependabot ecosystems (#34) 2026-05-23 11:09:00 +07:00
tiennm99 dd391a2f0d chore: add dependabot config (#27) 2026-05-23 10:48:56 +07:00
tiennm99 8b96873f8e chore(node): set Node 24 as default via engines.node 2026-05-13 17:12:31 +07:00
tiennm99 543a264785 fix(pnpm): add allowBuilds for sharp and unrs-resolver (pnpm 11) 2026-05-13 16:51:50 +07:00
tiennm99 da1252b598 fix(node): require Node 22.13+ for pnpm 11.1.1 2026-05-13 16:44:11 +07:00
tiennm99 4cd035f265 chore: migrate from npm to pnpm
Replace package-lock.json with pnpm-lock.yaml and add packageManager field.
2026-05-13 10:20:25 +07:00
tiennm99 248851ab6a chore: add Apache-2.0 license 2026-04-29 21:33:36 +07:00
tiennm99 f93bc95ed9 Merge pull request #22 from tiennm99/dependabot/npm_and_yarn/next-16.2.2
build(deps): bump next from 16.1.5 to 16.2.2
2026-04-05 11:12:26 +07:00
tiennm99 c7790918af Merge pull request #21 from tiennm99/dependabot/npm_and_yarn/multi-bf05dc1ecf
build(deps): bump picomatch
2026-04-05 11:12:04 +07:00
tiennm99 38b6561e26 Merge pull request #20 from tiennm99/dependabot/npm_and_yarn/flatted-3.4.2
build(deps-dev): bump flatted from 3.3.3 to 3.4.2
2026-04-05 11:11:48 +07:00
tiennm99 8bd463227b feat: add responsive card layout for tables on mobile screens
Tables show as cards on small screens (<640px) with key rate fields
in a compact grid, while desktop retains the full table view.
2026-04-04 13:28:01 +07:00
tiennm99 e235aaff6d feat: add dark mode toggle with system/light/dark cycling
Three-state theme toggle persisted to localStorage. Supports
explicit light/dark override or falling back to system preference.
2026-04-04 13:27:02 +07:00
tiennm99 c7861eed5b feat: sync state to URL params for shareable/bookmarkable queries
Bank, currency, and date range are now reflected in URL search
params. URL params take priority over localStorage on load.
2026-04-04 13:25:52 +07:00
tiennm99 c1e37861d1 feat: add loading progress indicator with day count and progress bar
Show total days being fetched and an animated progress bar during
data loading to give users better feedback on long date ranges.
2026-04-04 13:25:14 +07:00
tiennm99 5d600e0ab9 feat: add retry with exponential backoff for bank API requests
Bank APIs can be flaky; retrying up to 2 times with exponential
backoff (500ms, 1s) improves reliability for transient failures.
2026-04-04 13:23:23 +07:00
tiennm99 ebe1bd3ba7 feat: improve UI/UX with consistent styling and better usability
Replace all inline styles with Tailwind classes, add SVG icons to
action buttons, right-align numeric table cells with tabular-nums,
add sticky table headers, highlight active date preset, improve
empty state with illustration, fix SSR hydration mismatch for
localStorage settings, and make buttons mobile-responsive.
2026-04-04 00:11:32 +07:00
tiennm99 75eed4a75a feat: add rate trend chart with recharts
Toggle "Show Chart" displays line chart above the table.
Supports single-bank and comparison mode visualizations.
Also modularized components: extracted tables, status indicators,
and chart into separate files for maintainability.
2026-04-03 23:27:21 +07:00
tiennm99 7c00e8b948 feat: add BIDV vs TCB comparison mode
Toggle fetches both banks simultaneously, merges by date+currency,
and displays side-by-side in a unified table. Bank selector disabled
in compare mode. Export handles comparison data format.
2026-04-03 23:24:56 +07:00
tiennm99 b2a7070d54 feat: add Excel (.xlsx) export alongside CSV
Use SheetJS (xlsx) for proper Excel file generation.
Both export buttons available: Excel as primary, CSV as secondary.
2026-04-03 23:22:57 +07:00
tiennm99 5c683f4c47 feat: add multi-currency support with currency selector
API now accepts currency param (USD, EUR, JPY, ALL, etc.).
Returns array of rates per date instead of single object.
Frontend adds currency dropdown with 12 common currencies plus "All".
2026-04-03 23:21:25 +07:00
tiennm99 3418461059 feat: remember last bank and date range in localStorage 2026-04-03 23:18:51 +07:00
tiennm99 ba1de1ae4f feat: auto-fetch exchange rates on page load 2026-04-03 23:18:07 +07:00
tiennm99 43b358e28c feat: add date range presets (Today, Last 7d, Last 30d, This month) 2026-04-03 23:17:26 +07:00
tiennm99 2132d97067 feat: add Enter key shortcut to trigger fetch 2026-04-03 23:16:47 +07:00
tiennm99 ea2f3dafcc refactor: parallel fetching, simplified page, consistent dates, cleanup
- Fetch dates in parallel chunks of 5 instead of sequentially
- Simplify page.js to server component, move default dates into viewer
- Replace showTable with hasFetched for clearer semantics
- Normalize date display to yyyy-MM-dd for both banks
- Remove unused Geist_Mono font import (~50KB savings)
- Change lang to "vi" for Vietnamese bank data context
- Clean up empty blocks and redundant variables in API route
2026-04-03 23:14:40 +07:00
tiennm99 339d779540 ci: add Claude Code project configuration 2026-04-03 23:03:43 +07:00
tiennm99 41dd014b75 feat: improve UI/UX with dark mode, better visual hierarchy, and accessibility
- Add card layout, loading spinner, error/empty states for better UX
- Full dark mode support for date picker, tables, and inputs via CSS vars
- Extract reusable RateTable component, remove duplicate table markup
- Fix CSV injection vulnerability with escapeCsv sanitizer
- Fix URL.createObjectURL memory leak
- Replace JS hover handlers with CSS hover for better performance
- Add aria-live region for screen reader announcements
- Fix metadata from default "Create Next App" to proper title
- Differentiate table stripe/hover colors in light mode
2026-04-03 23:02:53 +07:00
tiennm99 6a572e36aa feat: remove debug log 2025-07-08 13:07:00 +07:00
tiennm99 08402cbcf4 feat: handle for missing data days 2025-07-08 12:35:05 +07:00
tiennm99 bf9bd07ad2 fix: a day off on input 2025-07-08 12:27:34 +07:00
tiennm99 3915f6231e feat: update view 2025-06-27 22:48:24 +07:00
tiennm99 41287a9981 feat: add speed insights 2025-06-27 22:37:10 +07:00
tiennm99 69ffffb509 feat: add analytics 2025-06-27 22:30:24 +07:00
tiennm99 f41514c068 feat: update README 2025-06-27 22:17:34 +07:00
tiennm99 02d2e71fdf feat: tuning views 2025-06-27 22:15:10 +07:00
tiennm99 9e08d285d9 feat: refactor 2025-06-27 22:07:15 +07:00
tiennm99 1ec1dde0f5 feat: date picker 2025-06-27 21:55:43 +07:00
tiennm99 c3f2d7e60e feat(nextjs): migrate old logic 2025-06-27 21:44:44 +07:00
tiennm99 5e2aa76e29 feat: reinit nextjs 2025-06-27 12:20:40 +07:00
tiennm99 5fb686b9e1 fix(cf worker): deployable 2025-06-27 00:45:21 +07:00
tiennm99 334bc8d722 fix(ssl): unsafe legacy renegotiation disable
using axio instead of raw fetch
2025-06-27 00:25:26 +07:00
tiennm99 f3debe9cd9 feat: server api
- tcb: work
- bidv: not work
2025-06-27 00:12:33 +07:00
tiennm99 59d8625952 feat(svelte): separate css 2025-06-26 23:26:54 +07:00
tiennm99 e8d82e0120 feat(svelte): migrate to svelte 2025-06-26 23:22:28 +07:00
tiennm99 da3ebb5a45 feat: init svelte 2025-06-26 22:09:01 +07:00
tiennm99 cd1b11ba42 feat: init react 2025-06-26 21:43:52 +07:00
tiennm99 8a8ccb5109 feat: update css 2025-06-26 20:34:50 +07:00
tiennm99 68eb284362 feat(nextjs): migrate from raw html to nextjs 2025-06-26 20:24:06 +07:00
tiennm99 8d7eff85e3 feat: init next.js 2025-06-26 20:09:37 +07:00
tiennm99 aa3635450c feat(tcb): add tcb (WIP) 2025-06-26 18:21:57 +07:00
tiennm99 b71a09aba3 feat: init
Introduces a new index.html file providing a web interface to fetch and export USD exchange rates from BIDV for a selected date range. The README is updated with feature descriptions and relevant API endpoints.
2025-06-26 12:28:29 +07:00
tiennm99 cba0d5793b Clear and rewrite
The v0.dev prototype history above is superseded by the maintained
exchange-rate-export implementation replayed after this commit.
2026-08-07 12:59:55 +07:00
tiennm99 b74c97c74f chore: clear all Dependabot advisories and add CI (#16)
* build(deps): remove unused frameworks and clear all advisories

The v0 scaffold declared @remix-run/react, @sveltejs/kit, svelte, vue and
vue-router, none of which are imported anywhere in the app. Removing them
drops react-router, react-router-dom, turbo-stream, cookie, vite and their
trees, clearing 13 advisories outright.

Replace xlsx with write-excel-file. The npm release of xlsx is abandoned at
0.18.5, so its prototype pollution and ReDoS advisories have no registry fix,
and SheetJS only ships newer builds from its own CDN as a tarball with no
integrity hash, which pnpm rejects. write-excel-file is maintained, carries no
advisories, and pulls in only fflate. The export writes the same eight columns
in the same order to a sheet named "Exchange Rates", with every value still
written as a string. It also cuts the route's first-load JS from 264 kB to
163 kB.

Add pnpm overrides forcing the lowest release that closes every advisory
affecting the previously resolved version of each remaining transitive dep.
postcss is pinned exactly because pnpm's minimumReleaseAge policy rejects
releases younger than 24h during CI installs.

* ci: add typecheck and build workflow

The repository had no workflows. Type errors are skipped during builds via
next.config.mjs, so check them here where a regression fails the run.
Installs use --frozen-lockfile so dependency overrides cannot silently stop
applying.
2026-07-25 21:18:14 +07:00