Commit Graph

26 Commits

Author SHA1 Message Date
浅念 8b438a2d56 feat: unified form block + Contact page matches CMS (info+form+map+FAQ) 2026-10-29 15:55:09 +08:00
浅念 e169a815ea feat: Projects page + workspace logo upload + CTA customization UI 2026-10-29 15:11:02 +08:00
浅念 c12f0e28b2 fix: style preview real-time — CSS vars in theme blocks.css + clearStyleField deletes key
Root causes:
1. Font/color CSS consumption rules were added to platform blocks.css
   but editor preview uses the THEME's blocks.css (which lacked them)
2. Reset buttons sent empty string which failed validation → 400 →
   preview died silently

Fix: Added --sf-title-size/--sf-text-size/--sf-accent-c/--sf-btn-c
consumption rules to themes/trade-pro/blocks.css; reset now uses
clearStyleField() which deletes the key instead of setting ''.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-29 11:40:03 +08:00
浅念 f7a938145f feat: per-block font size/color controls — title_size, text_size, text_color, accent_color, button_color
- blueprints.py: validate + render 5 new style properties as CSS vars
- editor.js: slider controls for title/text size, color pickers for
  text/accent/button colors with reset buttons
- blocks.css: CSS variable consumption rules (--sf-title-size, etc.)

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-29 11:16:22 +08:00
浅念 45c39b1695 feat: trust_bar + applications_band blocks; homepage now block-driven
- blueprints: register trust_bar (icon/title/text items) and applications_band
  (2x2 dark-band tiles) block types; render with escaped items, ordinal icon
  fallback, 8-item cap; auto-exposed in editor via /api/editor/blocks and
  grouped under business in the studio palette
- blocks.css: platform base layer for both blocks (app/static + trade-pro
  Layer A kept verbatim in sync) + trade-pro bridge vocabulary (icon-circle,
  hairline dividers, navy->brand gradient band, glass tiles, 900/620
  breakpoints, reduced-motion) without touching canvas hooks
- tests: test_trade_pro_home_block_driven covers the full studio-draft
  PUT -> publish -> build chain; 8 block types on the homepage, template
  markers absent under layout_mode=replace, clean build report
- scripts/setup_home_blocks.py: production write path for site 483295c29ea0
  (login -> draft -> publish -> build -> verify); real catalogue counts feed
  the stats block; run after the Docker image picks up the new block types

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-28 18:11:32 +08:00
浅念 d9749044e1 fix: editor preview auto-scrolls to blocks area on load 2026-10-28 15:00:01 +08:00
浅念 7fcd95cf9c fix: revert editor preview to stored layout_mode (replace showed blank canvas) 2026-10-28 14:46:32 +08:00
浅念 41b02da998 fix: replace 82 smart quotes with straight quotes in workspace.js 2026-10-28 14:39:24 +08:00
浅念 3786717490 fix: CSS syntax errors — missing colons before hex color values
color#3b556e → color:#3b556e (etc.) — bash heredoc stripped colons,
causing entire CSS rules to fail silently. All button/badge/table
styles were broken.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-28 14:24:52 +08:00
浅念 8fbe638b15 fix: cache-bust workspace assets (?v=4) + guard empty entry IDs in editor links
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-28 14:18:30 +08:00
浅念 adcb1cc157 style: content list v4 — card-style rows with spacing, hover lift, rounded borders
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-28 14:12:33 +08:00
浅念 5cfa62611c style: content list v3 — colored type badges, mono routes, status dots, gradient design button
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-28 14:07:52 +08:00
浅念 779a682806 fix: editor preview uses replace mode so blocks fill the entire clickable area
Template content was rendering above the block canvas, pushing editable
blocks below the fold. Replace mode shows only blocks in preview,
making the full preview area clickable. Saved layout_mode unchanged.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-28 13:52:12 +08:00
浅念 8526231f38 fix: nav editor API calls use workspace api() signature (url, method, data)
The api() helper takes positional args, not fetch-style options object.
This caused 'not a valid HTTP method' error on save/publish.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-28 12:01:31 +08:00
浅念 fbda69035c style: polish workspace UI — tab/pagination/table/nav-editor refinements
- Type tabs: gradient active state, pill counts, inset shadow container
- Pagination: bordered buttons with primary next, page info with accent
- Data table: hover highlight, uppercase headers, softer shadow
- Nav editor: proper 6-col grid alignment (handle/name/route/up/down/del),
  column headers row, focused input glow, red delete hover

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-28 11:59:10 +08:00
浅念 0225c270ea feat: inline nav editor in workspace + styled type tabs
- 外观与设计: nav edit button opens modal directly in workspace,
  no page editor redirect needed; add/remove/reorder/edit nav items
  with save-draft + publish buttons
- 内容与页面: type tabs now use segmented-control design (active
  blue pill group with counts) instead of scattered buttons

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-28 11:45:16 +08:00
浅念 85e6d4aeca feat: workspace UX — nav quick-access, content type tabs, list pagination
- 外观与设计: prominent 导航菜单 card linking to editor's siteDesign
- 内容与页面: type tab pills (全部/产品/文章/页面/...) with counts,
  replaces dropdown; content list paginated 20/page with prev/next
