sidebar-section-add

Extend the Flightjar sidebar UI with metrics and filters while preserving stable re-renders via fingerprinting and escapeHtml safety.

55|1|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/MrSuttonmann/flightjar --skill sidebar-section-add
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sidebar-section-add
Source: https://github.com/MrSuttonmann/flightjar/tree/main/.claude/skills/sidebar-section-add
Command: npx skills add https://github.com/MrSuttonmann/flightjar --skill sidebar-section-add

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Extending the left-hand aircraft sidebar in Flightjar requires careful management of DOM updates to keep UI stable as new per-row metrics and control chips are added. The fingerprint-based rendering ensures minor field changes don't trigger costly re-renders, and a consistent event wiring strategy minimizes regression.

Core Features & Use Cases

  • New sort chips and filter chips to tailor the sidebar view without changing the map or detail panel.
  • Support for additional per-row metrics and header/status elements while preserving existing UI invariants.
  • Guidance on escaping user-provided strings and updating the fingerprint to reflect new markup.

Quick Start

Add a new per-row metric by updating the sidebar rendering, fingerprint, and per-row templates, then verify with the existing smoke tests.

Frequently Asked Questions about sidebar-section-add

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add new metrics to a JavaScript sidebar without causing full DOM re-renders?

To add new metrics to a JavaScript sidebar without full DOM re-renders, use a fingerprint-based rendering approach. This technique ensures that minor per-row field changes only update the affected DOM nodes, preserving UI stability and preventing costly layout shifts.

What is the best way to add sort and filter chips to an existing frontend UI extension?

The best way to add sort and filter chips to a frontend UI extension is through modular event wiring and fingerprint updates. This approach integrates new header control elements into the sidebar while maintaining existing rendering invariants and preventing event listener regressions.

How do I safely inject user-provided strings into a dynamically rendered sidebar?

To safely inject user-provided strings into a dynamically rendered sidebar, apply an escapeHtml safety mechanism. This process sanitizes all dynamic inputs before they are inserted into the per-row markup, preventing cross-site scripting vulnerabilities while updating the sidebar fingerprint.

Why does my aircraft sidebar UI break when adding new per-row fields to index.html?

Your aircraft sidebar UI breaks when adding per-row fields if the rendering fingerprint is not updated to reflect the new markup. Maintaining stable re-renders requires synchronizing the fingerprint logic in your sidebar.js with the new structural elements added to index.html.

Can I add header elements to a flightjar sidebar using a modular wiring pattern?

Yes, you can add header elements to a flightjar sidebar using a modular wiring pattern. This process involves updating the sidebar rendering logic and fingerprint to accommodate the new header elements, ensuring changes re-render only the modified content without disrupting map or detail panels.