Skip to content

inbox-bubble 預設全站掛載;_site.md 的 inbox-bubble/inbox-bubble-except 與單頁覆寫 - #10

Merged
cverorg merged 1 commit into
mainfrom
feat/inbox-bubble-sitewide
Sep 3, 2026
Merged

inbox-bubble 預設全站掛載;_site.md 的 inbox-bubble/inbox-bubble-except 與單頁覆寫#10
cverorg merged 1 commit into
mainfrom
feat/inbox-bubble-sitewide

Conversation

@cverorg

@cverorg cverorg commented Sep 3, 2026

Copy link
Copy Markdown
Member

站主決策:泡泡預設每頁都有,站主決定哪裡沒有。inbox-bubble: on|off(預設 on)、inbox-bubble-except: /shop/*, /checkout(去語系前綴後比對)、單頁 frontmatter inbox-bubble 覆寫;版面層在 body 尾端掛一顆(data-id=SITE_ID、data-api-base=PLATFORM_ORIGIN、有 kaito-corpus 才 data-kaito=1);手掛頁不重複;兩把鑰匙匯出供 reef-mcp 文法。smoke 78/78、node tests 綠。reef 建置腳本需在 astro build 前 export SITE_ID/PLATFORM_ORIGIN(另開)。

…ept 路徑樣式、單頁 frontmatter 可覆寫、手掛頁不重複

站主決策(2026-09-03):泡泡預設每頁都有,站主決定哪裡沒有。版面層在 body 尾端掛一顆(data-kind=site、data-id=SITE_ID、data-api-base=PLATFORM_ORIGIN、有 kaito-corpus 才 data-kaito=1);except 樣式去掉語系前綴後比對;頁面已有手掛 inbox-bubble 就不再掛;兩把鑰匙匯出到 site-core 的 site-layer key 清單供 reef-mcp 文法採用。smoke 78/78、sitetile node tests 全綠。

by KITT
@cverorg
cverorg merged commit bd43ccc into main Sep 3, 2026
2 checks passed
cverorg added a commit that referenced this pull request Sep 3, 2026
…nbox 泡泡改帶 data-site-name(不再用頁面 title)、form action=inbox 的 email/訊息欄預設必填+原生驗證+在地化錯誤與送出後文案

- site-core.js:form 欄位語法新增 required/required: false 修飾詞,向下相容,序列化可還原
- Form.astro:required 欄位渲染原生 required + aria-required + 可見星號 + data-required-msg;
  action=inbox 對 email/textarea 欄位預設必填;成功文案依「email 是否保證有填」二選一,
  在地化表格獨立於既有四語 Lingo 表(locale.mjs 新增 inboxFormCopy,支援簡體 zh-Hans/zh-CN)
- SiteLayout.astro:inbox-bubble 掛載點加 data-site-name(沿用 header/footer 既有站名值)
- site.css:nav-mobile 開啟時的遮罩(沿用既有 rf-ha-overlay 原語)+ body 捲動鎖定
- 更新 smoke-build.mjs/forms.md fixture/site-core.test.js 的對應測試
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant