1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

966 Commits

Author SHA1 Message Date
Chris Cummer
8892005890
Merge branch 'master' into github-issue-status 2018-07-13 00:57:59 -04:00
Bryan Austin
3ee6304e63 Add optional PR status display in Github module
While spamming refresh on a pull request today to see if required
builds finished yet, it occurred to me that it'd be awesome to have
WTF tell me when a PR was ready to be merged. So, here it is! An
icon will now display next to PRs in the "My Pull Requests" section
detailing whether GitHub thinks they can be merged.

This is behind a new, opt-in config flag called "enableStatus",
due to the fact that in order to function, this feature has to hit
the GitHub API individually for each PR in order to get an updated
status check - there's a comment in the code with a link that
explains why (otherwise, `pr.GetMergeableState()` returns an empty
string). For a large number of PRs, this can slow down refreshes a
bit and _might_ even wind up rate limiting you (while testing I had
some instances of GH refusing to return me any repository info,
though it didn't actually give me an error, usually after I had
been spamming it with requests for 30 PRs in a row for a bit). So,
for that reason, use at your own risk (but it's probably fine).

I am not an emoji expert, so suggestions on the display are welcome
if you can think of anything awesome. A lot of the ones I tried
seemed to render funny and mess up spacing.
2018-07-12 18:39:55 -07:00
Chris Cummer
857702e971 Add specs for wtf.ChecklistItem 2018-07-12 17:51:23 -07:00
Chris Cummer
5ebab79e2c Clean up the Todoist module code a bit - match names to things 2018-07-12 17:32:19 -07:00
Chris Cummer
4ad25edc0e First pass at creating a generic checklist component
The idea is that checklist-like modules would all share an underlying
checklist implementation (ie: Todo and Todoist) to avoid duplication.
2018-07-12 11:29:41 -07:00
Chris Cummer
236005ab48 Clean up all-contributors entry 0.0.11 2018-07-11 17:57:44 -07:00
Chris Cummer
d3f4812ad8 Add the Weather 'apiKey' config value to the documentation 2018-07-11 17:53:55 -07:00
Chris Cummer
35c2e088e0 WIP 2018-07-11 17:47:05 -07:00
Chris Cummer
4b8abfb28c Add interactive Jira documentation 2018-07-11 17:43:54 -07:00
Chris Cummer
8c52a7a288 Revert "gcal module improvements" 2018-07-11 17:38:53 -07:00
Chris Cummer
81799f9ba9 Update documentation for Todoist module 2018-07-11 17:38:53 -07:00
Chris Cummer
708699270d Refactor GCal calendar code to simplify things 2018-07-11 17:38:16 -07:00
Anand Sudhir Prayaga
279822f0a6 Add gerrit widget 2018-07-11 17:37:00 -07:00
Chris Cummer
599a2aa813 Add 'make size' to Makefile because vanity 2018-07-11 17:36:59 -07:00
Chris Cummer
b1cdfe2c7b Clean up the Todoist documentation a bit 2018-07-11 17:36:59 -07:00
Chris Cummer
995cd59176 Clean up the Todoist documentation a bit 2018-07-11 17:36:59 -07:00
Chris Cummer
37bb02571e Update documentation for Todoist module 2018-07-11 17:36:59 -07:00
Chris Cummer
81cc0e4450 Add documentation for Todoist module 2018-07-11 17:36:59 -07:00
Chris Cummer
195fa331cd Add @darkSasori as a contributor 2018-07-11 17:36:59 -07:00
Lineu Felipe
e288eef8dd add todoist widget 2018-07-11 17:36:51 -07:00
Bill Keenan
8ad0d34875 fixed bargraph test 2018-07-11 17:36:51 -07:00
Konstantin Vorobyev
2c07ccce46 gcal module improvements:
- Simplify Google OAuth client creation
- Read OAuth code via text dialog

Same approach can be re-used for gspreadsheets
2018-07-11 17:36:51 -07:00
Bill Keenan
f1c4644620 now will load weather api key from config if not in env 2018-07-11 17:36:51 -07:00
Chris Cummer
01d664c058
Merge pull request #241 from senorprogrammer/revert-234-google-oauth
Revert "gcal module improvements"
2018-07-11 20:34:02 -04:00
Chris Cummer
c1dc9523a6
Revert "gcal module improvements" 2018-07-11 17:33:49 -07:00
Chris Cummer
44c42ef046
Merge pull request #234 from kvj/google-oauth
gcal module improvements
2018-07-11 20:32:35 -04:00
Chris Cummer
25290cdc57 Camelcase the Weather API key config for consistency 2018-07-11 17:27:06 -07:00
Chris Cummer
ba97ac7999 Add 'make size' to Makefile because vanity 2018-07-11 17:21:33 -07:00
Chris Cummer
cc4a44e8f5 Clean up the Todoist documentation a bit 2018-07-11 17:21:33 -07:00
Chris Cummer
3d304e7256 Clean up the Todoist documentation a bit 2018-07-11 17:21:33 -07:00
Chris Cummer
2f2446a424 Update documentation for Todoist module 2018-07-11 17:21:33 -07:00
Chris Cummer
cf4d2c34b2 Add documentation for Todoist module 2018-07-11 17:21:33 -07:00
Chris Cummer
95c0fffb63 Add @darkSasori as a contributor 2018-07-11 17:21:33 -07:00
Lineu Felipe
a0c9b63a01 add todoist widget 2018-07-11 17:21:30 -07:00
Bill Keenan
e211d655ee fixed bargraph test 2018-07-11 17:21:29 -07:00
Chris Cummer
89868c169c New and improved multicalendar display format 2018-07-11 17:21:29 -07:00
Chris Cummer
c64270e6ad Wrap Google's calendar Event in a CalEvent struct 2018-07-11 17:21:29 -07:00
Chris Cummer
374cdc0612 Refactor GCal calendar code to simplify things 2018-07-11 17:21:29 -07:00
Anand Sudhir Prayaga
79d4f04f0c Add gerrit widget 2018-07-11 17:20:37 -07:00
Bryan Austin
0ffbf66f88 Re-work calendar view
As discussed in issue #223 (which has pictures that better explain
the changes here), this change:
- Removes the date from individual events, instead centering a
  title at the start of each day with the date (which uses a new
  configurable color, `wtf.mods.gcal.colors.day`)
