Skip to content

Code City Apocalypse Frontend Revamp#20

Open
BleakNarratives wants to merge 3 commits into
mainfrom
feat/code-city-frontend-revamp-412334072720472153
Open

Code City Apocalypse Frontend Revamp#20
BleakNarratives wants to merge 3 commits into
mainfrom
feat/code-city-frontend-revamp-412334072720472153

Conversation

@BleakNarratives
Copy link
Copy Markdown
Owner

I have completed the frontend overhaul for the "Code City Apocalypse" dashboard. Key improvements include:

  1. Dynamic Metrics: The 'Active Agents' count is now calculated in real-time from the telemetry data, replacing the previous hardcoded value.
  2. Emergency Ticker Revamp: The ticker now displays the 8 most recent events, with 'HOPE' messages for successful flag/beacon finds (in neon-green) and 'CRITICAL' messages for failures (in blood-red).
  3. Digital Bestiary Refactor: Each technical monster now has a dedicated lore card styled with custom CSS (.lore-card) and a progress bar that scales by severity.
  4. Unified Inspector: Refactored the 'Fallout Inspector' to use the same artifact rendering logic as the rest of the app, ensuring a consistent look for code blocks and terminal outputs.
  5. Robust Data Handling: Improved the regex for parsing LLM logs and added support for various error schemas (checking both error_type and error keys).

Verification was performed using logic tests and Playwright automation to ensure visual fidelity across all dashboard tabs.


PR created automatically by Jules for task 412334072720472153 started by @BleakNarratives

This commit implements several enhancements to the AIRTBench-Code dashboard:
- Revamps the 'Emergency Broadcast' ticker with support for success events (HOPE) and failure events (CRITICAL) with distinct color coding.
- Refactors the 'Digital Bestiary' using custom CSS lore cards and severity-weighted progress bars.
- Implements dynamic calculation of 'Active Agents' from live telemetry data.
- Unifies artifact rendering logic in the 'Fallout Inspector' and improves chat message parsing.
- Enhances data robustness by normalizing difficulty levels and error key lookups.
- Updates caching strategy for live data feeds to ensure near real-time updates.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Copy link
Copy Markdown

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

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 enhances the frontend by expanding difficulty levels, improving the emergency ticker with success event handling and color coding, and introducing a styled 'Digital Bestiary'. It also refactors file inspection logic and adds dynamic metrics for active agents. Review feedback highlights a potential crash when escaping NaN values in the ticker, suggests using dictionary mapping instead of nested ternaries for better readability, and recommends escaping dynamic content in HTML blocks to mitigate XSS risks.

Comment thread airtbench/frontend.py Outdated
Comment thread airtbench/frontend.py
Comment on lines +595 to 603
severity_val = (
0.9
if info["danger"] == "ULTIMATE"
else 0.6
else 0.75
if info["danger"] == "CRITICAL"
else 0.4,
else 0.5
if info["danger"] == "HIGH"
else 0.25
)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The nested ternary operator for calculating severity_val is becoming difficult to read and maintain as more danger levels are added. Using a dictionary mapping would be much cleaner and more idiomatic.

            severity_val = {"ULTIMATE": 0.9, "CRITICAL": 0.75, "HIGH": 0.5}.get(info["danger"], 0.25)

Comment thread airtbench/frontend.py
BleakNarratives and others added 2 commits May 6, 2026 17:07
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: BleakNarratives <bleaknarratives@gmail.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: BleakNarratives <bleaknarratives@gmail.com>
Copy link
Copy Markdown
Owner Author

@BleakNarratives BleakNarratives left a comment

Choose a reason for hiding this comment

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

Good enough for the fat ladies I fux with...

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