- Search resets page; tab click resets page

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-28 11:30:19 +08:00
浅念 df2a183dbf upgrade: adopt V8.34.1 (multi-image banner carousel + spec-table source modes)
Plain overlay (33 items, same-source lineage, zero patch replay).
Theme suites 35/35; full run 453 passed + 10 known Windows env fails
(suspect-module rerun confirms identical failure set).
Live: container 8.34.1-dev.1; hesupipe home leftover industrial-preset
blocks cleared via studio draft+publish flow — home now renders pure
trade-pro template (sf-section/Chinese blocks = 0).

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-26 18:03:07 +08:00
浅念 e21dbb6518 upgrade: adopt V8.33.1 — final merge, our patches upstreamed natively
V8.33.0 absorbed our entire platform patch set as native features
(discovery/env_for macro override/blocks.css priority/type-mapping fix/
frontend entries/locale override) and synced trade-pro from our remote;
V8.33.1 adds HESU PIPE industrial-theme home fixes (1.3.1).

Zero patch re-application this round — all verified native. Theme
suites 35/35; full run 428 passed + same 10 known Windows env fails
(FAILED set unchanged). Live: container 8.33.1-dev.1 healthy, hesupipe
192 entries intact, trade-pro build 203 pages 0 errors.

Patch registry retired to archive — future upgrades are plain overlay.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-26 14:27:17 +08:00
浅念 95982fad23 upgrade: adopt V8.32.0-dev.1 (theme preview iframe fix, editor simple mode)
Overlay 46 upstream items; full patch set re-applied (all patched files
reset by overlay regardless of upstream change status — lesson recorded).
Verified: theme suites 35/35; dual-baseline 418 passed vs pristine
389+29 ours, FAILED-set diff EMPTY (same 10 Windows env fails).
Live: container 8.32.0-dev.1 healthy, hesupipe 192 entries intact,
trade-pro build 203 pages 0 errors.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-26 11:18:45 +08:00
浅念 8884e100f9 upgrade: adopt V8.31.1 (theme 1.3/1.4 redesigns, editor deep-canvas, guided launch, component library)
Overlay 190 upstream items (V8.22→8.31) preserving trade-pro theme,
registry tests, and design docs. Re-applied full patch set on identical
anchors (discovery/env_for/blocks.css/type-mapping/locale-override/
theme_color/frontend entries/test_theme_pro_v3 mods) plus compose pins.

Verified: theme suites 35/35; dual-baseline full run 415 passed vs
pristine 386+29 ours, FAILED-set diff EMPTY (same 10 Windows env fails).
Live: container 8.31.1-dev.1 healthy, hesupipe 192 entries intact,
trade-pro build 203 pages 0 errors.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-26 09:43:17 +08:00
浅念 601451f22b upgrade: adopt V8.21.3 (V8.13→8.21.3: P5 SFTP/S3, P6 multilingual, editor overhaul, enterprise hardening)
Overlay ~150 upstream items onto our V8.12 base, preserving trade-pro
theme, registry tests, and design docs. Re-applied our patch set
(discovery/env_for/blocks.css/type-mapping/theme_color/frontend entries,
test_theme_pro_v3 mods) — all anchors survived upstream evolution.

New platform enhancement (fixes upgrade-introduced regression):
multilingual.site_locale now honors settings_json.locale, plus
PUT /api/i18n/sites/{id}/locale — standalone English sites get
<html lang='en'> under the V8.15 locale-rewrite pipeline.

compose: adopt V8.21.3 (image 8.21.3-dev.1, /api/ready probes, MySQL/S3
env) with project name pinned to siteforge-v8-10 (data volumes).

Tests: 356 passed / 11 failed — all 11 confirmed pre-existing in
pristine V8.21.3 on this host (10 upstream Windows env + our build test
now green after locale fix). Patch registry updated in plan doc.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-23 12:31:03 +08:00
浅念 a59e46c10c fix: trade-pro workspace card description and preview colors (review round)
- design() desc map gains trade-pro entry (was rendering literal 'undefined')
- workspace.css: .theme-preview.trade-pro / .site-icon.trade-pro brand colors

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-22 18:57:23 +08:00
浅念 2527f7ced9 feat: register trade-pro in theme color map and all six frontend entry points
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-22 18:51:27 +08:00
浅念 5c7643fcf2 upgrade: adopt V8.12.0-dev.1 (V8.11 unified professional UI + V8.12 workflow usability)
- Overlay 26 changed files from SiteForge_Enterprise_V8_12 (UI layer only:
  professional-ui.js/css, workspace/factory-v2/operations/editor templates,
  +2 test files, compose/ci/scripts/docs)
- Re-apply v8_workflows type-mapping fix (类型/分类) lost in upgrade
- Pin compose project name to siteforge-v8-10 so existing data volumes
  (hesupipe site 483295c29ea0, 193 entries) keep attached
- Drop stray .s10_* state files; ignore .s10_*/.sf_*/.s87_* patterns
- Plan/spec revisions per plan-review round 1 (icons are new design,
  real test assertions, recorded deviations)

Tests: 226 passed / 1 env-only failure (test needs node binary in PATH,
absent in python:3.12-slim container; host node v24 --check all 9 JS OK)

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-22 17:02:45 +08:00
浅念 8cea7dee20 chore: baseline V8.10.0-dev.1 with v8_workflows type-mapping fix and trade-pro spec
- SiteForge Enterprise V8.10.0-dev.1 upstream source (210 tests)
- Fix: v8_workflows._mapped_input now reads both 类型/分类 columns so WXR
  imports keep post/product types instead of collapsing to page
- Docs: trade-pro theme port spec (R3) and implementation plan

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-22 16:49:25 +08:00