Skip to content

Initial Params / Warning System #1

@melvspace

Description

@melvspace

Problem

Stories can define initial params using arbitrary (unsafe) string keys.
When the structure of a component’s form changes (e.g. param definitions are renamed or removed), these initial params may become unlinked — meaning they are no longer recognized or used by the component.
Currently, there’s no way to diagnose or visualize this mismatch.

Proposal / Solution

  • During story build:

    1. Call the story’s builder once and collect all registered params.
    2. Compare them against the initial params defined in the story.
    3. If any initial param key was not registered, mark the story as having unlinked params.
  • In the UI:

    • Display a warning icon next to the story.
    • Provide a tooltip or dialog explaining that some initial params are unused because their keys no longer match the component definition.

Acceptance Criteria

  • Unlinked initial params are detected reliably at build or runtime.
  • Warning icon is visible in the story list or editor.
  • Tooltip explains which params are unlinked and why.
  • No false positives for valid params.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions