Make badge indicate that there is a problem if last build failed #243
Labels
Good First Issue
Want to help ship cljdoc? These are good issues to start with.
Help Wanted
UX
Fix these, improve the user experience of using cljdoc!
Sometimes builds fail and it would be useful to indicate that within the cljdoc badge. Could look something like this:
Since the URL will still link to the regular documentation page some link to the most recent build (if it failed) needs to be integrated into the documentation pages. Maybe similar to the link to more recent versions:
Pointers
Badge rendering code:
cljdoc/src/cljdoc/server/pedestal.clj
Lines 206 to 208 in 139a5a6
build-tracker
system component to retrieve the latest build for the requested version.To include information about the last build we could add a new interceptor that adds the last build to the context.
cache-bundle
but I started to fade that out and it might make sense to loosen this up further.cljdoc/src/cljdoc/server/pedestal.clj
Lines 95 to 106 in 139a5a6
The text was updated successfully, but these errors were encountered: