veracitylab / DOM-Instrumentation-to-Display-Provenance-Data

Honours Project: JavaScript program to Instrument DOM elements manipulated by Ajax calls to facilitate in exposing Provenance Data
0 stars 0 forks source link

Add basic prov UI overlay #6

Closed wtwhite closed 6 months ago

wtwhite commented 6 months ago

This adds a basic UI overlay to every webpage that makes provenance information provided in provenance-id HTTP headers visible to users.

Initially, ▶ Prov appears in the top-left corner of the page. Clicking it toggles between the initial "hidden" state and showing a list of all HTTP responses associated with the page that contained provenance information (a provenance-id HTTP header) and their (numeric) provenance bucket IDs:

image

Interacting with the page in a way that causes more provenance-enriched HTTP responses to be returned, e.g., by clicking a particular movie, adds entries to the list (highlighted in red):

image

Clicking an entry in the list pops up a new tab showing the raw JSON fetched from the corresponding /prov/{id} endpoint:

image

The current UI is very basic and has several rough edges: