Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The BIG Refactor #2039

Merged
merged 400 commits into from
Mar 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
400 commits
Select commit Hold shift + click to select a range
2eeffe6
Issue #2017 - fix watch task and postcss
zoepage Jan 23, 2018
b4d9d1a
Issue #2012 - normalize dropdown
zoepage Jan 23, 2018
766d261
#2012 #2017 - fix svg + add search
zoepage Jan 24, 2018
9a4c4ec
Issue #2012 - fix z-index for dropdown
zoepage Jan 24, 2018
510e8cb
Issue #2012 - fix z-index for nav
zoepage Jan 24, 2018
d2ce836
Issue #2012 - fix pagination
zoepage Jan 24, 2018
920b671
Issue #2012 - remove double headline
zoepage Jan 24, 2018
00218ce
Issue #2012 - fix search-bar z-index
zoepage Jan 24, 2018
681fb7d
Issue #2012 - fix grid for new issue
zoepage Jan 24, 2018
31d5888
FIX - broken css build
zoepage Jan 24, 2018
90654a8
Issue #2037 - moved min.css to dist folder
zoepage Jan 25, 2018
1c3b24b
Issue #1891. Remove redudant <label> and change where we show image p…
miketaylr Jan 24, 2018
b04ce79
Issue #1891. Update image preview tests for new selector.
miketaylr Jan 24, 2018
4856021
Issue #1891. Fix anonymous submit button type and name.
miketaylr Jan 24, 2018
4b2dd40
Issue #1891. New Issue route needs a js-ReportForm parent like homepage.
miketaylr Jan 24, 2018
5d6554f
Issue #1891. Get "remove image upload" working again.
miketaylr Jan 25, 2018
2a33f2f
Issue #1891. Add rudimentary styles for image upload error.
miketaylr Jan 25, 2018
226042c
Issue #1891 - remove unused wc- css styles
zoepage Jan 29, 2018
ba73678
Issue #1891 - changed error msg class
zoepage Jan 29, 2018
c79607d
Issue #1891 - added validation to input fields
zoepage Jan 29, 2018
a703358
Issue #1891 - fix height of upload label
zoepage Jan 30, 2018
76e4e24
Issue #1891 - add upload add / remove, layout fixes
zoepage Jan 30, 2018
d257975
Issue #1891 - layout fixes + new validation svgs
zoepage Jan 31, 2018
49a5be1
Issue #1891 - fix flash message for max upload size
zoepage Jan 31, 2018
87fc5f4
Issues #1891 - revert temp fix for downsizing img
zoepage Jan 31, 2018
6ff37bf
Issue 1891 - add error message for upload
zoepage Jan 31, 2018
32bf87e
Fix merge conflict
zoepage Feb 1, 2018
c19a2a8
Issue #2011 - initial grid
zoepage Feb 1, 2018
c82010a
Issue #2011 - add comments
zoepage Feb 1, 2018
d176da3
Issue #2031 - Updated stylelint to v8
magsout Feb 2, 2018
0341a8e
Issue #2031 - fixed deprecated rules
magsout Feb 2, 2018
37db56c
Issue #2011 - fix broken layout in comment section
zoepage Feb 2, 2018
1739e27
Issue #1891 - clean up SVGs
zoepage Feb 2, 2018
81c2773
Issue #1891 - removed non-existing button css class
zoepage Feb 2, 2018
ff3bf92
Issue #1891 - fix double notification-info class
zoepage Feb 2, 2018
c026bc0
Issue #1891 - normalize z-index
zoepage Feb 2, 2018
e45e40a
Issue #2011 - add comment box
zoepage Feb 6, 2018
bb2d7f4
Issue #2011 - fix overflow in code snippet
zoepage Feb 7, 2018
42edd50
Issue #2011 - fix grid padding overflow
zoepage Feb 7, 2018
0b49226
Issue #2049 - added --fix option and lint only css/src
magsout Feb 7, 2018
864e3be
Issue #1933 - Adds tests for new contributors section
karlcow Feb 8, 2018
ad94748
Issue #1933 - Adds routes for contributors section
karlcow Feb 8, 2018
5a55c87
Issue #1933 - Adjusts the navigation for contributors section
karlcow Feb 8, 2018
db9c5fe
Issue #1933 - Adds templates to contributors: report bug
karlcow Feb 8, 2018
5e76548
Issue #1933 - Adds content to contributors template: reproduce bug
karlcow Feb 8, 2018
cf29e53
Issue #1933 - Adds content for diagnose a bug
karlcow Feb 8, 2018
2bd4213
Issue #1933 - Adds content to contributors template: site outreach
karlcow Feb 8, 2018
7764956
Issue #1933 - Adds templates to contributors: build tools
karlcow Feb 8, 2018
bdf2400
Issue #1933 - Adds templates to contributors: web research
karlcow Feb 8, 2018
f244a75
Issue #1933 - Adds templates to contributors: organize events
karlcow Feb 8, 2018
48dae35
Issue #2011 - added label box with labels
zoepage Feb 8, 2018
6d42942
Issue #2011 - add new styles for label editor
zoepage Feb 12, 2018
332a951
Issues #2011 - fix missing }
zoepage Feb 12, 2018
97315c9
Issue #2011 - fix CSP issue caused by auto merge
zoepage Feb 13, 2018
9c8a9d8
Issue #2011 - fix SVG position for upload
zoepage Feb 13, 2018
d7bbef9
Issue #2011 - fix milestone editor
zoepage Feb 13, 2018
83ce148
Issue #2011 - fix max width for img in issue body
zoepage Feb 13, 2018
bdfcf99
Issue #2017 - lint CSS files
zoepage Feb 13, 2018
bb8c983
Issue #2017 - add webcompat.dev to linter
zoepage Feb 13, 2018
2eee7c7
Issue #2017 - add webcompat.dev to lint:fix
zoepage Feb 13, 2018
f93c6a0
Issue #2017 - add CSS to pre-linter
zoepage Feb 13, 2018
f54620e
Issue #2012 - fixed search bar
zoepage Feb 14, 2018
af6c853
Issue #1933 - add sub nav structure
zoepage Feb 14, 2018
04cc52e
Issue #2011 - remove unused tmpl
zoepage Feb 14, 2018
b2bcb28
Issue #2011 - fix code styling
zoepage Feb 14, 2018
b5ffdd2
Issue #2011 - fix tabs
zoepage Feb 14, 2018
d4291be
Issue #2012 - fix z-index + type of search button
zoepage Feb 14, 2018
e1a6167
Issue #1933 - fix positioning issue of chevron
zoepage Feb 14, 2018
8e57631
Issue #1933 - move team section to contribute
zoepage Feb 14, 2018
d1e94bb
Issue #1933 - fix markup for templates
zoepage Feb 15, 2018
38c30eb
Issue #1933 - add footer sub nav
zoepage Feb 15, 2018
cd230e7
Issue #2109. Make it possible to pass in functionalSuites via args.
miketaylr Feb 16, 2018
45c3643
Issue #2109. Fix history navigation tests.
miketaylr Feb 16, 2018
d36bc56
Issue #2109. Remove spurious 0 in img src attribute.
miketaylr Feb 16, 2018
af282b0
Issue #2113. Fixes issues auth tests.
miketaylr Feb 16, 2018
0725fbf
Issue #2108. Update selectors for some comments auth tests.
miketaylr Feb 16, 2018
bcbb39d
Issue #2098n - fixed position of search-bar on small screen
magsout Feb 16, 2018
cc89bef
Issue #2069 - added cursor point on pagination
magsout Feb 16, 2018
2f0b1b4
Issue #2071 - fixes position of label-icon
magsout Feb 16, 2018
63a17b1
Issue #2092. Prevent forms default action when adding a comment.
miketaylr Feb 16, 2018
60106cd
issue #2079 - fixed position of dropdown
magsout Feb 16, 2018
d1bed1e
Issue #2090 - added sticky position to the right side menu on issue
magsout Feb 16, 2018
0803210
Issue #2116. Fix milestones auth tests.
miketaylr Feb 16, 2018
e5add90
Fixes #2117. Fix milestones auth tests.
miketaylr Feb 16, 2018
1dd28f1
fixes #2122. fix search-non-auth test
magsout Feb 16, 2018
7cfc9b6
Issue #2124. Fix user activity non-auth tests.
miketaylr Feb 17, 2018
e91d032
Issue #2112. Fix issue-list-non-auth tests.
miketaylr Feb 17, 2018
41288d6
Issue #2123. Fix user activity auth tests.
miketaylr Feb 17, 2018
a2cb68c
Issue #2111. Fix index non auth tests.
miketaylr Feb 17, 2018
e34694b
Issue #2121. Fix search auth tests.
miketaylr Feb 17, 2018
d09bbca
Issue #2121. Fix issues non auth tests.
miketaylr Feb 17, 2018
b185036
Issue #2115. Fix labels auth tests.
miketaylr Feb 17, 2018
99d0ef1
Issue #2118. Fix new issue tests.
miketaylr Feb 17, 2018
b441244
Issue #2103 - added padding left red asterisk
magsout Feb 18, 2018
30752e5
Issue #2120. Fix reporting non auth tests.
miketaylr Feb 18, 2018
7925d56
Issue #2107. Remove contributors-non-auth.js.
miketaylr Feb 18, 2018
2e13e41
Issue #2147 - fixes overflowting of long URLs
zoepage Feb 20, 2018
3e2211e
Issue #2153 - fixes url of labels for search filtering
zoepage Feb 20, 2018
d4a32ac
Issue #2075 - added checkmarks for url + desc
zoepage Feb 20, 2018
ea7fb7f
Issue #2098 - added top position for search-bar
magsout Feb 20, 2018
6e66a93
Issue #2163 - fixed position of dropdon on small screen
magsout Feb 20, 2018
05c3bfe
Issue #2110. Move postMessage string into a reusable constant.
miketaylr Feb 20, 2018
b212195
Fix: Issue with 404 falling out of grid
mpaarating Feb 21, 2018
6c088e1
Modify: The svg for the hero animation
Feb 22, 2018
b2bb3ec
Issue #2061 - Change titles to match svg element
Feb 22, 2018
a0e05d5
Issue #2110. Fix selectors.
miketaylr Feb 20, 2018
edbcadf
Issue #2110. Make linter happy.
miketaylr Feb 20, 2018
e3c529e
Issue #2110. Prevent svg children of buttons from stealing clicks.
miketaylr Feb 21, 2018
c593047
Issue #2110. Get a bunch of tests to pass on Travis.
miketaylr Feb 21, 2018
ddf16df
Issues #2075 - fixes validation checkmarks
zoepage Feb 26, 2018
dcc0697
Issue #2193. Define external intern config object.
miketaylr Feb 27, 2018
52afe46
Issue #2193. Use yargs to gather commandline args.
miketaylr Feb 27, 2018
451fc6b
Issue #2193. Add support for --grep=string w/ intern
miketaylr Feb 27, 2018
b16de25
Issue #2193. Update docs around running tests.
miketaylr Feb 27, 2018
e961aa1
Issue #2193. Document how to use --grep with intern tests.
miketaylr Feb 27, 2018
88f37b2
Issue #2193. Update how we invoke tests in Travis.
miketaylr Feb 27, 2018
bc6e396
Issue #2074 - fix jumping error message
zoepage Feb 28, 2018
b05a66d
Issue #2101 - add margin to group form-elements
zoepage Feb 28, 2018
ce95914
Issue #2101 - add open sans to input fields
zoepage Feb 28, 2018
3c7f778
Fixes #2171 - add test for 404 label search (#2191)
zoepage Mar 5, 2018
4411b0f
Issue #2195. Change font-src policy to include all of https://fonts.g…
miketaylr Mar 6, 2018
fd69d45
Issue #2210. Add contact page edits.
miketaylr Mar 7, 2018
e95409c
Issue #2212. Add privacy content edits.
miketaylr Mar 7, 2018
29fcf57
Fixes Issue #1924 make animation of bug in hero section run just once
deeptibaghel Mar 7, 2018
54cce22
Issue #2208. Add edits to about page.
miketaylr Mar 7, 2018
ae53453
Fixes Issue #1924 - make animations of bug ..further refinements
deeptibaghel Mar 8, 2018
18c1edb
fixes #2094
Mar 12, 2018
5fead8a
Fixes #2070. Changed wompats link from about to contributors
Mar 12, 2018
96ae9ee
Issue #2090 - make the label box container sticky & the inner scrolla…
magsout Mar 13, 2018
fa31890
Fixes #2081. Introduced flexbox styles for report buttons.
Mar 13, 2018
5fa11ab
Issue #2081. Changes according to review.
Mar 13, 2018
3ca3c52
Fixes #2218 Long size text overlap the check-marks
deeptibaghel Mar 13, 2018
4a12c68
Issue #2224 #2164 - fixes nav jumps
zoepage Mar 14, 2018
5d95cba
Issue #2224 - shorten text
zoepage Mar 14, 2018
7f99dcc
Issue #2224 - unify text
zoepage Mar 14, 2018
e192c54
Fixes #2205. Refined margin and padding definitions for body and hero
Mar 14, 2018
c276275
Fixes #2205. Let hero expand to edges in mobile & tablet viewports
Mar 14, 2018
56a7014
Fixes #2205. Introduced new css variables for grid edges
Mar 14, 2018
5f47a28
Issue #2090 - fixes position of Label Editor
magsout Mar 14, 2018
2f70dbf
Issue #2076 - fixed position of button of label editor
magsout Mar 14, 2018
37343b5
Applied change requests from review.
Mar 14, 2018
e0ccdd0
Issue #2234 - empty search returns undefined
zoepage Mar 14, 2018
21d2428
Issue #2134 - fixes fade in load page
magsout Mar 15, 2018
1c45815
Issues #2088 - Add tiles section to index
zoepage Mar 15, 2018
11a81cf
Fixes #2146. Minor refactoring for grid classes.
Mar 15, 2018
3d85d07
Further adjustments.
Mar 15, 2018
ac9d201
Fixes #2166. Set min-height on text-field
Mar 15, 2018
bcdf103
Fixes #2169. Stricter positioning rules for dropdown.
Mar 15, 2018
8699034
Issue #2083 - add slack to site
zoepage Mar 15, 2018
0b6afc0
Issue #2076 - fixed position of button of label editor on small screen
magsout Mar 15, 2018
7df2e38
Issue #2090 - removed not useful MQ
magsout Mar 15, 2018
b76e78a
Issue #2230 - Modify npm scripts to be uniform
mpaarating Mar 16, 2018
93e0d3b
Removed top and bottom padding on new issue comment field.
Mar 16, 2018
ec2a337
Corrected grid definitions in combination with sub-navigation on cont…
Mar 16, 2018
a0eb78a
Fixes #2245. Avoid inline styles set with JS.
Mar 16, 2018
5c563fb
Fixes #2247. Corrected grid-nested.
Mar 16, 2018
1a1401c
Fixes #2248. Remove CSS nav-link class on Login link.
Mar 16, 2018
e3f2128
Issue #2152. Delete unused class.
miketaylr Mar 16, 2018
d8ad502
Issue #2152. Add a --color-first-constrast variable.
miketaylr Mar 16, 2018
db550b8
Issue #2152. Use notification-information for flashes by default.
miketaylr Mar 16, 2018
2382a36
grid-nested now grows to full width.
Mar 16, 2018
3422820
Issue #2152. Tweak line-height for notifications.
miketaylr Mar 16, 2018
f1c06c8
Fix nested grid in issue details.
Mar 16, 2018
a0060f6
Finetuned issue detail view.
Mar 18, 2018
5b5889e
Correct width sizing of issue comments
Mar 19, 2018
ddbdbfb
Issue #1847 - add loader for upload
zoepage Mar 19, 2018
8b796df
Scale images in comments correctly to prevent scrollbars
Mar 19, 2018
db35344
Issue #2244 - fixed position of label box on small screen
magsout Mar 16, 2018
e4f6d5d
Issue #2151. Add button-secondary style to anon button.
miketaylr Mar 19, 2018
71ace10
Fixes #2258. Use antialiasing for fonts in Chrome.
Mar 19, 2018
51bd012
Fixes #2260 - Corrected cssmin grunt config
Mar 20, 2018
fdb8857
Fixes #2255 - Use xlink:href attribute for SVG references
Mar 20, 2018
65d92d5
Fixes #2087 - Show and hide navbar in dependency of scrolling
Mar 20, 2018
7142785
Fixes #2255 - Fix SVG references in JST templates
Mar 20, 2018
d2bd708
Changes from review
Mar 20, 2018
2462f30
Fixes #2165 - Activate HTML form validation for comment section
Mar 20, 2018
4a4b1d2
Fixes #2234 - Adjust regex for search param. Prevent empty topbar sea…
Mar 20, 2018
f5b47d8
Revert changes on the search form on issues page. Add required attrib…
Mar 20, 2018
20a5d80
Issue #1847 - fix lint issues
zoepage Mar 20, 2018
3be034e
Issue #1847 - remove hide class
zoepage Mar 20, 2018
203e13a
Issue #2262. Fix some milestone template copypasta.
miketaylr Mar 20, 2018
b731c8d
Issue #2262. label reRender should get remoteName, not color.
miketaylr Mar 20, 2018
f69a754
Issue #2262. Remove notion of milestones having a color.
miketaylr Mar 20, 2018
a575a25
Issue #2262. Remove leftover boilerplate.
miketaylr Mar 21, 2018
b1e473e
Removed required field on issue list search field
Mar 21, 2018
d0fd366
Issue #2155 - add thanks.jst msg
zoepage Mar 21, 2018
18ccec6
Fixes #2277 - Add missing border colors for status labels
Mar 21, 2018
1444ced
Issue #1847 - add loader to form on submit
zoepage Mar 21, 2018
9274198
Issue #1933 - Added copy fixes to index
zoepage Mar 21, 2018
f646593
Issue #1933 - Added copy fixes to contact
zoepage Mar 21, 2018
60afb69
Issue #1933 - Added copy fixes to privacy
zoepage Mar 21, 2018
981624d
Issue #1933 - Added copy fixes to contributors/report-bug
zoepage Mar 21, 2018
1b0db85
Issue #1933 - Added copy fixes to contributors/reproduce-bug
zoepage Mar 21, 2018
75aafb0
Issue #1933 - Added copy fixes to contributors/diagnose-bug
zoepage Mar 21, 2018
2531072
Issue #1933 - switch absolute links to relative links
zoepage Mar 21, 2018
a984e8d
Issue #1933 - Added copy fixes to contributors/site-outreach
zoepage Mar 21, 2018
767bfd6
Issue #1933 - add target blank to all external links
zoepage Mar 21, 2018
d2d4c5f
Issue #1933 - fix copy for contributors/site-outreach
zoepage Mar 21, 2018
078cd4b
Issue #1933 - add copy fixes to contributors/build-tools
zoepage Mar 21, 2018
14b4cb0
Issue #1933 - add copy fixes to contributors/organize-webcompat-events
zoepage Mar 21, 2018
e7a5439
Corrected colors for status labels
Mar 22, 2018
54d2353
Fixes #2128 - Harmonize sizes of new comment and upload area
Mar 22, 2018
a8a3ccc
Expand submit button
Mar 22, 2018
f0df6a0
Fixes #2274 - Automatic scrolling of label box when editing
Mar 22, 2018
20765a6
Fixes #2269 – Smoothen navbar transition
Mar 22, 2018
ae47e57
Fixes #2281 - Allow upload info box to expand
Mar 23, 2018
d07e1bb
No issue. Fix new (post-rebase) test failures on refactor branch.
miketaylr Mar 23, 2018
2fcb369
Fix two typos
zoepage Mar 22, 2018
facee47
Issue #2216 - update screenshots
zoepage Mar 22, 2018
9d3212a
Issue #2216 - update screenshots
zoepage Mar 22, 2018
99e2867
Issue #2216 - Include screenshots as images. Still needs style tweaks.
Mar 23, 2018
e436494
Issue #1847 - add error handeling + stop animation
zoepage Mar 23, 2018
0e353e7
Fixes #2085. Fix remaining review typos.
miketaylr Mar 23, 2018
a912c71
Issue #2085. Fix (unrelated) style lint error.
miketaylr Mar 23, 2018
6ace3b5
Issue #2296 - send patch for lost commits
zoepage Mar 27, 2018
2589a4e
Merge pull request #2297 from webcompat/merge-fix-patch
Mar 27, 2018
78be887
Fixes #2299 - Add grid-row for correct spacing to hero-tile
Mar 28, 2018
fa9211f
Fixes #2301 - Upload input size equals hoverable area
Mar 28, 2018
74dfe77
Fixes #2299 - Move left grid margin on issue-description to padding
Mar 28, 2018
989ae57
Fixes #2301 - Remove upload is clickable on full area
Mar 28, 2018
e5014de
Issue #2306 - add purifyCSS
zoepage Mar 28, 2018
c44c550
Issue #2306 - remove unused files
zoepage Mar 28, 2018
fe7aa74
Issue #2310 - remove XML declaration
zoepage Mar 28, 2018
13f849e
Issue #2312 - remove href from button
zoepage Mar 28, 2018
3eb4d79
Fixes #2258 - Remove blurring transform translateX in navigation bar
Mar 28, 2018
a26349e
Issues #2308 - fix aspect ratio in comment img
zoepage Mar 28, 2018
6173eb9
Merge pull request #2315 from webcompat/issues/2258-1
zoepage Mar 28, 2018
3e312e1
Merge pull request #2305 from webcompat/issues/2301
zoepage Mar 28, 2018
c886088
Merge pull request #2304 from webcompat/issues/2299
zoepage Mar 28, 2018
08e0644
Merge pull request #2316 from webcompat/issues/2308
zoepage Mar 28, 2018
67941bb
Issue #2317 - remove gray border of sub-nav
zoepage Mar 28, 2018
a7dbbdd
Issue #2319 - remove unused css class in js
zoepage Mar 28, 2018
d500d34
Issue #2322 - change fix to lint:fix
zoepage Mar 28, 2018
43d1e29
Issue #2324 - add js class to separate css and js functionality
zoepage Mar 28, 2018
f3f571f
Issue #2204 - add license info of new icon set
zoepage Mar 28, 2018
41f9e5f
Issue #2216 - add screenshots
zoepage Mar 28, 2018
527d039
Merge pull request #2311 from webcompat/issues/2310
Mar 28, 2018
71be5d4
Merge pull request #2313 from webcompat/issues/2312
Mar 28, 2018
b70083e
Merge pull request #2318 from webcompat/issues/2317
Mar 28, 2018
aecafd2
Merge pull request #2321 from webcompat/issues/2319
Mar 28, 2018
101e20c
Merge pull request #2325 from webcompat/issues/2324
Mar 28, 2018
80aeee5
Merge pull request #2327 from webcompat/issues/2204
Mar 28, 2018
a93fec0
Merge pull request #2328 from webcompat/issues/2216-2
Mar 28, 2018
e5a0a45
Issue #2322 - update docs
zoepage Mar 28, 2018
1f5652e
Merge pull request #2323 from webcompat/issues/2322
Mar 28, 2018
07b0f3a
Merge pull request #2309 from webcompat/issues/2306
Mar 28, 2018
f80bec5
Issue #2329 - remove inline style
zoepage Mar 28, 2018
6a66f4e
Merge pull request #2333 from webcompat/issues/2329
Mar 28, 2018
3b9f637
Issue #2334. Ensure that we consider browser-sent images as valid.
miketaylr Mar 28, 2018
2711abe
Merge pull request #2335 from webcompat/issues/2334/1
zoepage Mar 28, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ uploads/
.vscode/
config/secrets.py
package-lock.json
tmp/

