The goal of this ticket is to define how we want to load content in the search preview on mobile so that there is a visual indication that the content is loading.
The desktop preview loading is covered in T318951 and some of the desktop concept will also be applied to mobile with a few differences.
Notes on interaction
- Show the loading indicator in the beginning when we are still fetching information on whether the article has image or not. Specs in Figma
- When we are fetching information on whether the content for next card exist or not, show the loading icon after the card. Specs in Figma
- Each skeleton will have the animation until the content is loaded in that card.
- Load content in the order of the cards.
- The following cards in the preview will have the skeleton.
- The size of the article image skeleton box will be the dimension of the image.
- The size of the wikidata skeleton box will be the size of the wikidata card which is predefined.Specs in Figma
- Images from commons will have skeleton boxes as per image dimensions. Specs in Figma
- Show the skeleton cards only when we know that information exists. Show them as soon as we know the information for that card exists.
- The loading icon disappears once all the cards/skeletons are loaded.
- If there is no content, show the message as shown in the image below. Specs in Figma. This is a back up plan if we the AC in T320528 is not feasible: "Do not show arrow for the results that have no quick view.)information."