Skip to content

Commit

Permalink
182 fetch satellite data and display on satellites page (#193)
Browse files Browse the repository at this point in the history
* feat(frontend): ✨ Fetch and display the correct data for each satellites

* feat(frontend): ✨ Display correct satellite data for each satellites on the satellite page

* refactor(frontend): ♻️ Run prettier

* style(frontend): 💄 Change the width on the satellite cards

* refactor(frontend): ♻️ Run prettier

* fix(backend): 🐛 Compile types for graphql
  • Loading branch information
luctra02 authored and GitHub committed Apr 3, 2024
1 parent 8279999 commit da1ba7d
Show file tree
Hide file tree
Showing 7 changed files with 117 additions and 56 deletions.
13 changes: 9 additions & 4 deletions backend/src/api/satellite/content-types/satellite/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"info": {
"singularName": "satellite",
"pluralName": "satellites",
"displayName": "Satellite"
"displayName": "Satellite",
"description": ""
},
"options": {
"draftAndPublish": true
Expand All @@ -28,11 +29,12 @@
"type": "blocks"
},
"previewImage": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images"
],
"type": "media",
"multiple": false
]
},
"projects": {
"type": "relation",
Expand All @@ -45,6 +47,9 @@
"relation": "oneToMany",
"target": "api::most-recent-image.most-recent-image",
"mappedBy": "satellite"
},
"missionStatus": {
"type": "string"
}
}
}
2 changes: 2 additions & 0 deletions backend/types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,7 @@ export interface ApiSatelliteSatellite extends Schema.CollectionType {
singularName: 'satellite';
pluralName: 'satellites';
displayName: 'Satellite';
description: '';
};
options: {
draftAndPublish: true;
Expand All @@ -967,6 +968,7 @@ export interface ApiSatelliteSatellite extends Schema.CollectionType {
'oneToMany',
'api::most-recent-image.most-recent-image'
>;
missionStatus: Attribute.String;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/__generated__/gql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit da1ba7d

Please sign in to comment.