Commit Graph

29 Commits

Author SHA1 Message Date
SepComet afa01ce2af Reduce Seafile manifest churn when endpoint settings change
Store Seafile references as share tokens and resolve full URLs at sync time, while removing the now-obsolete temporary access notice from the homepage after HTTPS migration.

Constraint: Seafile host/domain can change independently from content manifests

Rejected: Keeping /f/<token>/?dl=1 in manifest entries | repeats fixed URL boilerplate and increases bulk-edit risk

Confidence: high

Scope-risk: narrow

Directive: Keep Seafile manifest values token-first unless a non-standard external link is explicitly required

Tested: npm run build; ./scripts/deploy-homepage.sh --dev-deploy

Not-tested: Manual click-through verification for every share/download link on production domain

Co-authored-by: OmX <omx@oh-my-codex.dev>
2026-05-11 20:23:23 +08:00
SepComet 811f8199e0 区分开发部署与全量部署,减少样式迭代发布负担
Constraint: 需要保留公网可见的真实部署路径,同时降低日常样式改动的部署成本
Rejected: 仅保留 --fast | 不会重建镜像,无法可靠看到代码/样式变更
Confidence: high
Scope-risk: narrow
Directive: 日常页面/样式迭代优先使用 --dev-deploy,资源或日志更新再使用 --full-deploy
Tested: bash -n scripts/deploy-homepage.sh; scripts/deploy-homepage.sh --help; ./scripts/deploy-homepage.sh --dev-deploy; ./scripts/deploy-homepage.sh --full-deploy
Not-tested: 生产域名切换后的反代行为
2026-05-10 15:27:08 +08:00
SepComet 84159db417 Make project cards easier to scan in dense three-column grids
Constraint: Keep projects page in a 3-column grid while reducing line-wrap pressure in card metadata/action areas
Rejected: Keeping metadata and actions split into side-by-side columns | caused unstable wrapping and noisy visual rhythm
Confidence: high
Scope-risk: narrow
Directive: Keep project-card internals on project-specific classes and preserve one metadata row per semantic purpose
Tested: npm run build; ./scripts/deploy-homepage.sh
Not-tested: Manual cross-browser visual checks beyond current deployed environment
2026-05-10 15:03:48 +08:00
SepComet 7a091a9b44 Improve share card scan order for faster link decisions
Constraint: Keep the change scoped to shares card internals without altering logs/projects card structures
Rejected: Showing project_repo as a separate row | duplicated ownership context and hurt visual hierarchy
Confidence: high
Scope-risk: narrow
Directive: Keep shares card metadata compact and action-oriented; prefer tags left and time/action right
Tested: npm run build
Not-tested: Manual cross-device visual QA in browser after commit
2026-05-10 10:43:05 +08:00
SepComet 28358164c5 让开发日志能按项目与月份快速回看
顺手统一 personal-homepage 相关日志与项目种子数据里的 repo 标识,避免筛选项和项目映射出现分裂。

Constraint: 保持 Astro 静态站点结构与最小改动范围

Rejected: URL query 持久化筛选 | 超出本次最小可用范围

Confidence: high

Scope-risk: narrow

Directive: 后续若补 URL 状态同步,应复用现有 data-repo/data-month 过滤语义

Tested: npm run build; ./scripts/deploy-homepage.sh

Not-tested: 筛选状态刷新保留与分享链接能力
2026-05-09 15:21:15 +08:00
SepComet 3aa966f3d5 Normalize content manifests and add repo agent guide
Constraint: Commit only the cleaned JSON manifests and the root AGENTS.md without bundling unrelated local changes
Rejected: Folding in the other modified .codex files | unrelated workspace churn
Confidence: high
Scope-risk: narrow
Directive: Keep generated or synced content formatted with stable JSON indentation to reduce noisy diffs
Tested: node -e "JSON.parse(require('fs').readFileSync('src/content/projects/index.json','utf8')); JSON.parse(require('fs').readFileSync('src/content/static-assets/index.json','utf8')); console.log('json-ok')"; npm run build
Not-tested: Push/deploy after this content-and-docs-only commit
2026-05-09 14:59:23 +08:00
SepComet 769e679417 Make log listings scan cleanly in a single column
Constraint: Keep the change scoped to /logs list rendering and reuse existing log frontmatter
Rejected: Changing shared .card-grid behavior | would affect projects and home sections
Confidence: high
Scope-risk: narrow
Directive: Keep future log-list experiments on logs-specific classes unless other list pages are intentionally redesigned
Tested: npm run build; ./scripts/deploy-homepage.sh
Not-tested: Local browser-only manual narrow-screen visual pass in this session
2026-05-09 14:47:34 +08:00
SepComet 530c9178d2 更新技术栈 2026-05-07 16:40:32 +08:00
SepComet b949e0d9f0 补充项目图片拉取链接 2026-05-07 16:26:21 +08:00
SepComet 452e700796 补全项目配置 2026-05-07 16:19:15 +08:00
SepComet 64df5623a5 Reduce homepage confusion during temporary routing issues
Add a prominent homepage notice for the current reverse-proxy redirect problem and tighten the Gitea activity presentation so the landing page stays readable while users navigate around the temporary deployment constraint.

