Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
[
{
"version": "v0.9",
"createSurface": {
"surfaceId": "gallery-flight-status",
"catalogId": "https://a2ui.org/specification/v0_9/basic_catalog.json",
"sendDataModel": true
}
},
{
"version": "v0.9",
"updateComponents": {
"surfaceId": "gallery-flight-status",
"components": [
{
"id": "root",
"component": "Card",
"child": "main-column"
},
{
"id": "main-column",
"component": "Column",
"children": [
"header-row",
"route-row",
"divider",
"times-row"
],
"align": "stretch"
},
{
"id": "header-row",
"component": "Row",
"children": [
"header-left",
"date"
],
"justify": "spaceBetween",
"align": "center"
},
{
"id": "header-left",
"component": "Row",
"children": [
"flight-indicator",
"flight-number"
],
"align": "center"
},
{
"id": "flight-indicator",
"component": "Icon",
"name": "flight"
},
Comment on lines +50 to +54
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The icon name "flight" is not valid according to the basic_catalog.json schema. Please use one of the icon names defined in the catalog's enum. For example, you could use send, which can represent a paper plane.

        {
          "id": "flight-indicator",
          "component": "Icon",
          "name": "send"
        }

{
"id": "flight-number",
"component": "Text",
"text": {
"path": "/flightNumber"
},
"variant": "h3"
},
{
"id": "date",
"component": "Text",
"text": {
"path": "/date"
},
"variant": "caption"
},
{
"id": "route-row",
"component": "Row",
"children": [
"origin",
"arrow",
"destination"
],
"align": "center"
},
{
"id": "origin",
"component": "Text",
"text": {
"path": "/origin"
},
"variant": "h2"
},
{
"id": "arrow",
"component": "Text",
"text": "→",
"variant": "h2"
},
{
"id": "destination",
"component": "Text",
"text": {
"path": "/destination"
},
"variant": "h2"
},
{
"id": "divider",
"component": "Divider"
},
{
"id": "times-row",
"component": "Row",
"children": [
"departure-col",
"status-col",
"arrival-col"
],
"justify": "spaceBetween"
},
{
"id": "departure-col",
"component": "Column",
"children": [
"departure-label",
"departure-time"
],
"align": "start"
},
{
"id": "departure-label",
"component": "Text",
"text": "Departs",
"variant": "caption"
},
{
"id": "departure-time",
"component": "Text",
"text": {
"path": "/departureTime"
},
"variant": "h3"
},
{
"id": "status-col",
"component": "Column",
"children": [
"status-label",
"status-value"
],
"align": "center"
},
{
"id": "status-label",
"component": "Text",
"text": "Status",
"variant": "caption"
},
{
"id": "status-value",
"component": "Text",
"text": {
"path": "/status"
},
"variant": "body"
},
{
"id": "arrival-col",
"component": "Column",
"children": [
"arrival-label",
"arrival-time"
],
"align": "end"
},
{
"id": "arrival-label",
"component": "Text",
"text": "Arrives",
"variant": "caption"
},
{
"id": "arrival-time",
"component": "Text",
"text": {
"path": "/arrivalTime"
},
"variant": "h3"
}
]
}
},
{
"version": "v0.9",
"updateDataModel": {
"surfaceId": "gallery-flight-status",
"value": {
"flightNumber": "OS 87",
"date": "Mon, Dec 15",
"origin": "Vienna",
"destination": "New York",
"departureTime": "10:15 AM",
"status": "On Time",
"arrivalTime": "2:30 PM"
}
}
}
]
Loading
Loading