Skip to content

Swift: add the v1.0 basic-catalog examples to the sample gallery, and test every example #3624

Closed

Description

@karolkulesza

The Swift sample gallery (swift/sample) bundles only the v0.9.1 basic-catalog examples (SampleLoader.swift loads one examples folder, and the Xcode project points only at specification/v0_9_1/catalogs/basic/examples). Blueprint §9 (blueprints/modules/a2ui_framework_adapter.blueprint.md) asks for a protocol version selector and at least one v1.0 sample, and the Lit, React and Angular galleries (and Flutter in #3620) load catalogs/basic/v1/examples behind a selector.

There is also no Swift test that processes the basic-catalog examples. Flutter has dart/a2ui_flutter/test/catalog/basic/examples_test.dart and Lit has basic-catalog-examples.test.ts; the only Swift test that reads an example covers a single file.

Proposal, as two small PRs:

  1. Gallery: bundle catalogs/basic/v1/examples as a second folder, tag each sample with its protocol version, and add a segmented v0.9.1 / v1.0 picker. The processor already registers every basic catalog version.
  2. Tests: a parameterized Swift Testing case over both example folders that feeds each example to MessageProcessor with the basic catalogs (and stand-ins for custom components) and asserts no errors and a resolved root. Any example that fails would be listed with a linked issue rather than skipped silently.

Would you take these? If so, could this be assigned to me?

Activity

  1. added
    status: needs-triageauto-managed: https://github.com/a2ui-project/a2ui/blob/main/scripts/triage.mjs
    on Oct 26, 2026
  2. jacobsimionato commented on Oct 26, 2026

    @jacobsimionato
    Collaborator

    @pinieb would you be able to look at this?

  3. added this to the October Launch milestone on Oct 26, 2026
  4. added
    P2The team intends to work on this in the near future, or at a lower priority.
    on Oct 26, 2026
  5. removed
    status: needs-triageauto-managed: https://github.com/a2ui-project/a2ui/blob/main/scripts/triage.mjs
    on Oct 26, 2026
  6. added a commit that references this issue on Oct 29, 2026
    f38745d
  7. moved this from Todo to In Progress in A2UIon Oct 29, 2026
  8. moved this from In Progress to Done in A2UIon Oct 30, 2026
  9. added a commit that references this issue on Oct 30, 2026
    5e442ee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

  • Status
    Done

Relationships

None yet

Development

No branches or pull requests

Issue actions