Skip to content

Make the component API consistent #155

Description

@meszmate

Two things that bite when composing components:

  • key input is handleKey on most components but update on Calendar, Notification, SortableTable, Spinner, Timer, Toast and VirtualList
  • 34 components have a fallible view, 7 still return []const u8 and swallow allocation errors with catch {}

Settling on handleKey + fallible view everywhere would let a focus manager or container drive any component without special casing. Models already went fallible in #132, so this is just finishing the job.

Activity

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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions