Add preview in history + revert

Signed-off-by: Thibaud Arnault <thyb@oauth.io>