- Consolidates 3 lines per event down to 2, moving timestamp to
  front of each event
- Makes the time-until-event text turn red when under 30 minutes
  (wasn't discussed in the issue but was another thing I added
  locally for this, feel free to discard if unwanted)

New format is:
```
           Monday, Jun 25
 x 13:00 Super Cool Meeting Title 2h
 Event location

 x 14:00 Also Super Cool Meeting 3h
 Event location

          Tuesday, Jun 26
 ...
```
2018-07-11 17:19:36 -07:00
Chris Cummer
8b169c6fdb Add 'make size' to Makefile because vanity 2018-07-11 13:55:35 -07:00
Chris Cummer
83eb8d617d Clean up the Todoist documentation a bit 2018-07-11 13:47:50 -07:00
Chris Cummer
43a3036cb3 Clean up the Todoist documentation a bit 2018-07-11 13:46:43 -07:00
Chris Cummer
c958a43799 Update documentation for Todoist module 2018-07-11 10:30:24 -07:00
Chris Cummer
195da3801c
Merge pull request #237 from BillKeenan/update_bargraph_test
fixed bargraph test
2018-07-11 13:29:33 -04:00
Chris Cummer
4d1ab92b47 Add documentation for Todoist module 2018-07-11 10:27:57 -07:00
Chris Cummer
d1bdeb7876 Add @darkSasori as a contributor 2018-07-11 10:25:47 -07:00
Chris Cummer
8267c3aa93 Merge branch 'darkSasori-master' 2018-07-11 10:24:05 -07:00
Chris Cummer
fad99a2262 Add todoist dependency 2018-07-11 10:00:00 -07:00
Chris Cummer
06d1f58275
Merge branch 'master' into master 2018-07-11 12:58:03 -04:00