Commit Graph
209 Commits
Author SHA1 Message Date
root 2b7eda656a Add the admin panel for managing site content
Server-rendered CMS at /admin, reachable only with an authenticated admin.
There was no way to change anything on the site without a database session,
while every mutating endpoint used to be anonymous, so the site was either
unmanageable or, before the API lock-down, wide open.

Everything runs through Server Actions, so the httpOnly
parsaaghayi_admin_session cookie set by the backend is read server-side and
forwarded as a bearer token. No token ever reaches client JavaScript and the
browser never talks to the backend cross-origin, so CORS and CSRF do not
apply. Unauthenticated visits to any panel route redirect to /admin/login.

Resources are declared once in a registry (src/app/lib/admin/resources.ts)
and the list, create and edit screens are generated from it, so adding a
content type is a data change rather than three new pages. Covered: posts,
categories, tags, projects, about-me.

Records are read from GET /api/admin/resources/{resource}, which returns
stored rows including every locale; the public endpoints only expose
translated display payloads and cannot populate an editing form.

Verified: tsc --noEmit clean, eslint clean, next build compiles and registers
all five admin routes as dynamic, and /admin, /admin/posts redirect 307 to
/admin/login while /admin/login renders.

Post bodies are rendered as text nodes, never as HTML.
2026-10-01 16:01:40 -04:00
parsa aghaei 76cf4da118 chore: force repo size recalculation
Deploy Frontend / deploy (push) Failing after 5m3s
2026-07-12 14:14:49 +03:30
parsa aghaei 228e8e9740 chore: remove Iranian mirror from CI workflow - use official Alpine repos
Deploy Frontend / deploy (push) Failing after 1m7s
2026-07-12 13:35:39 +03:30
parsa aghaei 7bf8321392 chore: remove committed node_modules from git
- Remove node_modules/ from git tracking
- Uncomment /node_modules in .gitignore
- Dependencies will be installed via CI/CD with VPN + Nexus cache
2026-07-12 13:29:58 +03:30
parsa aghaei dc529ffa4e fix: testimonials layout - fix card width/gap alignment, remove overflow-visible, adjust quote icon size 2026-06-29 14:47:48 +03:30
parsa aghaei 4ed83bbecf fix: project images not loading - use getCleanImgSrc for grid cards + fix URL path extraction 2026-06-29 14:00:22 +03:30
parsa aghaei 056f838172 fix: testimonial arrow layout/direction logic, language switcher fonts, getCleanImgSrc sanitizer 2026-06-29 13:45:40 +03:30
parsa aghaei 4f5cfc9f1e fix: locale sync in header/testimonials, dark mode icon CSS filters, invariant arrow logic 2026-06-29 11:19:21 +03:30
parsa aghaei a91adaff28 fix: testimonials card width + text wrapping, modal scroll structure, local image paths 2026-06-29 11:14:43 +03:30
parsa aghaei 8666d8067a fix: precise fixes - name spelling, nav i18n, header scroll logic, testimonials padding, Persian digits 2026-06-29 10:53:26 +03:30
parsa aghaei 79c229a93c fix: UI/UX regressions - header glassmorphic, dark mode icons, testimonials i18n, image remotePatterns 2026-06-29 09:57:51 +03:30
parsa aghaei 7dc79b3151 fix: sticky header blur on scroll, testimonials carousel 6 items + RTL arrows, project modal dual-column, smooth scroll, hero btn no-wrap 2026-06-29 09:32:40 +03:30
parsa aghaei dfedd18f66 images updated 2026-06-29 09:21:46 +03:30
parsa aghaei 470036d6b9 fix: hero button localization/hover, lang switcher dark mode, services grid, testimonials carousel, project modal, footer gap, back-to-top 2026-06-29 08:58:26 +03:30
DevOps 9797b71f55 test: retrigger frontend CI/CD after CRLF fix 2026-06-29 05:09:25 +00:00
parsa aghaei 4a973547c1 fix: replace pink accent with orange, fix RTL overlap, improve contrast and typography 2026-06-28 22:07:02 +03:30
DevOps 8c2c63904a test: trigger frontend CI/CD pipeline 2026-06-28 18:16:17 +00:00
DevOps 19c557a154 fix: add id field to Project interface to resolve TS error 2026-06-28 17:25:03 +00:00
DevOps 34243ff641 fix: resolve TS error in AboutMeContent - add CategoryKey type assertion for dynamic category access 2026-06-28 17:22:18 +00:00
DevOps 9f06b1aa4c retry: trigger deploy (DNS transient fix) 2026-06-28 17:18:59 +00:00
DevOps 88be19c5a5 fix: restore template literal backticks in layout.tsx className 2026-06-28 17:17:42 +00:00
DevOps be6e37b11f fix: self-host Google Fonts (Inter, JetBrains Mono) via localFont; fix tailwind border-border color 2026-06-28 17:15:13 +00:00
parsa aghaei adda6ae880 content: update hero and about me copy to professional senior engineer tone 2026-06-28 20:20:29 +03:30
parsa aghaei 83b5a2f22a style: implement dark theme, glassmorphism, and framer-motion architecture; chore: update seeders with professional copywriting for EN and FA languages 2026-06-28 20:20:29 +03:30
DevOps c145467405 test: trigger frontend CI/CD 2026-06-28 15:45:32 +00:00
parsa aghaei 76046331fc fix: add @next/swc-linux-x64-{gnu,musl} native binaries for offline Docker build 2026-06-28 19:00:17 +03:30
DevOps 412b7383c7 cleanup: remove trigger file 2026-06-28 15:10:02 +00:00
parsa aghaei 5532e9e3d9 feat: commit node_modules for offline CI/CD; skip npm ci, just npm run build 2026-06-28 17:41:24 +03:30
DevOps f013e4e883 test: trigger frontend CI/CD with offline build 2026-06-28 13:54:05 +00:00
DevOps e7fc2ae5b7 chore: commit node_modules for offline build 2026-06-28 13:52:33 +00:00
parsa aghaei 6a8d7053dc package-lock updated 2026-06-28 11:43:22 +03:30
parsa aghaei 7533f8c97c upgrade: Next.js 16 + React 19, codemod transforms (async APIs, middleware→proxy, ESLint flat config) 2026-06-28 11:41:00 +03:30
parsa aghaei c496863180 trigger ci 2026-06-28 11:11:37 +03:30
parsa aghaei ee8607ffc2 trigger ci 2026-06-27 14:07:32 +03:30
parsa aghaei 9cf11a0e49 fix: use arvancloud Alpine mirror (Liara returns 500), remove unused proxy 2026-06-27 11:38:21 +03:30
parsa aghaei 6d3e6d18a1 fix: revert Alpine mirror to Liara (CI containers cant reach Nexus) 2026-06-27 11:32:20 +03:30
parsa aghaei 77a5505b38 chore: trigger CI test 2026-06-27 11:22:55 +03:30
parsa aghaei 48efbe3d90 Switch Alpine mirror to Nexus proxy registry.parsaaghayi.ir 2026-06-27 11:00:46 +03:30
parsa aghaei c71a8d09cc fix deploy: revert to Liara mirror + add http proxy 172.17.0.1:3001 2026-06-27 09:51:46 +03:30
parsa aghaei 6f6354b714 fix deploy: use default package manager repos instead of broken mirror 2026-06-27 09:41:17 +03:30
parsa aghaei 8e0655ef60 test: trigger CI/CD pipeline 2026-06-23 19:39:30 +03:30
parsa aghaei 157e47521d fix: add vitest, testing-library, jsdom, vite-plugin-react to devDependencies 2026-06-23 19:33:31 +03:30
parsa aghaei a60c403d24 5.1-5.10: remove dead code/commented types; strict already on, no barrel files 2026-06-23 19:20:26 +03:30
parsa aghaei fcb7db4d06 4.4-4.7: set up vitest, react-testing-library, cypress; add component/E2E tests 2026-06-23 18:42:40 +03:30
parsa aghaei 3a0c5746b7 1.4-1.6: add rewrites, remove BFF handlers, update client to use relative URLs 2026-06-23 18:20:01 +03:30
DevOps 54a4f5564b test: verify Verdaccio npm registry in CI/CD 2026-06-23 13:00:39 +00:00
DevOps c9fe0f8646 test: full pipeline deploy 2026-06-23 12:28:08 +00:00
devops c0e32794ed fix deploy: use Liara Alpine mirror for apk 2026-06-23 11:26:52 +00:00
devops 3689f0b1b4 fix deploy: use sh shell (alpine has no bash) 2026-06-23 11:20:40 +00:00
devops 867ee145b1 fix deploy: add apk SSH install, use docker gateway IP 2026-06-23 11:18:54 +00:00