Commit graph

173 commits

Author SHA1 Message Date
Mihai Parparita
3d5bf2cad4 Add admin command for deleting accounts. 2014-12-27 21:17:52 -08:00
Mihai Parparita
00e19e79b4 Ignore 403s when computing vintages. 2014-12-24 17:42:38 -08:00
Mihai Parparita
fc94f2ff06 Fix private repositories checkbox not being visible in Firefox.
Firefox doesn't support generated content in before/after pseudo classes applied
to <input type="checkbox"> elements. Switch instead to adding the custom
checkbox glyph to the <label> for the checkbox.

Thanks to @snarfed for reporting this.
2014-12-20 22:08:06 -08:00
Mihai Parparita
48034e3b3f Don't retry vintage calculation if the repo can't be loaded.
The user has most likely deleted their account.
2014-12-20 21:54:47 -08:00
Mihai Parparita
33617ef0a1 Add basic robots.txt file. 2014-12-20 21:49:06 -08:00
Mihai Parparita
a270579f36 More aggressively persis the user's email address in the account object. 2014-12-20 21:44:09 -08:00
Mihai Parparita
735ac7ffb3 Better handling of GitHub OAuth errors when sending digest emails.
Fail silently if we can't even get an email address, otherwise send an error
email to the user.
2014-12-20 21:38:09 -08:00
Mihai Parparita
2851ad3ac2 Better handling for revoked credentials on the admin page. 2014-12-20 15:16:27 -08:00
Mihai Parparita
8a05a55208 Add card background on signed in index page too. 2014-12-16 21:39:27 -08:00
Mihai Parparita
305e4a86f5 Fix pluralization in email intro. 2014-12-16 21:34:28 -08:00
Mihai Parparita
9cb75013b1 Slightly better digest intro paragraph. 2014-12-14 21:47:13 -08:00
Mihai Parparita
7e2f693fea Add Google Analytics tracking. 2014-12-14 21:35:51 -08:00
Mihai Parparita
ed78cefe30 Switch header image from PNG to JPEG.
Almost 3x smaller. Also run ImageOptim on all the images.
2014-12-14 21:30:19 -08:00
Mihai Parparita
05acf9240a Don't turn errors fetching individual repository intervals into errors for the whole digest.
Return the data that we have, and indicate in a footer which repositories errors
were encountered for.
2014-12-14 21:23:33 -08:00
Mihai Parparita
f39b6e5e17 Add totals to admin page. 2014-12-14 16:16:12 -08:00
Mihai Parparita
8cb1302b1d Flesh out signed out homepage. 2014-12-13 23:57:59 -08:00
Mihai Parparita
dfd8041e94 Add GitHub app logo. 2014-12-13 22:44:25 -08:00
Mihai Parparita
f8657e9992 Add favicon. 2014-12-13 22:33:18 -08:00
Mihai Parparita
a9e17ee600 Fixes to make things look better on phone screens. 2014-12-13 21:59:20 -08:00
Mihai Parparita
b8398279db Add space between avatar and username. 2014-12-13 21:39:35 -08:00
Mihai Parparita
3340a9d288 Add FAQ. 2014-12-13 21:36:29 -08:00
Mihai Parparita
b1f7a0ba0f Add a footer to website pages. 2014-12-13 15:47:31 -08:00
Mihai Parparita
1bf5d997f6 Make sure HTTP responses are not cacheable. 2014-12-13 15:35:10 -08:00
Mihai Parparita
5b5cf2ab6a Make sure memcache keys are under the 250 byte limit. 2014-12-08 22:04:12 -08:00
Mihai Parparita
4a45ada620 Log more details for memcache errors. 2014-12-07 15:13:49 -08:00
Mihai Parparita
f462e1917a Email me for digest send errors. 2014-12-07 15:07:40 -08:00
Mihai Parparita
e72f87d801 Add prettier default error page. 2014-12-07 14:58:46 -08:00
Mihai Parparita
fc216fb3de Email me for internal errors. 2014-12-07 14:37:57 -08:00
Mihai Parparita
b3887d60b6 Add basic panic recovery.
Based on Martini's.
2014-12-07 14:20:13 -08:00
Mihai Parparita
62aa3d79d9 Fix formatting after ba402fabad. 2014-12-06 14:51:58 -08:00
Mihai Parparita
6a52f76635 Fix continue URL validation.
When running in production http.Reqest.URL is an absolute URL, so we shouldn't
check for leading slashes. Instead check for the hostname matching (which also
works for relative URLs on localhost).
2014-12-06 14:50:40 -08:00
Mihai Parparita
ba402fabad Add redaction of data displayed via the admin UI. 2014-11-30 14:57:20 -08:00
Mihai Parparita
63070da7fb Parallelize users admin page requests. 2014-11-30 14:45:45 -08:00
Mihai Parparita
13aa7def19 Fix generation of admin page links. 2014-11-29 22:28:29 -08:00
Mihai Parparita
e3db6775fb Style email footer links. 2014-11-29 22:20:42 -08:00
Mihai Parparita
a52ea5d09c Reduce code duplication for rendering of flash messages. 2014-11-29 22:15:09 -08:00
Mihai Parparita
8aa6b897e2 Don't clobber the existing Account instance when signing in as an existing user. 2014-11-29 22:03:33 -08:00
Mihai Parparita
7a81416850 Preserve continue URL when doing a signed out redirect. 2014-11-29 21:57:07 -08:00
Mihai Parparita
16f16ae9d9 Add helper wrapper for handlers that require signed in state, to reduce boilerplate. 2014-11-28 15:00:39 -08:00
Mihai Parparita
852142b726 Convert remaining routes to AppHandler. 2014-11-28 14:28:25 -08:00
Mihai Parparita
b7760bc67e Add some common code for handling GitHub fetch and template rendering errors.
Not all handlers are converted yet.

Inspired by http://blog.golang.org/error-handling-and-go, but also (ab)uses the
error mechanism to handle redirects.
2014-11-27 16:02:21 -08:00
Mihai Parparita
7222af8259 Add an email footer. 2014-11-22 15:04:09 -08:00
Mihai Parparita
80bb40342e Position flashes within the body. 2014-11-22 14:47:13 -08:00
Mihai Parparita
479c5aa723 Add flash message when saving settings. 2014-11-22 14:45:16 -08:00
Mihai Parparita
905f667a1e Add option to disable emails. 2014-11-22 14:42:13 -08:00
Mihai Parparita
543552ae6b Restrict to organization repositories that the user is a member of.
Helps to filter out cases where the user doesn't have commit access to most of
an organization's repositories (@ImJasonH goes from 745 to 192).
2014-11-16 21:50:34 -08:00
Mihai Parparita
19f257f02e Add files missing from 0157ac3c46. 2014-11-16 21:50:18 -08:00
Mihai Parparita
0157ac3c46 Add admin UI listing all users. 2014-11-08 15:28:15 -08:00
Mihai Parparita
d3655c14db Less aggressive whitespace insertion. 2014-11-04 22:10:13 -08:00
Mihai Parparita
30f2ad4400 Actually use a zero width space to prevent timestamps being detected as events.
Zero-width space (200b) is deprecated, but the new way (word joiner - 2060)
doesn't work yet (at least not in Chrome/Mac since it switched to HarfBuzz)
2014-11-04 22:04:02 -08:00