46 Commits
Author SHA1 Message Date
Morris fecb1d3976 feat: add a motion system with accessible fallbacks
The UI had almost no motion: two transition declarations in total, no
@keyframes, no animation and no prefers-reduced-motion support. Interactive
states snapped instantly and the landing page was completely static.

Add a self-contained motion layer instead of scattering rules through the
existing stylesheets:

- frontend/src/motion.css holds the tokens, interaction feedback, keyframes
  and the reduced-motion opt-out. It only appends rules; no existing layout
  rule is rewritten, so dropping the import restores the static UI.
- frontend/src/motion.ts implements scroll reveal with IntersectionObserver
  and a MutationObserver for asynchronously rendered content.

Design constraints:

- Animate transform and opacity only, so motion stays on the compositor and
  never forces layout of siblings.
- Never animate the transform of the tilted hero artwork, which would
  override its 3D perspective; it fades in instead.
- Decorative loops are slow and low amplitude, and only where they convey
  "alive" (status dots, hero glow, floating prompt).
- Anchor navigation now uses smooth scrolling with scroll-padding so
  section headings clear the sticky header.

Accessibility and progressive enhancement:

- The hidden state is gated on html.motion-ready, which JS adds only after
  an IntersectionObserver exists. Without JS, in a browser without the
  observer, or with reduced motion requested, content is never hidden.
- prefers-reduced-motion: reduce disables every animation, transition and
  smooth scrolling, and forces revealed content visible.
- The reduced-motion preference is also watched at runtime, so toggling it
  mid-session reveals anything still hidden.

Verified: 27 pages render without console errors, reveal works on every
landing section, hover feedback is measurable, dark mode and mobile layouts
are unaffected, and both reduced-motion and missing-IntersectionObserver
fallbacks keep all content visible.
2026-11-14 10:15:31 +08:00
Morris 347e723583 fix: resolve client IP behind proxy and align upload limits
Bug 1 (high): login rate limiting used request.getRemoteAddr(), which is
always the nginx container address. Every client shared one bucket, so any
anonymous caller could lock the whole platform out of login for 60 seconds.

- Add ClientIp to resolve the real address, honouring X-Real-IP /
  X-Forwarded-For only when the direct peer is a proxy we operate
  (loopback, private or container range). Public peers cannot spoof.
- Prefer X-Real-IP, fall back to the right-most X-Forwarded-For entry so
  client-supplied prefixes are ignored. Guard with an IP literal check so
  a malformed header can never trigger a DNS lookup.
- nginx now overwrites the forwarded headers with $remote_addr instead of
  clearing them, so spoofed values never reach the backend.
- Add a global login ceiling (600/60s) well above the per-address limit.

Bug 2: the landing page had no login entry point on mobile. The collapsed
menu button was permanently display:none and the login link was hidden
below 550px, leaving no way to reach an account.

- Show the menu button below 850px, render nav as a dropdown panel.
- Add a login item inside the collapsed menu.

Bug 3: upload size limits disagreed across three layers. nginx capped
requests at 1m while the backend and UI advertise 25MiB, so any file over
1 MiB failed with nginx's HTML error page.

- Raise client_max_body_size to 26m to match the backend.
- Return 413 as JSON matching the API error shape.

