Skip to content

feat(web-demo): 為 WebAssembly 網頁增加 SEO 與 OpenGraph 社群分享中繼標籤 - #10

Open
doggy8088 wants to merge 1 commit into
mini-software:mainfrom
doggy8088:feat/browser-lab-seo-og
Open

feat(web-demo): 為 WebAssembly 網頁增加 SEO 與 OpenGraph 社群分享中繼標籤#10
doggy8088 wants to merge 1 commit into
mini-software:mainfrom
doggy8088:feat/browser-lab-seo-og

Conversation

@doggy8088

@doggy8088 doggy8088 commented Sep 11, 2026

Copy link
Copy Markdown

變更摘要 (Summary)

MiniExcel Browser Lab ( 部署於 https://mini-software.github.io/MiniExcel-Rust/ ) 新增完整的 SEO、Open Graph 與 Twitter Card 中繼標籤,並加入針對 Facebook 最佳化(1200x630 解析度)的社群分享預覽圖片。


詳細變更內容 (Detailed Changes)

1. 新增 Open Graph (og:*) 標籤(針對 Facebook 分享最佳化)

  • og:type: website
  • og:url: https://mini-software.github.io/MiniExcel-Rust/(標準網址)
  • og:title: MiniExcel Browser Lab
  • og:description: 傳達使用 Rust 與 WebAssembly 在瀏覽器端本地高效解析 XLSX 試算表與 RAG 匯出的功能亮點。
  • og:imageog:image:secure_url: 指向絕對 HTTPS 路徑 https://mini-software.github.io/MiniExcel-Rust/og-image.png
  • og:image:type: image/png
  • og:image:width: 1200
  • og:image:height: 630(嚴格符合 Facebook 與各大社群平台的 1.91:1 推薦尺寸標準)
  • og:image:alt: 提供完整的無障礙圖片替代文字
  • og:site_name: MiniExcel
  • og:locale: en_US

2. 新增 Twitter Card (twitter:*) 標籤

  • twitter:card: summary_large_image(大圖分享卡片)
  • twitter:url, twitter:title, twitter:description
  • twitter:image, twitter:image:alt

3. 新增 SEO 與檢索標籤

  • <link rel="canonical" href="https://mini-software.github.io/MiniExcel-Rust/" />: 確保搜尋引擎鎖定標準網址,避免權重分散。
  • <meta name="robots" content="index, follow" />: 指引搜尋引擎常規索引與連結跟隨。

4. 社群分享預覽圖 (web-demo/public/og-image.png)

  • 透過 Chrome DevTools MCP 連線至運行中的 MiniExcel Browser Lab 瀏覽器視窗。
  • 將視窗精確調整為 1200 × 630 px,完整捕捉產品標誌、操作面板、試算表資料網格與即時統計指標。
  • 檔案大小約 92 KB,兼顧高清畫質與社群爬蟲快速載入。
  • 檔案放置於 web-demo/public/,在建置與 GitHub Pages 部署時會自動同步複製至 dist/ 輸出目錄。

驗證項目 (Verification)

  • 透過 sips 確認 web-demo/public/og-image.png 解析度為 1200 × 630 px。
  • 檢查 web-demo/public/index.html 語法正確,中繼標籤完整且使用絕對路徑。
  • 確認 git status 與變更範圍聚焦,未引入非必要的改動。

Summary by CodeRabbit

  • New Features
    • Added metadata to improve how the site appears in search engine results and social media previews.
    • Added a canonical page URL and crawler guidance.
    • Added Open Graph and Twitter Card details, including the site title, description, URL, and preview image.

為 MiniExcel Browser Lab(https://mini-software.github.io/MiniExcel-Rust/)增強搜尋引擎最佳化(SEO)與社群媒體(Facebook / Twitter)分享卡片體驗:

1. 新增 Open Graph (og:*) 標籤:
   - og:type: website
   - og:url: 設定頁面標準網址(https://mini-software.github.io/MiniExcel-Rust/)
   - og:title: MiniExcel Browser Lab
   - og:description: 描述 MiniExcel 本地串流 Rust、WebAssembly 與 RAG 匯出能力
   - og:image / og:image:secure_url: 包含完整 HTTPS 絕對路徑的社群預覽圖片
   - og:image:type: image/png
   - og:image:width / og:image:height: 1200 x 630(符合 Facebook 建議的 1.91:1 最佳黃金比例)
   - og:image:alt: 說明預覽圖所呈現的試算表預覽與分析介面
   - og:site_name 與 og:locale: 設定站點名稱為 MiniExcel 與 en_US 語系

2. 新增 Twitter Card (twitter:*) 標籤:
   - twitter:card: summary_large_image 大圖卡片格式
   - twitter:url、twitter:title、twitter:description
   - twitter:image 與 twitter:image:alt

3. 新增標準 SEO 標籤:
   - link[rel="canonical"]: 指向標準部署網址,避免重複內容分散權重
   - meta[name="robots"]: 允許搜尋引擎檢索與追蹤(index, follow)

4. 加入 Facebook 最佳化預覽截圖 (web-demo/public/og-image.png):
   - 透過 Chrome DevTools 連線至瀏覽器中實際運行的 MiniExcel Browser Lab 頁面
   - 調整 Viewport 解析度為 1200x630,捕捉完整的產品品牌、控制面板與試算表數據網格
   - 圖片大小約 92 KB,兼顧高清畫質與社群爬蟲快速載入需求
Copilot AI lite review requested due to automatic review settings September 11, 2026 05:06
@coderabbitai

coderabbitai Bot commented Sep 11, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: b607d541-bb5c-43ef-a5b6-d709bec0925b

📥 Commits

Reviewing files that changed from the base of the PR and between a746056 and 58828c8.

⛔ Files ignored due to path filters (1)
  • web-demo/public/og-image.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • web-demo/public/index.html

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The page head now defines canonical, crawler, Open Graph, and Twitter Card metadata for MiniExcel Browser Lab.

Changes

Browser Lab metadata

Layer / File(s) Summary
Page head metadata
web-demo/public/index.html
The document head reorders the title and description tags. It adds canonical, robots, Open Graph, and Twitter Card metadata.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Feature

Suggested reviewers: shps951023

Merge Risk: ⚪ Minimal · up to 58828

The SEO and social-sharing metadata change is ready to merge with no identified current-head risk.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main changes: adding SEO, Open Graph, and social-sharing metadata to the WebAssembly web page.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The only outstanding feedback is a minor test-coverage nit; no blocking issues were identified.

Pull request overview

Adds SEO, Open Graph, Twitter Card metadata, and a social-sharing preview image to the MiniExcel WebAssembly demo.

Changes:

  • Adds canonical, robots, Open Graph, and Twitter metadata.
  • Adds a 1200×630 og-image.png preview asset.
File summaries
File Description
web-demo/public/index.html Adds SEO and social-sharing metadata.
Review details

Suppressed comments (1)

web-demo/public/index.html:12

  • The new SEO/Open Graph/Twitter contract is not covered by the existing Playwright suite: the browser tests only exercise the rendered workflow, so a later template/build change could remove or mis-point these tags (or the copied og-image.png) while all current tests still pass. Please add an assertion for the canonical/social metadata and that the referenced image is available in the generated site.
    <link rel="canonical" href="https://mini-software.github.io/MiniExcel-Rust/" />
    <meta name="robots" content="index, follow" />

    <!-- Open Graph / Facebook -->
    <meta property="og:type" content="website" />
  • Files reviewed: 1/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

2 participants