Constraint: Temporary Nginx reverse-proxy redirects can drop :2000 from navigation URLs and cause 502 responses
Rejected: Move the warning into secondary pages only | Users need the fix before they leave the homepage
Confidence: high
Scope-risk: narrow
Directive: Remove or rewrite the homepage warning once the备案-backed domain setup eliminates the redirect mismatch
Tested: npm run build
Not-tested: Live browser verification against the current reverse-proxy deployment
2026-05-07 15:59:29 +08:00
SepComet 8d6e599ea9 补充 static-assets 资源拉取路径 2026-05-07 15:27:44 +08:00
SepComet dea2caf18b Align homepage content and local port defaults for current deployment
Constraint: Current deployment expects the homepage on port 2000 and project cards should reflect the latest showcased repos
Rejected: Leave placeholder project seeds and old port default | mismatched with current runtime and presentation
Confidence: high
Scope-risk: narrow
Directive: Keep project seed paths stable with synced static asset filenames and revisit only when automated asset naming lands
Tested: npm run build; docker compose config
Not-tested: Live container restart against production host
2026-05-07 14:41:31 +08:00
SepComet 9ad73276e4 Prepare build-time static asset syncing without touching page templates
Constraint: Static images need to come from remote sources before log sync and build
Rejected: Per-file source mapping | directory-grouped manifests are easier to maintain
Confidence: high
Scope-risk: narrow
Directive: Prefer grouped target_dir manifests and keep page-facing paths stable
Tested: npm run assets:sync; npm run build; bash -n scripts/deploy-homepage.sh; npx tsc --noEmit --pretty false --project tsconfig.json
Not-tested: Real Seafile download against production URLs
2026-05-07 14:38:44 +08:00
SepComet 187686c94c Make the corner gallery resolve gallery files reliably
Use the project root as the anchor so the homepage sticker gallery survives Astro build and still randomizes from public/images/gallery.

Constraint: Keep behavior unchanged except for build-time discovery.
Rejected: import.meta.url-based directory lookup | it failed in production build.
Confidence: high
Scope-risk: narrow
Directive: Preserve the gallery scan as a static build-time concern unless the deployment model changes.
Tested: npm run build; verified dist/index.html contains corner-gallery and gallery image paths
Not-tested: browser repaint timing in a live session
2026-05-07 14:34:08 +08:00
SepComet f0397730e6 统一页面时间为东八区并调整活动条数 2026-05-07 09:36:01 +08:00
SepComet d46f69c9a6 优化首页 Gitea Activity 展示 2026-05-07 09:09:29 +08:00
SepComet 31796260cc docs: add cron deploy script and ignore local runtime artifacts 2026-05-06 19:23:17 +08:00
SepComet df4afe8a57 Make site URLs environment-driven 2026-05-06 11:00:06 +08:00
SepComet f0a6da915a Add Docker Compose deployment setup 2026-05-06 10:42:50 +08:00
SepComet 74fb6ec0a0 Add operations and sync documentation 2026-05-06 10:21:13 +08:00
SepComet 89bc23e7e7 Add structured rebuild entrypoint for AstrBot 2026-05-06 10:11:16 +08:00
SepComet 85e510fbc0 Add schema validation and sync metadata UI 2026-05-06 09:47:00 +08:00
SepComet e03af0c800 docs: update roadmap to match current sync implementation 2026-05-05 10:45:53 +08:00
SepComet 8265a10cff feat: scaffold seafile resource sync 2026-05-05 10:30:47 +08:00
SepComet fdeb25805c feat: add gitea sync and env-aware content sync 2026-05-05 09:53:51 +08:00
SepComet 7915f8c244 refactor: read page data from generated content 2026-05-05 09:14:51 +08:00
SepComet d85c8ac85d feat: add build-time content sync scaffold 2026-05-05 09:04:11 +08:00
SepComet 1ab1717e64 init 2026-05-04 21:56:20 +08:00