# The data folder contains information that shouldn't live in version control.
data/*
Expand All @@ -26,8 +27,7 @@ webcompat/static/js/issue-list.js
webcompat/static/js/user-activity.js
webcompat/static/js/templates.js
webcompat/**/*.min.js
webcompat/**/*.min.css
webcompat/**/*.dev.css
webcompat/**/**/*.min.css

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.


#selenium server
*.jar
Expand Down
9 changes: 4 additions & 5 deletions .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"color-hex-length": "short",
"color-named": "never",
"selector-no-qualifying-type": [ true, {"ignore": "attribute"} ],
"selector-no-id": true,
"selector-no-attribute": true,
"selector-max-id": 1,
"selector-max-attribute": 1,
"selector-combinator-space-after": "always",
"selector-attribute-quotes": "always",
"selector-attribute-operator-space-before": "always",
Expand All @@ -23,7 +23,6 @@
"value-no-vendor-prefix": true,
"number-leading-zero": "never",
"function-url-quotes": "always",
"function-url-data-uris": "never",
"font-weight-notation": "numeric",
"font-family-name-quotes": "always-where-recommended",
"comment-whitespace-inside": "always",
Expand All @@ -42,8 +41,8 @@
"selector-pseudo-element-colon-notation": "double",
"selector-pseudo-class-parentheses-space-inside": "never",
"selector-no-vendor-prefix": true,
"selector-no-universal": true,
"selector-no-type": true,
"selector-max-universal": 1,
"selector-max-type": 1,
"media-feature-range-operator-space-before": "always",
"media-feature-range-operator-space-after": "always",
"media-feature-parentheses-space-inside": "never",
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ before_script:
# now run the tests!
script:
- nosetests
- node ./tests/functional/_intern.js reporters="runner"
- npm run test:js -- --reporters="runner"
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ module.exports = function(grunt) {
"concat",
"uglify",
"postcss",
"cssmin"
"cssmin",
"purifycss"
]);

// Task used before doing a deploy (same as default, but does image optimization)
Expand Down
18 changes: 1 addition & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,4 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.

### Icons

All icons are public domain or licensed from The Noun Project.

[Lightbulb icon](http://thenounproject.com/term/light-bulb/5370/) designed by Jean-Philippe Cabaroc. (Licensed)

[Bee icon](http://thenounproject.com/term/bee/26569/) designed by Peter Silk. (Licensed)

[Arrow icon](http://thenounproject.com/term/arrow/5438/) designed by Jamison Wieser. (Licensed)

[Form icon](http://thenounproject.com/term/list/14362/) designed by banoshi. (Licensed)

[Diagnose bugs icon](https://thenounproject.com/rockicon/collection/office-line/?i=450639) designed by Rockicon (Licensed)

[Reach out to sites icon](https://thenounproject.com/term/heart-care/518087/) designed by ProSymbols. (Licensed)

[Lightswitch](http://thenounproject.com/term/light-switch/2235/) designed by Jeremy Lloyd. (Public domain)

[Contribute icon](https://thenounproject.com/search/?q=group&i=876004) designed by Tjaša Kimovec. (Licensed)
All icons are from the [Feather icon set](https://github.com/feathericons/feather#feather) and published under the [MIT License](https://github.com/feathericons/feather/blob/master/LICENSE).
4 changes: 2 additions & 2 deletions config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ def convert_milestones(milestones_content):
Category = namedtuple('Category', ['name', 'dataAttribute', 'label'])
CATEGORIES = []
cat_labels = [('needstriage', 'needstriage', 'Needs Triage'),
('needsDiagnosis', 'needsdiagnosis', 'Needs Diagnosis'),
('needsContact', 'needscontact', 'Needs Contact'),
('needsdiagnosis', 'needsdiagnosis', 'Needs Diagnosis'),
('needscontact', 'needscontact', 'Needs Contact'),
('ready', 'contactready', 'Ready for Outreach'),
('sitewait', 'sitewait', 'Site Contacted'),
('close', 'closed', 'Closed')]
Expand Down
24 changes: 12 additions & 12 deletions config/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@
# BUG STATUS
# The id will be initialized when the app is started.
STATUSES = {
u'needstriage': {'id': 0, 'order': 1, 'state': 'open', 'color': '#ff9900'},
u'needsdiagnosis': {'id': 0, 'order': 2, 'state': 'open', 'color': '#ff8364'},
u'needscontact': {'id': 0, 'order': 3, 'state': 'open', 'color': '#e11d21'},
u'contactready': {'id': 0, 'order': 4, 'state': 'open', 'color': '#a1ebbf'},
u'sitewait': {'id': 0, 'order': 5, 'state': 'open', 'color': '#006b75'},
u'duplicate': {'id': 0, 'order': 1, 'state': 'closed', 'color': '#cccccc'},
u'fixed': {'id': 0, 'order': 2, 'state': 'closed', 'color': '#009800'},
u'incomplete': {'id': 0, 'order': 3, 'state': 'closed', 'color': '#d93f0b'},
u'invalid': {'id': 0, 'order': 4, 'state': 'closed', 'color': '#e6e6e6'},
u'non-compat': {'id': 0, 'order': 5, 'state': 'closed', 'color': '#b60205'},
u'wontfix': {'id': 0, 'order': 6, 'state': 'closed', 'color': '#000000'},
u'worksforme': {'id': 0, 'order': 7, 'state': 'closed', 'color': '#d4c5f9'}
u'needstriage': {'id': 0, 'order': 1, 'state': 'open'},
u'needsdiagnosis': {'id': 0, 'order': 2, 'state': 'open'},
u'needscontact': {'id': 0, 'order': 3, 'state': 'open'},
u'contactready': {'id': 0, 'order': 4, 'state': 'open'},
u'sitewait': {'id': 0, 'order': 5, 'state': 'open'},
u'duplicate': {'id': 0, 'order': 1, 'state': 'closed'},
u'fixed': {'id': 0, 'order': 2, 'state': 'closed'},
u'incomplete': {'id': 0, 'order': 3, 'state': 'closed'},
u'invalid': {'id': 0, 'order': 4, 'state': 'closed'},
u'non-compat': {'id': 0, 'order': 5, 'state': 'closed'},
u'wontfix': {'id': 0, 'order': 6, 'state': 'closed'},
u'worksforme': {'id': 0, 'order': 7, 'state': 'closed'}
}

# We don't need to compute for every requests.
Expand Down
2 changes: 1 addition & 1 deletion docs/pr-coding-guidelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ In order to avoid errors during a Pull Request, `npm run lint` will be executed
`npm run lint` checks all relevant JavaScript and CSS files and displays, if something needs to be fixed.

If you get an error displayed, there are two ways to fix it.
1. You can run `npm run fix` automatically (only for JavaScript), which is great for small issues like missing spaces or lines in various files.
1. You can run `npm run lint:fix` automatically, which is great for small issues like missing spaces or lines in various files.
2. You can correct it manually as every error message includes the file and line of the error as well as the rule which was violated will be displayed..

Hopefully this will help you clear up a few struggles.
20 changes: 11 additions & 9 deletions docs/tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ npm run start:test
In a separate terminal window or tab, run the tests:

```bash
node_modules/.bin/intern-runner config=tests/intern

or

npm run test:js
```

Expand All @@ -97,18 +93,24 @@ Shortly after running this command, you should see the browser open and various

To run a single test suite, where foo.js is the file found in the `tests/functional` directory:

Note: the extra `--` is how you pass arguments to the npm script. Don't forget it!

```bash
node_modules/.bin/intern-runner config=tests/intern functionalSuites=tests/functional/foo.js
npm run test:js -- --functionalSuites=tests/functional/foo.js
```

Right now the tests are running in Firefox as a default. You can specify which browsers you want to test with using the `browsers` argument. Like this:
To filter which tests *within* a single test suite you run, you can use the `--grep` argument:

```bash
npm run test:js browsers=chrome,firefox
npm run test:js -- --functionalSuites=tests/functional/foo.js --grep=tacos
```

This will run any test within the foo.js suite that has "tacos" in its name.

or
Right now the tests are running in Firefox as a default. You can specify which browsers you want to test with using the `browsers` argument. Like this:

node_modules/.bin/intern-runner config=tests/intern browsers=safari,firefox
```bash
npm run test:js -- --browsers=chrome,firefox
```

For a list of the recognized browser names, just refer to [Browser enum](http://seleniumhq.github.io/selenium/docs/api/javascript/module/selenium-webdriver/index_exports_Browser.html)
Expand Down
2 changes: 1 addition & 1 deletion grunt-tasks/cssmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = function(grunt) {
combine: {
files: {
// output
"<%= cssPath %>/webcompat.min.css": [
"<%= cssPath %>/dist/webcompat.min.css": [
// input
"<%= cssPath %>/webcompat.dev.css"
]
Expand Down
2 changes: 1 addition & 1 deletion grunt-tasks/cssnext.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = function(grunt) {
},
dist: {
files: {
"<%= cssPath %>/webcompat.dev.css": "<%= cssPath %>/development/main.css"
"<%= cssPath %>/dist/webcompat.min.css": "<%= cssPath %>/webcompat.dev.css"
}
}
});
Expand Down
22 changes: 22 additions & 0 deletions grunt-tasks/purifycss.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

module.exports = function(grunt) {
grunt.config("purifycss", {
options: {
rejected: true,
info: true
},
target: {
src: [
"webcompat/templates/*.html",
"webcompat/templates/**/*.html",
"webcompat/templates/**/*.jst",
"webcompat/static/js/*.js"
],
css: ["webcompat/static/css/*.css", "webcompat/static/css/src/*.css"],
dest: "tmp/purestyles.css"
}
});
};
2 changes: 1 addition & 1 deletion grunt-tasks/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
module.exports = function(grunt) {
grunt.config("watch", {
css: {
files: "<%= cssPath %>/development/**/*.css",
files: "<%= cssPath %>/**/*.css",
tasks: ["postcss"]
},
templates: {
Expand Down
29 changes: 19 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"cssrecipes-reset": "^0.5.0",
"cssrecipes-utils": "^0.6.2",
"suitcss-utils-align": "^1.0.0",
"suitcss-utils-display": "^1.0.2"
"suitcss-utils-display": "^1.0.2",
"yargs": "^11.0.0"
},
"devDependencies": {
"eslint": "~3.19.0",
Expand All @@ -37,6 +38,7 @@
"grunt-contrib-uglify": "^2.3.0",
"grunt-contrib-watch": "^1.0.0",
"grunt-postcss": "^0.8.0",
"grunt-purifycss": "^0.1.2",
"husky": "^0.13.4",
"intern": "^4.1.4",
"lint-staged": "^3.6.1",
Expand All @@ -48,19 +50,26 @@
"postcss-reporter": "^3.0.0",
"postcss-url": "^5.1.2",
"prettier": "1.1.0",
"stylelint": "^7.13.0",
"stylelint-config-standard": "^16.0.0"
"stylelint": "^8.4.0",
"stylelint-config-standard": "^18.0.0",
"svg-sprite-generator": "0.0.7",
"svgo": "^0.7.2"
},
"scripts": {
"setup": "npm run virtualenv && npm install && npm run config",
"clean:css": "grunt purifycss --min",
"watch": "grunt watch",
"build": "grunt",
"build:svg": "npm run build:svg:clean-svg && npm run build:svg:svg-sprite && rm -rf ./webcompat/static/img/svg/tmp",
"build:svg:clean-svg": "svgo -f ./webcompat/static/img/svg/icons -o ./webcompat/static/img/svg/tmp",
"build:svg:svg-sprite": "svg-sprite-generate -d ./webcompat/static/img/svg/tmp -o ./webcompat/static/img/svg/sprite.svg",
"jst": "grunt jst",
"lint": "npm run lint:JS && npm run lint:CSS",
"lint:JS": "eslint ./Gruntfile.js ./tests ./grunt-tasks ./webcompat/static/js/lib",
"lint:CSS": "stylelint './webcompat/static/css/development/**/*.css'",
"fix": "npm run lint:fix:JS",
"lint:fix:JS": "eslint --fix ./Gruntfile.js ./tests ./grunt-tasks ./webcompat/static/js/lib",
"lint": "npm run lint:js && npm run lint:css",
"lint:js": "eslint ./Gruntfile.js ./tests ./grunt-tasks ./webcompat/static/js/lib",
"lint:css": "stylelint './webcompat/static/css/src/**/*.css' './webcompat/static/css/webcompat.dev.css'",
"lint:fix": "npm run lint:fix:js && npm run lint:fix:css",
"lint:fix:js": "eslint --fix ./Gruntfile.js ./tests ./grunt-tasks ./webcompat/static/js/lib",
"lint:fix:css": "stylelint './webcompat/static/css/src/**/*.css' './webcompat/static/css/webcompat.dev.css' --fix",
"imagemin": "grunt imagemin",
"prestart": "npm run build",
"start": "source env/bin/activate || . env/bin/activate && python run.py",
Expand All @@ -75,8 +84,8 @@
"test:python": "nosetests"
},
"lint-staged": {
"*.js": "lint:JS",
"*.css": "lint:CSS"
"*.js": "lint:js",
"*.css": "lint:css"
},
"license": "MPL-2.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"_fixture": true,
"total_count": 0,
"incomplete_results": false,
"items": []
}
Loading