Tests: 153 backend tests pass, including 10 new ClientIpTest cases
covering spoofed headers, right-most entry selection, IPv4-mapped IPv6,
and malformed values.
2026-11-14 09:33:03 +08:00
xhgit 77db572895 Merge pull request '禁止归档项目绕过托管运行限制' (#21) from codex/block-archived-runtime into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/21
2026-11-09 15:24:59 +00:00
xhgit 24bc1e3284 Merge pull request '重启服务前先验证项目归属' (#20) from codex/authorize-runtime-restart into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/20
2026-11-09 15:24:48 +00:00
xhgit 494511987e Merge pull request '支持为源码发布配置加密运行变量' (#19) from codex/source-publish-environment into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/19
2026-11-09 15:24:39 +00:00
xhgit 318b7d8086 Merge pull request '修复 Kubernetes 工作区无法保存 Git 版本' (#18) from codex/fix-workspace-git-ownership into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/18
2026-11-09 15:24:29 +00:00
xhgit 5f55645b45 Merge pull request 'Agent 完成前检查 Node 启动文件' (#17) from codex/check-agent-start-entry into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/17
2026-11-09 15:24:00 +00:00
WebUp Cloud bbd5eeb605 Enforce archive state for runtime activation 2026-11-08 23:39:27 +08:00
WebUp Cloud b5a2be3f9f Authorize service ownership before checking restart eligibility 2026-11-08 23:36:16 +08:00
WebUp Cloud 4401c84f4a Configure encrypted environment for source releases 2026-11-08 23:31:17 +08:00
WebUp Cloud 89b7f2f54e Allow versioning on Kubernetes workspace volumes 2026-11-08 23:25:11 +08:00
WebUp Cloud 6d55806b4f Verify the declared Node entry before completing Agent tasks 2026-11-08 23:20:47 +08:00
xhgit da93d4fa1c Merge pull request '云托管支持从 AI 工作区自动发布源码' (#16) from codex/automated-source-hosting into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/16
2026-11-08 15:06:58 +00:00
WebUp Cloud d1d14f0f77 Publish AI workspace source through the isolated runtime 2026-11-08 17:29:54 +08:00
xhgit 92f0d3a765 Merge pull request '更新 README.md' (#15) from xhgit-patch-1 into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/15
2026-11-08 05:18:06 +00:00
xhgit a0a76642b6 更新 README.md 2026-11-08 05:17:49 +00:00
xhgit 03169bd0f6 Merge pull request '支持管理员开启 IP 项目访问入口' (#14) from codex/hosting-ip-entry into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/14
2026-11-08 04:31:47 +00:00
xhgit a4219f5139 Merge pull request '云托管展示发布前置条件和审核状态' (#13) from codex/hosting-review-readiness into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/13
2026-11-08 04:31:38 +00:00
WebUp Cloud 2f93fb023a Add administrator-controlled IP project entry redirects 2026-11-08 12:25:01 +08:00
WebUp Cloud ffb36e3e24 Show the current hosting publication requirements 2026-11-08 12:18:51 +08:00
xhgit 1f25bbd1f9 Merge pull request '上下文压缩日志仅显示状态' (#12) from codex/quiet-context-compaction into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/12
2026-11-08 04:03:07 +00:00
xhgit ded95f554f Merge pull request '优化 Agent 的检查、修改与验证流程' (#11) from codex/agent-workflow-guidance into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/11
2026-11-08 04:02:52 +00:00
xhgit 0d9808c930 Merge pull request 'AI 开发页显示 Agent 文件变更和增删行' (#10) from codex/agent-file-changes into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/10
2026-11-08 04:02:19 +00:00
WebUp Cloud 2c176a9869 Guide long-running Agent work through inspection, edits and verification 2026-11-08 09:11:24 +08:00
WebUp Cloud 3296d378c9 Show actual file changes recorded for each Agent task 2026-11-08 09:10:32 +08:00
WebUp Cloud 49fe904626 Keep context compaction logs to a status line 2026-11-08 09:05:23 +08:00
xhgit d04777247b Merge pull request '用户后台新增 AI 模型与价格目录' (#9) from codex/member-ai-models into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/9
2026-11-08 01:01:27 +00:00
xhgit a63f6dc813 Merge pull request '优化 Agent' (#8) from codex/optimize-agent-tool-loop into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/8
2026-11-08 01:01:17 +00:00
WebUp Cloud 4291adfdfb Optimize the agent tool execution loop 2026-11-08 08:57:47 +08:00
WebUp Cloud 891e4896cc Show enabled models and current prices in the member console 2026-11-08 08:57:24 +08:00
xhgit 572371d7af Merge pull request '取消 AI 开发任务的固定轮次上限' (#7) from codex/remove-ai-step-cap into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/7
2026-11-07 16:45:37 +00:00
WebUp Cloud 66d339fbed Remove the fixed round limit from AI development tasks 2026-11-08 00:43:51 +08:00
xhgit 36ee771ef0 Merge pull request '取消开发工作区的默认总配额' (#6) from codex/remove-default-workspace-quota into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/6
2026-11-07 16:40:59 +00:00
WebUp Cloud 5b912b9e03 Remove the default development workspace namespace quota 2026-11-08 00:39:52 +08:00
xhgit ed6ddc007d Merge pull request '复用已有工作区,修复重复创建耗尽隔离配额' (#5) from codex/reuse-sandbox-resources into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/5
2026-11-07 16:37:31 +00:00
xhgit 43b5e24453 Merge pull request 'AI 开发支持确认后手动停止任务' (#4) from codex/confirm-stop-ai-task into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/4
2026-11-07 16:37:22 +00:00
xhgit fbefbb8c3b Merge pull request '恢复隔离工具的临时连接故障,减少重复 503' (#3) from codex/sandbox-tool-recovery into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/3
2026-11-07 16:37:12 +00:00
WebUp Cloud 8f232c442b Reuse sandbox resources instead of charging quota on every tool call 2026-11-07 23:26:34 +08:00
WebUp Cloud fb82821dc7 Confirm manual task stops and protect cancellation state 2026-11-07 23:06:52 +08:00
WebUp Cloud cb896bb0fa Recover transient sandbox connections before executing tools 2026-11-07 19:07:16 +08:00
xhgit 4f2cf2fc87 更新 README.md 2026-11-07 10:58:01 +00:00
xhgit 6b5aea0a0d Merge pull request '任务日志自动跟随最新事件' (#2) from fix/task-log-follow into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/2
2026-11-07 10:53:32 +00:00
xhgit 435d891bbd Merge pull request 'AI 任务自动压缩上下文并开启下一段对话' (#1) from fix/agent-context-rollover into main
Reviewed-on: http://git.xhmcl.com/xhgit/webup-cloud/pulls/1
2026-11-07 10:53:19 +00:00
WebUp Cloud 6c5224fb6f Follow the latest task logs while reading the tail 2026-11-07 18:48:36 +08:00
WebUp Cloud e48ae583f9 Continue AI tasks in a fresh context after compaction 2026-11-07 18:48:35 +08:00
WebUp Cloud db82325ed7 Initial import of WebUp Cloud 2026-11-07 13:31:14 +08:00