If user is in the test, fetch significant changes endpoint and display new badges indicator and significant changes insert in article content. Also add tap and scroll to highlighted changes functionality as a part of this. Testing system is still TBD and will be added as a part of a separate task.
- Note we might need to filter out revisions that only have deleted lines since we can't easily tap that to highlight.
- App will determine when to flag something as "New changes" based on the latest revision timestamp.
Questions for Product/Design:
- We need business logic for when to show the "New changes" badge. How long since the latest revision was made?
- Is the expectation that the scroll-to-highlight functionality highlights ALL added text in the article, or just the snippet (which I am banking on being the largest line change detected in the endpoint) that is displayed in the timeline modal view?
- Just a note that the tap to highlight is the largest remaining unknown on if we can accurately detect these changes to highlight in the article content. We may need to cut this or save it for last and just focus first on detecting and displaying the types we want in the modal
Proposed designs
Skeleton state | Badge for when there isn't a recent change | Toast message for when data cannot be shown (after skeleton was shown) |
---|---|---|