Skip to content

fix(ui): bundle Inter, Bricolage, and Imbue for offline first-run - #440

Merged
sparkleMing merged 1 commit into
memex-lab:mainfrom
o-mid:fix/offline-google-fonts
Sep 7, 2026
Merged

sparkleMing merged 1 commit into
memex-lab:mainfrom
o-mid:fix/offline-google-fonts

Conversation

@o-mid

@o-mid o-mid commented Sep 5, 2026 •

Copy link
Copy Markdown
Collaborator

Live first-run on the Android emulator failed to load fonts.gstatic.com, so Google Fonts threw when building the theme and brand title.

This ships the Inter, Bricolage Grotesque ExtraBold, and Imbue Bold files as assets, registers their OFL licenses, and turns off runtime font fetching.

Test plan

  • flutter test test/ui/core/themes/bundled_google_fonts_test.dart test/ui/core/widgets/memex_brand_title_test.dart
  • Cold-start Timeline with no network and confirm Inter / Memex brand title still render
  • Open a quote or highlight card and confirm Imbue still renders

Disable Google Fonts runtime fetch so Timeline and brand chrome do not fail when fonts.gstatic.com is unreachable.
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

PR AI Review / PR AI 语义预检

中文

  • 风险等级:高风险
  • 需要人工审核:是
  • 黄金链路影响:可能
  • 置信度:high
  • Workflow run:33949098647

AI 语义预检未得到可解析结果,需要 maintainer 人工审核。

影响范围

  • unknown

黄金链路

  • none
  • 说明:Claude Code Action 未产出结构化 JSON,AI 语义预检结果不可用。

风险项

  • high AI review 结果不可用。证据:Claude Code Action structured_output was empty or invalid.。
    建议:检查 Claude Action 日志和模型网关配置后重新运行 workflow。

测试缺口

  • 未发现新的测试缺口。

English

  • Risk level: HIGH
  • Human review required: YES
  • Golden path impact: POSSIBLE
  • Confidence: high
  • Workflow run: 33949098647

AI semantic review did not return a parseable result; maintainer review is required.

Affected Areas

  • unknown

Golden Path

  • none
  • Rationale: Claude Code Action did not produce structured JSON, so the AI review result is unavailable.

Findings

  • high AI review result unavailable. Evidence: Claude Code Action structured_output was empty or invalid..
    Recommendation: Check Claude Action logs and model gateway configuration, then rerun the workflow.

Test Gaps

  • No new test gap was reported.

AI review is advisory. Maintainers should verify the result before merging.

@github-actions github-actions Bot added ai: high risk AI review classified the PR as high risk golden path impact AI review found possible impact to a core user flow needs human review AI review or policy signals require maintainer review labels Sep 5, 2026
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

PR Preflight Summary / PR 预检汇总

中文

  • 统一结论:高风险:质量预检通过,但需要 maintainer 人工 review 后手动合并。
  • Policy preflight:高风险。命中 7 条高风险规则,需要 maintainer 人工确认。
  • Flutter quality:通过。Analyzer 和 test baseline 均未发现新增问题。
  • PR head:54beb6a3dfc17cd00c19b23ac49a23cdbcc0e6a5
  • Policy run:33949098652
  • Flutter run:33949098698

English

  • Combined result: High risk: quality passed, but maintainer review is required before manual merge.
  • Policy preflight: HIGH RISK. Found 7 high-risk policy signal(s); maintainer review is required.
  • Flutter quality: PASS. Analyzer and test baselines found no newly introduced issue.
  • PR head: 54beb6a3dfc17cd00c19b23ac49a23cdbcc0e6a5
  • Policy run: 33949098652
  • Flutter run: 33949098698
PR Policy Preflight / PR 规则预检

PR Policy Preflight / PR 规则预检

中文

  • 判定:高风险
  • 变更文件数:14
  • 变更行数:366
  • Diff 是否截断:false

规则命中

  • 高风险 binary-file google_fonts/BricolageGrotesque-ExtraBold.ttf: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file google_fonts/Imbue-Bold.ttf: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file google_fonts/Inter-Bold.ttf: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file google_fonts/Inter-ExtraBold.ttf: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file google_fonts/Inter-Medium.ttf: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file google_fonts/Inter-Regular.ttf: 二进制文件发生变化,且不在低风险 icon asset 路径下。
  • 高风险 binary-file google_fonts/Inter-SemiBold.ttf: 二进制文件发生变化,且不在低风险 icon asset 路径下。

English

  • Decision: HIGH RISK
  • Changed files: 14
  • Changed lines: 366
  • Diff truncated: false

Findings

  • high binary-file google_fonts/BricolageGrotesque-ExtraBold.ttf: Binary file changed outside the low-risk icon asset path.
  • high binary-file google_fonts/Imbue-Bold.ttf: Binary file changed outside the low-risk icon asset path.
  • high binary-file google_fonts/Inter-Bold.ttf: Binary file changed outside the low-risk icon asset path.
  • high binary-file google_fonts/Inter-ExtraBold.ttf: Binary file changed outside the low-risk icon asset path.
  • high binary-file google_fonts/Inter-Medium.ttf: Binary file changed outside the low-risk icon asset path.
  • high binary-file google_fonts/Inter-Regular.ttf: Binary file changed outside the low-risk icon asset path.
  • high binary-file google_fonts/Inter-SemiBold.ttf: Binary file changed outside the low-risk icon asset path.
PR Flutter Quality / Flutter 质量预检

PR Flutter Quality / Flutter 质量预检

中文

  • 总体:通过
  • Analyzer baseline:通过
  • Test baseline:通过

English

  • Overall: PASS
  • Analyzer baseline: PASS
  • Test baseline: PASS

Flutter Analyzer Baseline

  • Base issues: 161
  • PR issues: 161
  • New issues: 0

No new analyzer issues introduced by this PR.

Flutter Test Baseline

  • Base failures: 0
  • PR failures: 0
  • New failures: 0

No new Flutter test failures introduced by this PR.

@sparkleMing
sparkleMing merged commit 633e9a8 into memex-lab:main Sep 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai: high risk AI review classified the PR as high risk golden path impact AI review found possible impact to a core user flow needs human review AI review or policy signals require maintainer review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants