Month: 2018-11


kjcl 17:22:40
@kevinliao has joined the channel
kjcl 17:23:12
@kevinliao has renamed the channel from "2good3bad" to "marriage-equality"
kjcl 17:24:19
@kevinliao set the channel topic:
mrorz 17:35:41
@mrorz has joined the channel
bess 18:14:16
@leechiasan.bess has joined the channel
patcon 18:17:21
@patcon has joined the channel
bil 18:18:34
@bil has joined the channel
agameofprivacy 18:24:19
@agameofprivacy has joined the channel
kjcl 18:42:56
city picker is working. I pushed it before I took a nap.
kjcl 18:43:24
it’s very ugly though
agameofprivacy 18:58:27
u sure about city picker working? is it on `ec/show-shifts`?
kjcl 18:58:42
one second
kjcl 18:59:07
agameofprivacy 19:00:46
got the new <select> but still not working.
kjcl 19:01:03
change it to yilan?
agameofprivacy 19:01:05
what might i be doing wrong?
kjcl 19:01:07
it should narrow things down.
kjcl 19:01:10
are you on mobile
agameofprivacy 19:01:10
kjcl 19:01:10
agameofprivacy 19:02:13
ugh gosh as if I didn’t know about console--
here’s the error:
agameofprivacy 19:02:17
Warning: Failed prop type: You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.
agameofprivacy 19:02:45
would that be a showstopper?
agameofprivacy 19:02:50
I’m on desktop Chrome
kjcl 19:03:01
ooooh this might be a showstopper.
kjcl 19:03:37
Working on it. Thanks!
kjcl 19:09:32
Fix pushed.
agameofprivacy 19:10:41
it’s perfect! :pray:
kjcl 19:12:15
I want to add datepicker now.
agameofprivacy 19:12:39
sounds good. I’ll do css when you’re done with all the search/filter stuff!
kjcl 19:13:34
What would a good datepicker with only 11 days left look like?
kjcl 19:13:36
from a UX perspective
agameofprivacy 19:14:11
I’d do a simple select, perhaps remove dates in the past as we go?
agameofprivacy 19:14:23
if that’s not too much trouble… :sthinking:
kjcl 19:15:26
hm okay. I’ll just reuse someone’s datepicker.
kjcl 18:43:32
because I’m very bad at css :disappointed:
agameofprivacy 18:56:26
that’s ok. it’s much worse to be bad at js. :point_left:
kjcl 19:47:24
@agameofprivacy datepicker is now in the bar, but it does not filter. the frontend should not change. I just need to add a filter now. You can go ahead and style without breaking anything now. :slightly_smiling_face:
agameofprivacy 19:47:46
thanks @kevinliao
kjcl 19:47:47
woops it’s on master
kjcl 19:47:50
I’ll rebase
agameofprivacy 19:48:12
kjcl 19:48:26
agameofprivacy 19:56:43
pushed a commit to support multiple CanvassType--works, but may be dirty.
kjcl 19:56:50
kjcl 19:56:53
kjcl 19:58:42
still looks like this
Screen Shot 2018-11-13 at 7.58.18 PM.png
agameofprivacy 19:59:48
yep, doing styles now!
agameofprivacy 19:59:59
gimme 10-15
kjcl 20:00:24
got it! my bad. take your time! :slightly_smiling_face:
agameofprivacy 20:14:40
pushed--optimizing for mobile now.
kjcl 20:16:47
thanks! I’m working on getting that filter working. :slightly_smiling_face:
kjcl 20:25:39
kjcl 20:58:22
Datepicker is working!
kjcl 20:58:25
agameofprivacy 21:04:03
pushed to _not master_?
kjcl 21:09:34
Woops. To master.
kjcl 21:09:46
I keep pushing to master because I forget to chec back in after redeploy. :facepalm:
kjcl 21:09:49
kjcl 21:12:05
@agameofprivacy how do you rebuild sass?
kjcl 21:12:21
I’m writing one last little thing.
agameofprivacy 21:12:39
`sass --watch src/index.scss:src/index.css`
kjcl 21:12:47
thank you!
agameofprivacy 21:12:48
if you have sass installed
agameofprivacy 21:13:06
hold on… I just found out line url schemes don’t work anymore
agameofprivacy 21:13:20
need to replace with official button I think--gimme one sec
agameofprivacy 21:16:30
nvm, it doesn’t look like there’s an easy way. best workaround is probably copy lineID on button click?
agameofprivacy 21:16:39
any thoughts?
kjcl 21:28:12
I don’t have any experience with LineID :stuck_out_tongue:
kjcl 21:28:46
Added this!
Screen Shot 2018-11-13 at 9.28.12 PM.png
kjcl 21:29:35
Is there a way to make the search bar align with everything else?
kjcl 21:29:39
it feels weird how it sticks out like that.
agameofprivacy 21:32:14
agameofprivacy 21:32:18
ok I’ll work on that now
kjcl 21:46:27
@agameofprivacy what does do?
agameofprivacy 21:47:01
not sure, I think that probably resulted from the sass watch.
kjcl 21:47:09
okay. hm.
agameofprivacy 21:51:07
I ran into trouble with importing a react lib with typescript, help?
agameofprivacy 21:52:25
it’s in `Action.tsx`
agameofprivacy 21:52:46
the lines that are commented out.
kjcl 21:57:19
agameofprivacy 21:57:38
is that a library?
kjcl 21:57:42
Like what is the error?
kjcl 21:57:46
and what is the library?
agameofprivacy 21:57:46
agameofprivacy 21:57:53
kjcl 21:58:07
New dependency?
agameofprivacy 21:58:16
kjcl 21:58:43
okay what is the error?
kjcl 21:59:22
`import {CopyToClipboard} from 'react-copy-to-clipboard';`?
agameofprivacy 22:00:59
Screen Shot 2018-11-13 at 9.59.35 PM.png
kjcl 22:01:11
oh yeah
kjcl 22:01:12
kjcl 22:01:19
are you using npm or yarn
agameofprivacy 22:01:23
kjcl 22:01:39
run `yarn add -D @types/react-copy-to-clipboard`.
kjcl 22:01:41
See if that helps.
agameofprivacy 22:01:53
kjcl 22:02:07
That way TypeScript gets to know the types of the library so we get less errors :wink:
kjcl 22:02:18
This is my first project programming with TS too :wink:
kjcl 22:05:19
Did it work?
agameofprivacy 22:05:45
it got less bad haha
kjcl 22:05:48
can I see?
kjcl 22:05:54
or do you have it under control ?
agameofprivacy 22:06:13
Screen Shot 2018-11-13 at 10.05.48 PM.png
agameofprivacy 22:06:24
nope I’m ¯\_(ツ)_/¯
agameofprivacy 22:09:08
yay got it to work
agameofprivacy 22:12:25
Just pushed to `ec/show-shifts`
agameofprivacy 22:12:45
Thanks for all the help. Gonna wrap for the night. Great work! :raised_hands:
kjcl 22:13:13
kjcl 22:13:15
Thanks so much!!!!!
bess 22:14:40


