Skip to content

feat(alert-cur-events): add fullscreen live view - #2301

Merged
jsers merged 1 commit into
mainfrom
feat/alert-cur-events-fullscreen
Sep 9, 2026
Merged

jsers merged 1 commit into
mainfrom
feat/alert-cur-events-fullscreen

Conversation

@jsers

@jsers jsers commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Add a fullscreen wall mode for the active alert events list, toggled by a fullscreen button. In this mode the table fetches page 1 on a refresh cadence, disables selection/pagination/row actions, and highlights rows whose hash did not appear in the previous fetch.

Add a fullscreen wall mode for the active alert events list, toggled by a
fullscreen button. In this mode the table fetches page 1 on a refresh
cadence, disables selection/pagination/row actions, and highlights rows
whose hash did not appear in the previous fetch.
@coderabbitai

coderabbitai Bot commented Sep 1, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@jsers
jsers marked this pull request as ready for review September 9, 2026 02:44
Copilot AI lite review requested due to automatic review settings September 9, 2026 02:44
@jsers
jsers merged commit 889ed3b into main Sep 9, 2026
1 check passed

Copilot AI 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.

🟡 Changes recommended

There are two user-visible state bugs: fullscreen UI state can desync without an initial sync, and exiting fullscreen currently forces the shared auto-refresh cache to Off (unexpectedly disabling polling in the normal list).

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds a fullscreen “wall mode” for the current alert events list, allowing operators to monitor live events with simplified controls and visual highlighting for newly appearing events.

Changes:

  • Added fullscreen entry/exit flow in the current events list page and a dedicated fullscreen header wrapper (FullscreenList).
  • Updated AlertTable to support fullscreen behavior (force page 1, disable selection/pagination/row actions, highlight newly seen event hashes).
  • Fixed AutoRefresh to correctly treat an explicit 0 intervalSeconds value (via ?? instead of ||).
File summaries
File Description
src/pages/alertCurEvent/pages/List/index.tsx Adds fullscreen toggle + conditional rendering between normal and fullscreen layouts.
src/pages/alertCurEvent/pages/List/FullscreenList.tsx New fullscreen header/container with live indicator and refresh/range controls.
src/pages/alertCurEvent/pages/List/AlertTable.tsx Implements fullscreen-specific fetch/presentation rules and “new row” highlighting.
src/components/TimeRangePicker/AutoRefresh/index.tsx Correctly handles intervalSeconds={0} without falling back to cache.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 2
  • Review effort level: Lite

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

Comment on lines +27 to +31
useEffect(() => {
return () => {
localStorage.setItem(`${TIME_RANGE_CACHE_KEY}_refresh`, '0');
};
}, []);
Comment on lines +135 to +139
useEffect(() => {
const syncFullscreenState = () => setIsFullscreen(document.fullscreenElement === fullscreenRef.current);
document.addEventListener('fullscreenchange', syncFullscreenState);
return () => document.removeEventListener('fullscreenchange', syncFullscreenState);
}, []);
@flashduty

flashduty Bot commented Sep 9, 2026

Copy link
Copy Markdown

每日 i18n Review(2026-09-09)发现本 PR 新增的 FullscreenList.tsx 中 <span>LIVE</span> 为用户可见硬编码文案,已在 #2320 改为 t('live') 并补 zh_CN/en_US。

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