This code change implements the Image API load for all existing views.
creates new picture API object for retrieving a photo given a search word (generally, the object.name property)
integrates picture API into Person, Planet, and Starship view loading, as part of the promise chain
adds picture containers to Planet and Starship pages, based on Person picture
updates 'No image found' text to be templated based on search term, example: "No image found for Mos Eisley"
updates image CSS to fill the fluid container width
Existing application patterns were followed in templates and javascript. Layout changes are beyond the scope of this issue, and so were not attempted.
Note: 'Vehicle' views were not found within the repository, and as such have not been updated with photos. However, the new Picture API added in this update can be easily integrated into Vehicle views, or any other views in the future, satisfying #51.
This code change implements the Image API load for all existing views.
picture
API object for retrieving a photo given a search word (generally, theobject.name
property)picture
API into Person, Planet, and Starship view loading, as part of the promise chainExisting application patterns were followed in templates and javascript. Layout changes are beyond the scope of this issue, and so were not attempted.
Note: 'Vehicle' views were not found within the repository, and as such have not been updated with photos. However, the new Picture API added in this update can be easily integrated into Vehicle views, or any other views in the future, satisfying #51.