patcon 15:41:13
is there a live demo site on heroku?
agameofprivacy 15:57:51
It’s running on github pages here: :pray:
patcon 15:59:18
cool! thanks! May I humbly suggest adding that to the URL of the repo, as that's often a quick place people look :slightly_smiling_face:
kjcl 17:51:48
Okay I’ll do that
HuangFu 15:42:26
@aoisoranoko has joined the channel
kjcl 21:18:34
add og:meta data so sharing on facebook is prettier.
bess 21:22:24;theater 台灣零時政府

平權讓更多人有機會選擇如何去愛。   擅長前端的 g0v 貢獻者寫出網站,串接婚姻平權大平台搜集全台上百個發文宣、掃街或對話的志工開團資訊,可以用區域、日期尋找開團資訊,讓資訊更容易閱讀。   公民科技也讓更多人有機會選擇如何行動。   :heartbeat: 「兩好三壞,全台開團資訊」網站 <> :heartbeat: 網站資料來源...

chihao 22:52:55
@chihao has joined the channel
HuangFu 23:29:40
感謝製作網站,請問資料從 google spreadsheets 到網頁是靠工人智慧嗎?目前這兩處資訊不完全同步,是不是把 `(11/?? 更新)` 加回去標題比較好呢?
agameofprivacy 13:15:01
agameofprivacy 13:16:36
@kevinliao here’s the pr:

if you’ve got some time, perhaps we could look into as @patcon recommended? :pray:
agameofprivacy 13:19:18
And here’s the dup spreadsheet I used to 工人智慧 line and phone info:

@aoisoranoko 請問您有編輯原始資料google sheet的權限嗎?謝謝!
kjcl 13:20:39
agameofprivacy 13:28:02


mrorz 10:35:37
看起來不是動態抓的 QQ



Contribute to g0v/for-marriage-equality development by creating an account on GitHub.

kjcl 12:30:03
Is not.
kjcl 12:30:10
Take google sheet export to cab
kjcl 12:30:13
kjcl 12:30:16
And readd
kjcl 12:30:24
Do I need to readd data?
kjcl 12:30:29
I am on mrt right now.
agameofprivacy 13:19:18
And here’s the dup spreadsheet I used to 工人智慧 line and phone info:

