diff --git a/src/cats/CatsPage.js b/src/cats/CatsPage.js
index b45c05f..3a2d338 100644
--- a/src/cats/CatsPage.js
+++ b/src/cats/CatsPage.js
@@ -1,6 +1,6 @@
// @flow
-import { Table } from '@adeira/sx-design';
+import { MissingData, Table } from '@adeira/sx-design';
import * as React from 'react';
import { graphql, useLazyLoadQuery } from '@adeira/relay';
import fbt from 'fbt';
@@ -14,6 +14,9 @@ export default function CatsPage(): React.Node {
listAllCats {
order
name
+ dateOfCastration
+ dateOfDeworming
+ dateOfAdoption
}
}
}
@@ -53,9 +56,9 @@ export default function CatsPage(): React.Node {
return {
col1: `#${cat.order}`,
col2: cat.name,
- col3: todo,
- col4: todo,
- col5: todo,
+ col3: cat.dateOfCastration ?? , // TODO: display with warning/error when around 4 months old
+ col4: cat.dateOfDeworming ?? , // TODO: display with warning/error
+ col5: cat.dateOfAdoption ?? ,
};
})}
/>
diff --git a/src/cats/__generated__/CatsPageQuery.graphql.js b/src/cats/__generated__/CatsPageQuery.graphql.js
index 0fa9f5a..5e68a9b 100644
--- a/src/cats/__generated__/CatsPageQuery.graphql.js
+++ b/src/cats/__generated__/CatsPageQuery.graphql.js
@@ -11,6 +11,9 @@ export type CatsPageQueryResponse = {|
+listAllCats: $ReadOnlyArray<{|
+order: number,
+name: string,
+ +dateOfCastration: ?string,
+ +dateOfDeworming: ?string,
+ +dateOfAdoption: ?string,
|}>
|}
|};
@@ -25,6 +28,9 @@ query CatsPageQuery {
listAllCats {
order
name
+ dateOfCastration
+ dateOfDeworming
+ dateOfAdoption
id
}
}
@@ -45,6 +51,27 @@ v1 = {
"kind": "ScalarField",
"name": "name",
"storageKey": null
+},
+v2 = {
+ "alias": null,
+ "args": null,
+ "kind": "ScalarField",
+ "name": "dateOfCastration",
+ "storageKey": null
+},
+v3 = {
+ "alias": null,
+ "args": null,
+ "kind": "ScalarField",
+ "name": "dateOfDeworming",
+ "storageKey": null
+},
+v4 = {
+ "alias": null,
+ "args": null,
+ "kind": "ScalarField",
+ "name": "dateOfAdoption",
+ "storageKey": null
};
return {
"fragment": {
@@ -70,7 +97,10 @@ return {
"plural": true,
"selections": [
(v0/*: any*/),
- (v1/*: any*/)
+ (v1/*: any*/),
+ (v2/*: any*/),
+ (v3/*: any*/),
+ (v4/*: any*/)
],
"storageKey": null
}
@@ -105,6 +135,9 @@ return {
"selections": [
(v0/*: any*/),
(v1/*: any*/),
+ (v2/*: any*/),
+ (v3/*: any*/),
+ (v4/*: any*/),
{
"alias": null,
"args": null,
@@ -121,15 +154,15 @@ return {
]
},
"params": {
- "cacheID": "047446a8d3c9bb84dbaece8536d5b0f0",
+ "cacheID": "fbffe788557ca6ae0b84bc899d2622de",
"id": null,
"metadata": {},
"name": "CatsPageQuery",
"operationKind": "query",
- "text": "query CatsPageQuery {\n cats {\n listAllCats {\n order\n name\n id\n }\n }\n}\n"
+ "text": "query CatsPageQuery {\n cats {\n listAllCats {\n order\n name\n dateOfCastration\n dateOfDeworming\n dateOfAdoption\n id\n }\n }\n}\n"
}
};
})();
// prettier-ignore
-(node: any).hash = '0e907cef6b85b590d45950a2ee9f8c2c';
+(node: any).hash = '383f97dea5a84a25c83cfef0c74c51ac';
export default node;