-
Notifications
You must be signed in to change notification settings - Fork 1
/
features.txt
444 lines (265 loc) · 16.5 KB
/
features.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
EXTERNAL FEATURES SO FAR:
- Display news from News.API
- Allow user to create Link
- Allow user to create Poll.
- Display articles in newspaper format.
- Display single article.
- Allow postingn and display of nested comments.
- Log-in & register - basic functionality.
- History page that shows what you've posted & voted on.
INTERNAL FEATURES SO FAR:
- Gozilla server.
- News server - Downloads news articles from News.API
- Image server - Downloads news images and converts them to image thumbnail.
- Image scraping code.
- Gozilla form library.
MISC FIXED THINGS:
X voting on a poll from /news goes to viewing poll instead of activating vote
X Add "POLLS" to main news page, right after NEWS or as 1st cat. (A category just of polls. I got fdbk f Ryan H to make POLLS more obvious.)
X Try making POLLS first. (Will probably require better art)
X SERVER-TODO: create polls!!!
X Forms:
X dropdown forgets value!!!
X password needs 2l input w/ matching verification and mask w eyeball
X remove autocap f username
X dropdown text cutoff
X "Select" text for dropdowns
X (optional) animate placeholder text to label / try always having label (Tried, it didn't look good. Code is commented out in template file.)
X "Party" -> "Choose a Party"
X "Other" -> add text input
X "Other" -> didn't let him register
X "Party" -> Add other common parties, like Libertarian, Socialist, Progressive?
X Make up / ranking / down + n comments bigger on mobile, so ppl c C / click on it! Aldo top menu. May need to keep vz but remove votezilla for space on top?
X new dino thumbnails for Polls, (X that don't stretch vertically)
X fix thumbnail aspect ratio in image service (take into account calculated 2 vs 3 lines)
X Unknown poll creation bug (possibly when adding / removing additional options ?)
Y Unknown weird bug if you choose an obvious username on Chrome (?)
X headline - doesn't show link
X comment out ... f article til feature is active
X rename "server" to "service"
X Ryan - add margins between Articles
X Add vote to DB and display results, also allow user to change vote.
X from /news, hovering over any poll choice highlights all of them
X fix login crash asserts
X Tweak article cat colors
X fixed link to home from top header and "votezilla" logo.
X fixed weird voting issue (it was due to duplicate polls with same id in /news.)
X upon poll creation error, n>=3 text inputs do not display with nuField format.
X fixed duplicate news posts in DB bug
X article - add back nav arrow
X made /article link for poll to go to viewPollResults2 if you already voted.
X Capped option maxlength to somethig reasonable, like 50, when creating polls.
X upon poll creation error, n>=3 text inputs do not display with nuField format.
x make polls not inline for clarity (one per line) - tried and too much space.
X Add padding to the poll options
X Improve spacing and clarity of polls on /news
X fix weird wrapping issues with long titles and poll items (which Ryan was encountering too)
X fixed link to home from top header and "votezilla" logo.
X fixed weird voting issue
X fixed duplicate news posts in DB bug
X made /article link for poll to go to viewPollResults2 if you already voted.
X A 2 - article - add back nav arrow
X A 3 - See phone screenshot of weird science articles - 2367w old nat geo article, then only new-scientist. (so nat geo is bad timestamp and then sorted very far back in the Q.)
X removed polls from processing in imageService, because not needed.
X added unique constraint for vz.newspost on (title, newsourceid)
Y 2 - ++ "..." for items that are too long, when viewing results (Don't need now, since I cap the length to 50)
X A 3 - "More options..." for too many options for poll
X A 2 - Add poll creation explanations
X Fixed ON CONFLICT sql bug in newsServer. (Verified working on server.)
A 1 - radio options need more vertical padding, for mobile
A 1 - check poll options need more left padding, on mobile
A 2 - category - add back nav arrow to 'news' or 'home' or 'vz headlines'
A 2 - made category colorful headers thicker
A 2 - incr voting + comment power for now
A fixed issue where default thumbnail wasn't showing up during link post creation
A 3 - remove stretching from Mozilla nonheadline article news post
X - fixed issue with default image for poll posts pointing to localhost, now it uses '' as proxy for default image.
A 2 - up/down arrows need to be bigger and have more side spacing on mobile; the comment icon, too
A 2 - space out up/down buttons in /article
B 1 - add spacing around bottommost "more..." on /news
C 5 - Too many tabs open
B 2 - only show news posts w/ thumbnails (still show other types of posts)
Found & fixed while testing:
- On Edge, long text title or poll items other polls, in /news. This occurs when there are really long words.
This occurs on my Edge (44.19041.1.0), not on Tom's (81.0.416.88). Fixed, possibly, but it was for old IE browsers
which is a low market share.
- createPoll was crashing due to SQL error, fixed.
- Fixed article close button
- Fixed a bug preventing the ability to see immediate progress from up / down vote of any article in /news. (Because I'd removed the anchor on a previous check-in.)
A 2 - why does this poll sort so highly?: "Create a test poll question with lots of words and options and also it"
JUST FIXED (7/22):
A 13 - Want to view poll results on /news & /article once you've voted on it
- Shorten poll results via ... so it takes less space. Maybe rename to VOTED:
A 5 - equalize /news article order a little / prioritize page rank multiplied by less.
A 13 - Need ability to add new option when voting
A 2 - try defaulting polls to no flags set. (http://votezilla.io/viewPollResults/?postId=88165) Ryan H.: "I chose None because I noticed several polls where it did not make sense to choose more than one option and accidentally did so myself. It would be nice to be able to change a poll if there have not been any votes on it (except maybe your own). Need to be able to delete a poll or post or comment."
A - 2 - Article (poll) - need smaller header image because it's hiding poll from user, creating confusion.
^^ I addressed this by anchoring user to the start of the poll when they go there.
A - 2 - clicking on comment icon from /news - should take you to "leave a comment" anchor - otherwise, confusing (TOM)
A - 2 - on multi-select poll, divide by total not max, so it adds up to 100% (TOM)
C - 2 - have back button for polls go back to POLLS
B 2 - make polls that have results abbreviated (due to long option text) should list # of votes.
Added POLLS to history; Improved poll layout a little: Made them kNoHeadlines; shrunk poll dino images a little; increase num visible poll items from 3/8 to 12/12.
Added POLLS to history.
Shrunk poll dino images a little
Increase num visible poll items from 3/8 to 12/12.
A - 8 - Add activity tab (like FB notifications, but list all ppl) - 1st pass done
A - 5 - Change and remember the color of Activities once you've clicked on them
A - 8 - Get the user's IP address. (Needed for spam account & spam vote prevention.)
Started creation of firewall security system.
B 3 - history needs polls section
A - block Chinese hackers.
A 2 - too many tabs open
A 40% x 13 - Tutorial - got the pop-up working, and basic carousel working!!!
- fixed a firewall crash when working from localhost
8/3:
A - 8 - cats need to be more obvious that they are clickable, maybe thick underline / link icon / spell it out (i.e. MORE NEWS...) (TOM)
^^ + vv
- provide better underlining for /news articles, Also hover of articles, poss make them blue too.https://stackoverflow.com/questions/13840403/edit-line-thickness-of-css-underline-attribute?rq=1#:~:text=You%20can%20adjust%20underline%20position,want%20to%20underline%20an%20href.
https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration
^^ + vv
Make article links more obvious. Do what Yahoo news does on hover - text blue, underline, (bonus for overlay div for brightening).
A - 2 - register with search engines
A 2 - fix hover style for categories and "[] POLL" or "[] RESULTS"
B 3 - on sidebar, buttons are too small, and it needs the new button style.
B 5 - converted icons to font awesome
A 3 - made up/down icons brighter
B 3 - made all links better and more blue
B 1 - made user link point to history
~ - made everything looks more awesome!!!"
8/5:
A 8 - click on news source / user icon to see their news articles / posts
B 2 - history - add header or splashscreen explaing what it is (TOM)
B 2 - on sidebar, more ____ (i.e. polls) should be clickable (TOM)
displaying just 4 polls on /news, so news can be discovered easier.
- Enable DDOS prevention somehow
B 13 - https: https://blog.kowalczyk.info/article/Jl3G/https-for-free-in-go-with-little-help-of-lets-encrypt.html
B 3 - comments reply - textarea s b cr.d below Reply button w Reply ch.d to X (instead of b4)
A 3 - deduce title for link sharing (via button)
Activity - fixed how Activity is worded, so 'your' is displayed appropriately.
A - 5 - sharing articles nees better thumbnail - use og:image, og:Title, possibly others too - https://ogp.me/
A - 13 - JEFF: www.votezilla.io doesn't work (Ask namecheap if they can do this. Otherwise, will have to do it with letsencrypt.)
also implemented votezilla.news and www.votezilla.news
FIXES:
B 1 - fixed up/down icon positioning
B 3 - fixed nonheadline articles being too many lines;
A 3 - fixed a voting bug that revealed another voter's vote in /history
A 8 - Fixed poll bug!!! (voting with no options selected produces both JS and/or voting.go bugs.)
B 8 - Fixed issues with poll options - both when creating poll, and when a new option is being added.
A - 1 - /create isn't telling ppl to log in first
8/19
A 13 - cool header icon idea for mobile:
x square large icon with text underneath.
x vz, which links to about Votezilla stuff, and c h subtext "about".
x profile (username) on right, logout is within here so not cluttering main menu.
x Then play with the order of these, leftmost = news, "updates" (instead of activity) 2nd from right so easy to click on.
x Will need to handle logged out case: log in / sign up, somehow.
x "create" could say "create / share".
x jeff likes the FB pencil for create
8/20
A - 8 - make large_thumbnails
A - add expires headers - Implemented... at least according to Chrome and Firefox, it's cached. pingdom.com only looks for the Expires tag so doesn't recognize it. But it seems to work in Chrome.
https://play.golang.org/p/fpETA9_1oo
https://devcenter.heroku.com/articles/increasing-application-performance-with-http-cache-headers
Notes:
Cache-Control:public
max-age=31536000 // one year (cache time in seconds)
Last-Modified: // conditional
8/22
upgraded the droplet
8/24
db opt! 723ms - 258ms = 465ms saved!!! (Chrome dev tools, network tab, caching enabled.)
8/25
A 5 - OPT - shrink mozilla dino head pic
prev OPT test: https://tools.pingdom.com/#5d08fdfa8b400000
8/26
A - 5 - Poll options need better written directions.
A - 3 - The ability for ppl to add new options is now checked by default.
B - 1 - Poll options now have a "Poll options:" label for the group.
8/28
Fixed bug
Implemented notifictions HTML and CSS
A - 8 - Add num notifications javascript on 1 minute timer that asks how many notifications the person should have.. will need
will need service, JS timer and ajax call, plus table to keep track of notifications that have been clicked on.
Also, add more notifications
C 5 - why you voted comment
8/31
A - 5 - GORDON & SUSAN: switch Sign Up and Create New Account, move Sign Up, to make simpler for new users.
A - 5 - GORDON: don't make /registerDetails stuff mandatory
Easier login - just email for now. (Please don't abuse this.)
A - 8 - ranked vote - show runoff communication.
A - 3 - only allow voting breakdowns when >5 votes or rankedvote, appropritately.
A - 5 - find a way to remove password requirement, just email
Remove password requirement for now, from log in and sign up pages. Remove with a disabled flag, so it can be reenabled later.
A - 5 - poll option length is too short to write anything meaningful. Poll results also need to be able to show longer text
A - 5 - Prioritize polls with more votes. But less if you've already voted on it.
B 2 - Condense demographic ages: <=17, 18-41, 42-63, 64+
<=17, 18-35, 36-53, 54+
B 3 - Fixed an elimination bug
9/3:
A - 13 - Implemented demographic breakdown (available when 5+ or 10+ votes)
- A - polls orderBy += #votes (the good polls are getting buried under the recent ones)
9/25:
A - uncache news + polls, see if it fixes the server issue
A - 8 - Tried separating news from polls, news into its own tab, move /about into part of /history.
- Didn't look good. But now at least there's a flag that I can turn it on with.
B+ 8 - organize cat posts in columns to save vertical space, on desktop... oh yeah, there's a reason I didn't do that, it's because of sorting order desktop vs mobile... hmmm. Send both versions with a media query to decide which to show? looking up poll option would have to search both of them? Or just serve the column version, but put high-priority articles in left, low-priority on the right?
- deprioritize posts you've interacted w
A - 5 - Added more spacing between articles.
9/28
A - uncache news + polls, see if it fixes the server issue
A - 8 - Tried separating news from polls, news into its own tab, move /about into part of /history.
- Didn't look good. But now at least there's a flag that I can turn it on with.
B+ 8 - organize cat posts in columns to save vertical space, on desktop... oh yeah, there's a reason I didn't do that, it's because of sorting order desktop vs mobile... hmmm. Send both versions with a media query to decide which to show? looking up poll option would have to search both of them? Or just serve the column version, but put high-priority articles in left, low-priority on the right?
- deprioritize posts you've interacted w
A - 5 - Added more spacing between articles.
A - fix filled in checkboxes character that looked weird on Android
10/1
A - 3 - converted email checking to all lowercase!!!
A - 8 - Removed zip code, country, and real name from registerDetails.
Zip code can be gotten from ip address: https://ezcmd.com/ip-to-location?action=webapi&ip_address=73.240.47.68
Record ip address during registration
Real name we can get later if the person chooses (in settings) to post using their real name
A - 13 - smoother login in notify prompt (pop up)
A - 8 - fix for caching optimization
A - 8 - smoother post-login notification
10/6
A - Fixed email.
10/7
2 - RYAN - remove #comments icon
5 - RYAN - added spacing and clearly outlined boxes like google news
3 - Cool article border hover effect
5 - FB link was logging out user (had to set cookie mode = Lax instead of Strict)
A 3 - post sign up -> /article
B 1 - "news" -> "news & polls"
B 1 - 'updates' b4 'share/create' ?
B - 3 - play alert sound for notification
B - 3 - change title dynamically like FB does, for alerts
10/12
B - 2 - poll image thumbnail (at least for non-default thumbnails) - CSS = margin-left:0, border-radius:8px, height and width 68x68 works well.
C - 8 - cool button style
A - 1 - Create a new user "votezilla", use that to share polls
A 34 - eml - notifications about new polls
X + Html template tech
[X] 8 html email tech
[X] 8 Design FEATURED POLL part of daily email
[X] 1 Add link to poll image, title, and vote button
[X] 2 Shrink images a little
[X] 1 Clean up unused email code
[X] 3 Test w/ images turned off
[X] 2 git commit, test sending email new way on the server
[X] 5 unsubscribe eml & prefs on server (Email prefs: 1 / day, 1 / week, 1 / month, no email)
[X] 2 update daily email send from bus address + unsubscribe / email prefs link
[X] 3 friction-free login from email via &autoLoginEmail=[eml] (for poll + unsubscribe)
[X] submit and test on server
[X] 3 "Create new account" button should be green!
B - 2 - Gave it a nicer gradient too.
B - 3 - Fixed poll ranking
B - 3 - Votezilla name appears in email From now.
C - 3 - Expanded comment loses all <br>'s.
[X] 8 Implement daily email batch: For now, triggered via: gozilla -dailyEmail=true -featuredArticleId=376999
A - 3 - Change email of both my accounts to something more obscure, to prevent hacking?
B - 2 - Polls - add urlToImage (optional)
A - cr presidential poll
A - 5 - Fixed some tied ranked voting and divide by zero bugs, plus improved messaging for ranked votes
B - 3 - Delete bad polls