@aoisoranoko 請問您有編輯原始資料google sheet的權限嗎?謝謝!
agameofprivacy 13:29:00
@kevinliao starting a new branch `live-data-first` to work on pulling in live data by using _get-sheet-done_. will forego Line and Call buttons in favor of raw contact info text for now.
agameofprivacy 14:11:43
Sorry got pulled into work stuff. Have to work on this later.. :(
agameofprivacy 21:40:36
@kevinliao it’s mostly done. could you take a look? since we don’t have edit access to the master spreadsheet, I had to use a copy still:
agameofprivacy 21:40:54
kjcl 21:41:03
I will be home soon and look!
kjcl 23:21:04
kjcl 23:24:36
@agameofprivacy so right now, it pulls from your spreadsheet copy or from their spreadsheet?
agameofprivacy 23:37:04
My spreadsheet copy of their 11/15 version.
agameofprivacy 23:38:05
In order to pull from theirs we’d need to hit “publish for web” on their spreadsheet, which requires edit permissions.
agameofprivacy 23:39:01
GetSheetDone also doesn’t seem to support blank rows out of the box, so I had to edit them out of my copy. :(
kjcl 23:46:36
Is hitting ‘publish for web’ something we only need to do once
kjcl 23:46:46
kjcl 23:46:47
I can talk to them.
agameofprivacy 23:47:39
I think so. Once they do it, we need to get the document key from the shareable url.
agameofprivacy 23:48:26
And replace the key that’s currently in `app.tsx` or `index.tsx`
agameofprivacy 23:49:14
And figure out how to get GetSheetDone to handle empty rows that currently exist on their spreadsheet.
agameofprivacy 23:49:46
The key should be a 44-char string
kjcl 23:50:04
I can just tell them to get rid of empty rows. :stuck_out_tongue:
agameofprivacy 23:50:47
Hahahahaha or that. ;)
kjcl 00:21:50
I pushed. I will talk to|


WeiLee 02:01:12
@whus6207 has joined the channel
agameofprivacy 20:41:51
@kevinliao finished the nearby features and added some more polish--along with updating sheet with latest info from master. Let me know if I could help get this up on gh-pages!
Screen Shot 2018-11-16 at 8.40.11 PM.png
kjcl 20:42:21
kjcl 20:42:29
I’ll deploy in a second.
agameofprivacy 21:06:10
hmm I think I should update the color used in location labels…
agameofprivacy 21:06:34
now it’s a bit close to the other side’s theme color.
kjcl 20:42:34
What else is there to work on?
agameofprivacy 20:45:16
just hoping to get closer collab with equallove on their sheet so I can stop manually syncing across sheets for nearby. :wink:
agameofprivacy 20:45:25
do you have time to reach out?
kjcl 21:06:53
I’m reaching out right now.
agameofprivacy 20:45:39
I imagine more and more canvasses will be posted in the coming week.
agameofprivacy 20:49:43
anything else you’d like to work on? after the referendum I wanna look into making this more reusable so folks can street-organize more rapidly..
kjcl 21:07:13
I was thinking if we could find a way to easily share individual canvasses
kjcl 21:07:33
so an organizer could share a link and say “hey everyone I’m going to be canvassing on this ‘date’“.
kjcl 21:07:36
This would be an interesting problem.
kjcl 21:07:45
But we will probably have to use a static site generator, or React-Router for this.
kjcl 21:07:49
And I hate react-router.
agameofprivacy 21:09:32
kjcl 21:10:03
Also, we would have to make sure the links persist after each time we refresh.
patcon 21:37:06
Md5 Hash of several combined-unique and unchanging fields?
patcon 21:37:20
To give them permalinks, that is?
agameofprivacy 21:16:40
agameofprivacy 21:17:52
the ever changing info on the sheet might cause some issues also?
patcon 21:39:46
Feature request, a link to "database" spreadsheet (in the footer, maybe). Let's not hide the raw data we rely on, as maybe some student might have an even more clever idea :) yay for always making the open data that drives things discoverable


agameofprivacy 06:39:52
@kevinliao thanks for merging! Perhaps we should update `gh-pages`? :raised_hands:
agameofprivacy 10:49:25
Thanks for deploying! :smile: lemme know if there’s anything else I could help with. :muscle:


kjcl 02:51:03
waiting for response from| they say they are working on giving me access and removing empty lines.
agameofprivacy 21:30:42
Wow how come I never saw this before? Pretty cool:


選前最後衝刺! :secret:秘密武器介紹:secret: 這個秘密武器就是兩好三壞陣營的官方 line@ 不但不會一直打擾你,還有智慧型(?)選單讓你依自己的需要拿到新鮮+正確的素材。 這些素材,可以讓你在謠言四竄的各大群組颯爽登場自在洗版喔! 手刀加入官方 line@ ID:@2yes3no (要加@小老鼠喔) 或點擊連結:<>

kjcl 22:27:15
@agameofprivacy i have removed the empty rows. how do i give read/write access to the app
kjcl 22:37:23
agameofprivacy 22:42:20
oh cool, thanks!
agameofprivacy 22:42:30
could I help with adding in GPS coords?
agameofprivacy 22:44:20
also, I think my stupid :hover css is blocking text selection on iOS (and perhaps android), making it hard to copy contact info...:man-facepalming: I’ll work on a fix now--could you deploy to gh-pages when ready? :pray:
kjcl 22:49:17
Yeah. But what is the Google Sheets ID I should use to get the real-time data working? I’m trying to find it but it’s not working on my end.
kjcl 22:49:27
kjcl 22:49:28
kjcl 22:49:30
kjcl 22:50:31
wait it’s worknig…. but nothin gis displaying for some reason.
agameofprivacy 22:50:42
agameofprivacy 22:50:54
we need to add a column named “經緯度”