diff --git a/VERSION b/VERSION index fadc7363..f2b9ee57 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.76.4 +0.76.5 diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index c4455980..7403e54d 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -8,6 +8,21 @@ This project follows the repository versioning rule: - `improvement` -> `+0.0.1`(bugfix + 小功能混合) - `bugfix` -> `+0.0.1` +## [0.76.5] — 2026-10-02 + +Released: 2026-10-02 + +### Highlights +- 增加 breaking 新闻的玻璃反射式警灯脉冲,并修复新闻卡片内容被 flex 压缩的问题。 + +### Added / Fixed / Improved +- ticker、卡片边框和卡片反射统一使用同一 breaking 等级颜色。 +- breaking ticker 使用局部红/橙高光脉冲,卡片使用反射带扫过;面板底色保持蓝色。 +- 新闻卡片固定非收缩布局并预留最小内容高度,避免只剩媒体名和时间。 +- 同步中英文 Earth 前端开发文档,记录视觉状态与 reduced-motion 行为。 + +--- + ## [0.76.4] — 2026-10-01 Released: 2026-10-01 diff --git a/docs/technical/en/earth-frontend-context.md b/docs/technical/en/earth-frontend-context.md index 0c119fc6..18e8b24b 100644 --- a/docs/technical/en/earth-frontend-context.md +++ b/docs/technical/en/earth-frontend-context.md @@ -448,7 +448,7 @@ The current state machine keeps data, ticker visibility, panel lifecycle and sel - `selectedCruiseStoryId` is independent of breaking severity. Selection, focus, hover and close only change the selected story and reading position; close also clears the selection and filter popover. - The expanded panel always keeps its blue glass surface. Breaking colors remain on the matching story cards, so opening the panel never turns the entire glass panel red; the ticker can still show a red signal when the currently scrolling story is breaking. -Future visual direction (not implemented yet): when the current ticker story enters a breaking state, add a low-frequency, limited-amplitude red/amber warning pulse that reads like a beacon reflected on the glass. The pulse should affect glass highlights and a local translucent layer, not the panel base color or a permanently flashing full border. This visual sub-state must remain attached to the current breaking story and must not be coupled to whether the panel is open. +The glass-reflection pulse is implemented: when the current ticker story enters a breaking state, its `::after` highlight emits a low-frequency, limited-amplitude red/amber pulse; the matching breaking card gets a single glass reflection sweep through its own `::after`. The panel base remains blue and there is no permanently flashing full border. `prefers-reduced-motion` disables the animation and keeps a low-intensity static cue. This visual sub-state stays attached to the current breaking story and matching card, independent of whether the panel is open. Compute cards directly reuse the shared `.hud-panel` background, border, shadow, and glass treatment. Summary, essentials, and detail areas add no separate black surface. Their headers share inset spacing with the layer panel through `.hud-panel__header--inset` / `.layer-panel-header`; primary numbers remain prominent and essential information stays visible. diff --git a/docs/technical/zh/earth-frontend-context.md b/docs/technical/zh/earth-frontend-context.md index 18ce58f6..aa39d0eb 100644 --- a/docs/technical/zh/earth-frontend-context.md +++ b/docs/technical/zh/earth-frontend-context.md @@ -581,7 +581,7 @@ Earth 原有 Roboto Condensed 字体已随 `assets/fonts/` 本地分发,许可 - `selectedCruiseStoryId` 独立于 breaking 等级。选择、聚焦、悬停和关闭只更新选中项与阅读位置;关闭时清空选中项及筛选弹层。 - 展开面板始终使用蓝色玻璃底。breaking 只在对应新闻卡片上使用等级颜色,因此点开面板不会把整块玻璃染成红色,之后滚动到 breaking 新闻时仍可让 ticker 显示红色提示。 -后续视觉方向(尚未实现):breaking 不再依赖静态橙色边框,而是在上述 ticker 当前项目进入 breaking 状态时,驱动一层低频、有限幅度的红/橙警灯脉冲;脉冲应像警灯映照在玻璃材质上的反射,作用于玻璃高光和局部透光层,不改变面板底色,也不使用持续闪烁的整圈边缘。该方向属于视觉子状态,必须挂在当前 breaking 项目上,不能重新耦合到面板是否打开。 +breaking 的玻璃反射脉冲已实现:ticker 当前项目进入 breaking 状态时,`::after` 局部高光以低频、有限幅度红/橙脉冲增强;展开面板中只在对应 breaking 新闻卡片上用 `::after` 扫过一条玻璃反射带。面板底色保持蓝色,不使用持续闪烁的整圈边缘;`prefers-reduced-motion` 下停用动画并保留低强度静态提示。该视觉子状态挂在当前 breaking 项目和对应卡片上,不与面板是否打开耦合。 算力卡片外观直接复用共享 `.hud-panel` 的背景、边框、阴影和玻璃效果,摘要、基础信息及详情区不再叠加单独黑底。标题栏与图层面板共用 `.hud-panel__header--inset` / `.layer-panel-header` 的内边距;主数字继续突出,基础信息保持常显。 diff --git a/docs/version-history.md b/docs/version-history.md index c6ca404a..bd45693d 100644 --- a/docs/version-history.md +++ b/docs/version-history.md @@ -16,12 +16,13 @@ ## Current Version - `main` 当前主线历史推导到:`0.16.5` -- `dev` 当前开发分支历史推导到:`0.76.4` +- `dev` 当前开发分支历史推导到:`0.76.5` ## Timeline | Version | Type | Branch | Commit | Summary | | --- | --- | --- | --- | --- | +| `0.76.5` | bugfix | `dev` | `v0.76.5` | breaking 玻璃反射式警灯脉冲、等级颜色统一及新闻卡片内容高度修复 | | `0.76.4` | bugfix | `dev` | `v0.76.4` | 修正 breaking 新闻 ticker 与面板状态边界,当前滚动到 breaking 项时才显示红色 | | `0.76.3` | bugfix | `dev` | `v0.76.3` | 修复新闻栏关闭后残留 breaking 橙色边线,分离 ticker、面板、选择和过期状态 | | `0.76.2` | bugfix | `dev` | `v0.76.2` | 优化光缆密集区卫星点拾取,统一点状对象与线缆候选排序并补齐回归验证 | diff --git a/frontend/package.json b/frontend/package.json index ed52f29b..75488b32 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "planet-frontend", - "version": "0.76.4", + "version": "0.76.5", "private": true, "packageManager": "bun@1", "dependencies": { diff --git a/frontend/public/earth/css/news-panel.css b/frontend/public/earth/css/news-panel.css index 33bcb98d..822d1afb 100644 --- a/frontend/public/earth/css/news-panel.css +++ b/frontend/public/earth/css/news-panel.css @@ -4,6 +4,7 @@ --news-ticker-width: min(calc(820px * var(--hud-scale)), 58vw); --news-ticker-edge-fade: calc(96px * var(--hud-scale)); --news-ticker-rule-color: var(--hud-border); + --news-breaking-color: rgba(255, 166, 102, 0.46); position: absolute; top: calc(var(--hud-offset) + calc(2px * var(--hud-scale))); left: 50%; @@ -47,7 +48,45 @@ } .earth-news-ticker::after { - content: none; + content: ""; + position: absolute; + inset: calc(-8px * var(--hud-scale)) calc(14px * var(--hud-scale)); + z-index: 0; + pointer-events: none; + opacity: 0; + background: radial-gradient( + ellipse 24% 120% at 72% 50%, + var(--news-breaking-color), + transparent 72% + ); + filter: blur(calc(8px * var(--hud-scale))); + mix-blend-mode: screen; +} + +.earth-news-ticker__viewport { + position: relative; + z-index: 3; +} + +.earth-news-ticker.has-breaking-watch::after, +.earth-news-ticker.has-breaking-breaking::after, +.earth-news-ticker.has-breaking-critical::after { + animation: earthNewsBreakingGlassPulse 2.4s ease-in-out infinite; +} + +.earth-news-ticker.has-breaking-watch { + --news-breaking-color: rgba(255, 213, 128, 0.42); + --news-ticker-rule-color: var(--news-breaking-color); +} + +.earth-news-ticker.has-breaking-breaking { + --news-breaking-color: rgba(255, 151, 78, 0.5); + --news-ticker-rule-color: var(--news-breaking-color); +} + +.earth-news-ticker.has-breaking-critical { + --news-breaking-color: rgba(255, 95, 95, 0.56); + --news-ticker-rule-color: var(--news-breaking-color); } .earth-news-ticker__region { @@ -221,6 +260,33 @@ } } +@keyframes earthNewsBreakingGlassPulse { + 0%, + 100% { + opacity: 0.12; + transform: translateX(-8%) scaleX(0.88); + } + 50% { + opacity: 0.76; + transform: translateX(8%) scaleX(1); + } +} + +@keyframes earthNewsBreakingCardReflection { + 0% { + opacity: 0; + transform: translateX(-125%); + } + 16%, + 64% { + opacity: 0.58; + } + 100% { + opacity: 0; + transform: translateX(125%); + } +} + .news-panel-title-row { display: flex; align-items: center; @@ -461,6 +527,11 @@ } .news-story-card { + --news-breaking-color: rgba(255, 166, 102, 0.46); + position: relative; + overflow: hidden; + flex: 0 0 auto; + min-height: calc(108px * var(--hud-scale)); display: flex; flex-direction: column; gap: calc(8px * var(--hud-scale)); @@ -476,6 +547,11 @@ transform 0.18s ease; } +.news-story-card > * { + position: relative; + z-index: 1; +} + .news-story-card:hover { border-color: rgba(214, 235, 255, 0.16); background: @@ -497,45 +573,45 @@ 0 0 18px rgba(255, 184, 77, 0.12); } -.earth-news-hud.has-breaking-watch, -.earth-mobile-news-board.has-breaking-watch { - box-shadow: - 0 0 0 1px rgba(255, 213, 128, 0.08) inset, - 0 18px 46px rgba(156, 106, 20, 0.12); -} - -.earth-news-hud.has-breaking-breaking, -.earth-mobile-news-board.has-breaking-breaking { - box-shadow: - 0 0 0 1px rgba(255, 166, 102, 0.14) inset, - 0 18px 48px rgba(185, 89, 32, 0.16); -} - -.earth-news-hud.has-breaking-critical, -.earth-mobile-news-board.has-breaking-critical { - box-shadow: - 0 0 0 1px rgba(255, 118, 118, 0.18) inset, - 0 18px 52px rgba(172, 43, 43, 0.18); -} - .news-story-card--breaking-watch { - border-color: rgba(255, 213, 128, 0.28); + --news-breaking-color: rgba(255, 213, 128, 0.42); + border-color: var(--news-breaking-color); background: linear-gradient(180deg, rgba(255, 248, 220, 0.08), rgba(255, 184, 77, 0.05)); } .news-story-card--breaking-breaking { - border-color: rgba(255, 166, 102, 0.36); + --news-breaking-color: rgba(255, 151, 78, 0.5); + border-color: var(--news-breaking-color); background: linear-gradient(180deg, rgba(255, 205, 150, 0.1), rgba(255, 135, 80, 0.07)); } .news-story-card--breaking-critical { - border-color: rgba(255, 118, 118, 0.42); + --news-breaking-color: rgba(255, 95, 95, 0.56); + border-color: var(--news-breaking-color); background: linear-gradient(180deg, rgba(255, 155, 155, 0.11), rgba(205, 58, 58, 0.08)); } +.news-story-card--breaking-watch::after, +.news-story-card--breaking-breaking::after, +.news-story-card--breaking-critical::after { + content: ""; + position: absolute; + inset: 0; + z-index: 0; + pointer-events: none; + background: linear-gradient( + 105deg, + transparent 32%, + var(--news-breaking-color) 49%, + transparent 66% + ); + mix-blend-mode: screen; + animation: earthNewsBreakingCardReflection 3.2s ease-in-out infinite; +} + .news-story-card--breaking-global { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset, @@ -620,6 +696,18 @@ padding: calc(16px * var(--hud-scale)) calc(4px * var(--hud-scale)); } +@media (prefers-reduced-motion: reduce) { + .earth-news-ticker.has-breaking-watch::after, + .earth-news-ticker.has-breaking-breaking::after, + .earth-news-ticker.has-breaking-critical::after, + .news-story-card--breaking-watch::after, + .news-story-card--breaking-breaking::after, + .news-story-card--breaking-critical::after { + animation: none; + opacity: 0.2; + } +} + @media (max-width: 1180px) { .earth-news-ticker { --news-ticker-width: min(calc(760px * var(--hud-scale)), 66vw); diff --git a/pyproject.toml b/pyproject.toml index f26b9a66..85fe180e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "planet" -version = "0.76.4" +version = "0.76.5" description = "智能星球计划 - 态势感知系统" requires-python = ">=3.14" dependencies = [ diff --git a/uv.lock b/uv.lock index 15e35a64..4a9cb0b1 100644 --- a/uv.lock +++ b/uv.lock @@ -757,7 +757,7 @@ wheels = [ [[package]] name = "planet" -version = "0.76.4" +version = "0.76.5" source = { virtual = "." } dependencies = [ { name = "aiofiles" },