Skip to content

更新动态和 GitHub stars 兜底值#17

Merged
afc163 merged 1 commit into
mainfrom
codex/update-news-stars
Jul 1, 2026
Merged

更新动态和 GitHub stars 兜底值#17
afc163 merged 1 commit into
mainfrom
codex/update-news-stars

Conversation

@afc163

@afc163 afc163 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add the Hebb Mind 2026-06 WeChat article to Latest News
  • refresh GitHub star fallback counts, including Hebb Mind and UI-UX
  • fix small existing Biome lint blockers in CSS and HTML attributes so lint can run cleanly

Verification

  • npm run lint:check
  • node --check js/stars.js
  • git diff --check

Notes

  • npm run format:check still reports broad existing formatting changes for index.html and css/style.css; this PR intentionally avoids a full-file formatting churn.

Summary by CodeRabbit

  • New Features
    • Added a new “Hebb Mind” entry to the latest updates/news list.
    • Refreshed GitHub star fallback values, which may affect star badges and ordering when live counts aren’t available.
  • Bug Fixes
    • Improved text rendering in the culture section by standardizing quotation formatting (escaped quotes) for better consistency.
  • Style
    • Made a small spacing adjustment to blockquote styling for more consistent layout.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 1, 2026

Copy link
Copy Markdown

Deploying afx-team with  Cloudflare Pages  Cloudflare Pages

Latest commit: ab1d804
Status: ✅  Deploy successful!
Preview URL: https://8dcbf5ac.afx-team.pages.dev
Branch Preview URL: https://codex-update-news-stars.afx-team.pages.dev

View logs

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

♻️ Preview destroyed

PR preview ♻️ Destroyed ♻️ Destroyed
🔗 Preview https://afx-team-afx-team-github-io-preview-pr-17.surge.sh (already destroyed)
📝 Commitab1d804
🪵 LogsView logs

🤖 Powered by surge-preview

@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c5291e3b-38d9-4358-8e5c-533b88311126

📥 Commits

Reviewing files that changed from the base of the PR and between 63d484a and ab1d804.

📒 Files selected for processing (4)
  • css/giscus-theme.css
  • css/style.css
  • index.html
  • js/stars.js

📝 Walkthrough

Walkthrough

Minor updates change a Biome lint suppression, reorder one CSS rule, add a news item and escape quoted text in index.html, and revise fallback GitHub star counts in js/stars.js.

Changes

Site Content and Styling Updates

Layer / File(s) Summary
Lint namespace and declaration order
css/giscus-theme.css, css/style.css
Biome ignore directive namespace is updated from lint/complexity to lint/nursery, and the blockquote declarations are reordered with padding-left moved after padding.
Index page news entry and quote escaping
index.html
Adds a new “Hebb Mind” news article and escapes embedded quotation marks in the culture-section data-zh text.
Fallback star counts update
js/stars.js
Updates the hard-coded fallback GitHub star counts used when cache data is unavailable or requests fail.

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

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed 标题准确概括了本次提交的主要内容:更新动态内容和 GitHub stars 兜底值。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/update-news-stars

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

@afc163 afc163 force-pushed the codex/update-news-stars branch from 63d484a to ab1d804 Compare July 1, 2026 10:39

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request adds the "Hebb Mind" project to the showcase, updates fallback GitHub star counts, adjusts a biome lint rule, and escapes quotes in translation attributes. The review feedback identifies a redundant padding-left rule in css/style.css and a translation bug in index.html where missing prefixes in the data-zh and data-en attributes would cause content loss during language switching.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread index.html
</h2>
<blockquote class="mb-2 p-2 bg-gray-50 border-l-2 border-gray-400">
<p class="text-sm text-gray-700 tracking-wide" data-zh="是体验技术部的核心文化,它们的背后是"专业、责任、行动"。" data-en="is the core culture of the Experience Technology Department. Behind them are 'Professional, Responsible, Action'.">
<p class="text-sm text-gray-700 tracking-wide" data-zh="是体验技术部的核心文化,它们的背后是&quot;专业、责任、行动&quot;。" data-en="is the core culture of the Experience Technology Department. Behind them are 'Professional, Responsible, Action'.">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The data-zh and data-en attributes are missing the prefix "简单、自由、有爱" (or "Simple, Free, Loving"). Since the I18nManager replaces the element's text content with these attributes when switching languages, this leads to content loss (the prefix disappears) when toggling languages.

Suggested change
<p class="text-sm text-gray-700 tracking-wide" data-zh="是体验技术部的核心文化,它们的背后是&quot;专业、责任、行动&quot;。" data-en="is the core culture of the Experience Technology Department. Behind them are 'Professional, Responsible, Action'.">
<p class="text-sm text-gray-700 tracking-wide" data-zh="&quot;简单、自由、有爱&quot; 是体验技术部的核心文化,它们的背后是&quot;专业、责任、行动&quot;。" data-en="'Simple, Free, Loving' is the core culture of the Experience Technology Department. Behind them are 'Professional, Responsible, Action'.">

Comment thread css/style.css
Comment on lines 195 to +196
padding: var(--spacing-md);
padding-left: var(--spacing-md);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

Since padding: var(--spacing-md); already sets the padding on all four sides (including the left side) to var(--spacing-md), the subsequent padding-left: var(--spacing-md); is completely redundant. Removing it simplifies the CSS and avoids any shorthand override issues.

Suggested change
padding: var(--spacing-md);
padding-left: var(--spacing-md);
padding: var(--spacing-md);

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@index.html`:
- Around line 525-526: Restore the missing leading phrase in the locale data on
the culture paragraph so both data-zh and data-en include the full text used by
updateDOMContent(); the current values on the p element omit “简单、自由、有爱”, which
causes the rendered blockquote to be incomplete. Update the existing data-zh and
data-en attributes on that culture copy so they match the full visible content
and keep updateDOMContent() sourcing consistent strings.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 914cafb5-63fe-4955-be8e-aa58ef2278e9

📥 Commits

Reviewing files that changed from the base of the PR and between ec24baf and 63d484a.

📒 Files selected for processing (4)
  • css/giscus-theme.css
  • css/style.css
  • index.html
  • js/stars.js

Comment thread index.html
@afc163 afc163 merged commit 5da4f09 into main Jul 1, 2026
2 of 3 checks passed
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