Skip to content

feat(t27f): NETLIST connection view -- renderer-neutral line plan #13761

Closed

Description

@gHashTag

Ring 2, Wave L3 of epic #13650 (netlist to T27F constructor).
netlist_connection_view: renderer-neutral line plan for the NETLIST connection preview.
Derives src/dst positions from NvPlan, ok/reason from NcResult, alpha from uikit tokens.
No RGBA literals; a host (glass_window, Web) draws them.

Boundary

  • specs/t27f/netlist_connection_view.t27

User Scenarios

Given no preview is active,
when ncv_line_view(preview, g, p) is called with preview.active == false,
then line.visible == false and line.alpha == 0.0.

Given an active preview with BLOCK src (node 0) to PIN dst (node 1) in inverter_graph,
when ncv_line_view(preview, g, p) is called,
then line.visible == true, line.ok == true, line.reason == NC_OK, line.alpha == NCW_ALPHA_DEFAULT.

Given an active preview with incompatible kinds (NET src, BLOCK dst),
when ncv_line_view(preview, g, p) is called,
then line.ok == false, line.reason == NC_INCOMPATIBLE.

Requirements

  • FR-001: NcvLine MUST contain visible: bool, ok: bool, reason: u8, x0: u32, y0: u32, x1: u32, y1: u32, alpha: f64.
  • FR-002: ncv_line_view(preview, g, p) MUST return visible=false and alpha=0.0 when preview.active == false.
  • FR-003: ncv_line_view MUST derive ok/reason from nc_preview_result(preview) when active.
  • FR-004: ncv_line_view MUST set x0/y0 from nv_node_x/y(p, preview.src_node) and x1/y1 from nv_node_x/y(p, preview.dst_node) when active.
  • FR-005: Alpha MUST be NCW_ALPHA_DEFAULT (from uikit::native_tokens BTN_ALPHA_DEFAULT) when visible; NCW_ALPHA_INACTIVE = 0.0 otherwise.
  • FR-006: The spec MUST include at least 15 test blocks and 3 invariant blocks.

Success Criteria

  • specs/t27f/netlist_connection_view.t27 exists: exit 0 from t27b test specs/t27f/netlist_connection_view.t27
  • Active ok preview is visible: ncv_line_view(active_ok_preview, g, p).visible == true: exit 0

Activity

  1. added
    P1Queen takes before unlabelled work (priority.t27 HIGH)
    on Nov 14, 2026
  2. added 2 commits that reference this issue on Nov 14, 2026
    8308456
    dccf55a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Queen takes before unlabelled work (priority.t27 HIGH)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions