Commit graph

1275 commits

Author SHA1 Message Date
Ben Halpern
7333aa5436
Fix comment creation (#1495) 2019-01-08 14:29:49 -05:00
dependabot[bot]
029a3a2fd3 Bump carrierwave from 1.2.2 to 1.3.1 (#1475)
Bumps [carrierwave](https://github.com/carrierwaveuploader/carrierwave) from 1.2.2 to 1.3.1.
- [Release notes](https://github.com/carrierwaveuploader/carrierwave/releases)
- [Changelog](https://github.com/carrierwaveuploader/carrierwave/blob/master/CHANGELOG.md)
- [Commits](https://github.com/carrierwaveuploader/carrierwave/compare/v1.2.2...v1.3.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-08 13:31:04 -05:00
Andy Zhao
a612730b6b Remove extraneous slash for path (#1489) 2019-01-08 13:25:08 -05:00
Ben Halpern
7c8f71251d
Add details to toggles and modify some styling (#1484)
* Add details to toggles and modify some styling

* Add details to child comments

* Finalize comment collapse in nested comments

* Modify styling on comment <details>
2019-01-08 12:53:48 -05:00
Timothy Ng
84bd3a69d7 ApiSecret model for Developer API (#1369)
* Add ApiSecret model scaffold

* Add relationships between ApiSecret, User, Organization

* Add placeholder template to account tab

* Add description column to ApiSecrets

* Add very basic access token generation

* Add basic access token deletion

* Show access token on success flash

* Add placeholder message when user has no secrets

* Use cta style on token generation button

* Add presence validation for ApiSecret description

* Add ApiSecrets factory

* Add pundit policy for ApiSecret

* Nest form field within api_secret hash to allow rails strong params

* Use pundit to authorize ApiSecretController actions

* Add error message flash for ApiSecretsController actions

* Add specs for ApiSecretsController

* Add length validation to api secret description

* Flash model error instead of generic message on save failure

* Truncate ApiSecret factory objects descriptions to prevent validation error

* Remove length restriction on ApiSecret.description

* Use darker font color for token creation date

* Consolidate ApiSecret migrations
2019-01-08 12:30:54 -05:00
Andrew Bone
9ea53d5669 Add --theme-container-color (#1479)
* Add --theme-container-color

Add --theme-container-color for theming all containing elements

* Add --theme-container-color

Add --theme-container-color for theming all containing elements

* Add --theme-container-color

Add --theme-container-color for theming all containing elements

* Add --theme-container-color

Add --theme-container-color for theming all containing elements

* Add --theme-container-color

Add --theme-container-color for theming all containing elements

* Add --theme-container-color

Add --theme-container-color for theming all containing elements

* Add --theme-container-color

Add --theme-container-color for theming all containing elements
2019-01-07 15:56:01 -05:00
Mac Siri
f4ca4a15e5 Fix liquid tag parsing error (#1481)
* Fix liquid tag parsing error

* Update spec
2019-01-07 15:54:57 -05:00
dependabot[bot]
32defff391 Bump marked from 0.5.2 to 0.6.0 (#1477)
Bumps [marked](https://github.com/markedjs/marked) from 0.5.2 to 0.6.0.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Commits](https://github.com/markedjs/marked/compare/v0.5.2...v0.6.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-07 11:32:20 -05:00
Andrew Bone
abc8aaf793 Missed --theme-container-border (#1480)
* Missed --theme-container-border

Adding --theme-container-border for missed elements

* Missed --theme-container-border

Adding --theme-container-border for missed elements

* Missed --theme-container-border

Adding --theme-container-border for missed elements
2019-01-07 11:27:02 -05:00
dependabot[bot]
1c6ee19aa2 Bump eslint-plugin-react from 7.12.2 to 7.12.3 (#1478) [ci skip]
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.12.2 to 7.12.3.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.12.2...v7.12.3)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-07 10:38:59 -05:00
dependabot[bot]
6750b58ebc Bump eslint from 5.11.1 to 5.12.0 (#1476) [ci skip]
Bumps [eslint](https://github.com/eslint/eslint) from 5.11.1 to 5.12.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v5.11.1...v5.12.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-07 10:37:55 -05:00
Andrew Bone
8cccc03b9a Add --theme-container-box-shadow places missed (#1420)
* Add --theme-container-box-shadow to footer

Add the --theme-container-box-shadow variable to the footer box shadow

* Add --theme-container-box-shadow to dashboard-analytics-header-wrapper

Add the --theme-container-box-shadow variable to the dashboard-analytics-header-wrapper

* Add --theme-container-box-shadow to query

Add the --theme-container-box-shadow variables to the no results query page

* Add --theme-container-box-shadow to widgets

Add the --theme-container-box-shadow variables to widgets
2019-01-06 15:15:38 -05:00
Ben Halpern
9af401ad09
Remove user signed in difference in article show comment form (#1468) 2019-01-05 22:27:34 -05:00
Ben Halpern
69b90272a9
Improve caching on article show view (#1467) 2019-01-05 21:42:10 -05:00
Vinicius Brasil
583160532c Improve User profile form labels capitalization (#1464) 2019-01-05 21:40:57 -05:00
Ben Halpern
a0e4f01020
Finalize generated sitemap (#1466)
* Add sitemap generation

* Modify sitemap details
2019-01-05 20:40:19 -05:00
Ben Halpern
98b68fa15c
Add sitemap generation (#1465) 2019-01-05 19:43:24 -05:00
Ben Halpern
e79f3bfbc1
Fix linting (#1463) 2019-01-04 21:13:12 -05:00
Andrew Bone
6b4b8b9c6a Add --theme-container-border (#1421)
* Add --theme-container-border

Add the --theme-container-border variable for styling.

* Add --theme-container-border

Add the --theme-container-border variable for styling.

* Add --theme-container-border

Add the --theme-container-border variable for styling.

* Add --theme-container-border

Add the --theme-container-border variable for styling.
2019-01-04 20:37:53 -05:00
Mac Siri
8e50e58844 Add list-style to Widget (#1448)
* Add list

* Remove retry
2019-01-04 17:48:12 -05:00
rhymes
de5b889445 Fix Rubocop Style/MixinUsage and cleanup prefix_all_images (#1451)
* Use sanitizer to strip HTML tags

* Fix Style/MixinUsage

* Cleanup prefix_all_images

* Stay under 25 lines of code
2019-01-04 14:20:53 -05:00
Abraham Williams
67e9ba223d Remove debug line (#1462) [ci skip] 2019-01-04 13:10:09 -05:00
Mac Siri
23cdf4de95 Run yarn upgade
Also removed & re-added lint-staged
2019-01-04 11:42:33 -05:00
dependabot[bot]
939cf064cf Bump algoliasearch-rails from 1.20.4 to 1.20.6 (#1427)
Bumps [algoliasearch-rails](https://github.com/algolia/algoliasearch-rails) from 1.20.4 to 1.20.6.
- [Release notes](https://github.com/algolia/algoliasearch-rails/releases)
- [Changelog](https://github.com/algolia/algoliasearch-rails/blob/master/ChangeLog)
- [Commits](https://github.com/algolia/algoliasearch-rails/compare/1.20.4...1.20.6)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-04 11:09:41 -05:00
Arun Kumar
08c070b7e3 Fix block delimiters Rubocop offense (#1456) 2019-01-03 16:45:28 -05:00
Jess Lee
4214bcbbf6 Add user status to internal/users (#1444)
* wip

* add indiviual user partial

* remove unnecessary attributes

* wip

* add indiviual user partial

* remove unnecessary attributes

* remove mentorship matching from view

* fix linting

* add mentor matching method back and refine test

* remove duplicate mentee descriptions

* Update app/controllers/internal/users_controller.rb

Co-Authored-By: jessleenyc <jessleenyc@gmail.com>
2019-01-03 16:44:43 -05:00
Arun Kumar
80a23ba403 Fix rubocop offenses (#1452) 2019-01-03 09:23:38 -05:00
rhymes
dbf5fc63ad Fix Rubocop Security/Open (#1447)
* Re-run rubocop autogen config

* Fix Layout/* violations

* Fix Security/Open and use HEAD if GET is not needed
2019-01-02 16:35:19 -05:00
Nick Taylor
b48e573c31 Add build-storybook step to deployment. (#1412) [ci skip]
* Added step to deployment to build the static storybook site.

* Added step to deployment to build the static storybook site.

* using npm instead as yarn isn't installed at this point.

* reverted deployment to netlify.
2019-01-02 14:02:06 -05:00
Joe Winter
c47253f9d6 change the hard-coded current year to the current year (#1436) 2019-01-02 13:21:44 -05:00
dependabot[bot]
4f4325c926 Bump slack-notifier from 1.5.1 to 2.3.2 (#1425)
Bumps [slack-notifier](https://github.com/stevenosloan/slack-notifier) from 1.5.1 to 2.3.2.
- [Release notes](https://github.com/stevenosloan/slack-notifier/releases)
- [Changelog](https://github.com/stevenosloan/slack-notifier/blob/master/changelog.md)
- [Commits](https://github.com/stevenosloan/slack-notifier/compare/1.5.1...2.3.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-02 11:40:41 -05:00
rhymes
6553f08d94 Rubocop cleanups (#1415)
* Update rubocop-todo.yml with new violations

* Fix Layout/EmptyLine* rules

* Fix Layout/Indentation* rules

* Fix remaining Layout/* rules

* Fix Lint/DuplicateMethods by removing unused accessor

* Fix Lint/IneffectiveAccessModifier

* Fix Lint/MissingCopEnableDirective

* Re-run rubocop auto gen config

* Fix Layout/RescueEnsureAlignment

* Fix Naming/* rules

* Fix some RSpec/* rules

* Fix typos

* Fix RSpec/LetBeforeExamples

* Series should only be an attr_writer, not an attr_accessor

* Fix RSpec/InstanceVariable

* Fix RSpec/InstanceVariable

* Fix RSpec/RepeatedDescription and RSpec/RepeatedExample

* Fix Style/ClassAndModuleChildren

* Fix Style/ConditionalAssignment

* Fix some Style/* rules

* Trigger Travis CI build because failing tests are not failing locally

* Revert "Fix Style/ClassAndModuleChildren"

This reverts commit 1686801d8a1516ba1894f79e24401a20dea65f99.
2019-01-02 11:20:02 -05:00
Arun Kumar
cfcc204a20 Minor refactor (#1443)
* Rescue `ActiveRecord::RecordNotFound` exception instead of `StandardError`

* Replace `!blank?` call with `present?`
2019-01-02 10:42:42 -05:00
Arun Kumar
0f8c08629b Remove superfluous condition (#1441) 2019-01-01 17:05:18 -05:00
Arun Kumar
c859651081 Refactor !empty? calls with any? (#1442) 2019-01-01 17:04:52 -05:00
Ben Halpern
a4fccb2f5b
Swap Triplebyte with Twilio sponsors (#1440) 2019-01-01 17:04:22 -05:00
Sudarshan Parvatikar
51e3375f88 updated copyright year to 2019 (#1437) 2019-01-01 16:15:37 -05:00
dependabot[bot]
a5e872f91b Bump eslint-plugin-react from 7.11.1 to 7.12.0 (#1426) [skip ci]
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.11.1 to 7.12.0.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.11.1...v7.12.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-31 13:15:46 -05:00
dependabot[bot]
5c7434b1b0 Bump memory_profiler from 0.9.10 to 0.9.12 (#1422)
Bumps [memory_profiler](https://github.com/SamSaffron/memory_profiler) from 0.9.10 to 0.9.12.
- [Release notes](https://github.com/SamSaffron/memory_profiler/releases)
- [Changelog](https://github.com/SamSaffron/memory_profiler/blob/master/CHANGELOG.md)
- [Commits](https://github.com/SamSaffron/memory_profiler/compare/v0.9.10...v0.9.12)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-31 09:07:47 -05:00
dependabot[bot]
220b029825 Bump eslint from 5.11.0 to 5.11.1 (#1429)
Bumps [eslint](https://github.com/eslint/eslint) from 5.11.0 to 5.11.1.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v5.11.0...v5.11.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-31 09:06:59 -05:00
dependabot[bot]
ef55046b71 Bump husky from 1.2.1 to 1.3.1 (#1430)
Bumps [husky](https://github.com/typicode/husky) from 1.2.1 to 1.3.1.
- [Release notes](https://github.com/typicode/husky/releases)
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md)
- [Commits](https://github.com/typicode/husky/compare/v1.2.1...v1.3.1)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-31 09:06:25 -05:00
Abraham Williams
b30055ed12 Remove unnecessary variable assignment (#1414) 2018-12-29 13:18:27 -05:00
Ben Halpern
1de6f47ae5
Remove title from visibility on page (#1418) 2018-12-29 12:50:14 -05:00
Ben Halpern
c6644f9e97
Create tag liquid tag (#1417)
* Create tag liquid tag

* Add tag embed to editor guide
2018-12-29 12:12:18 -05:00
Arun Kumar
536e86a6ac Fix page titles (#1416) 2018-12-29 11:14:45 -05:00
Ben Halpern
fc0175b18d
Refactor articles api controller (#1409)
* Refactor articles api controller

* Modify authorization logic in api
2018-12-27 16:47:04 -05:00
Nick Taylor
b267967177 Revert to last known working version of Storybook (#1410) [ci skip] 2018-12-27 16:43:22 -05:00
Ben Halpern
e4c120db5d
Replace dev.to with APP_DOMAIN config in a few places (#1406)
* Replace dev.to with APP_DOMAIN config in a few places

* Modify some tests
2018-12-26 18:13:05 -05:00
Andy Zhao
0a8f9ca654 Fix URL Validations and Update Admin Dashboard (#1392)
* Validate for trailing slash instead of strict validation

* Remove unused sign_in_count field

* Add profile URLs to edit view

* Add profile URLs to admin controller params

* Add profile URLs to edit view

* Clean up index and search views for user

* Move around user fields to make more sense

* Display more informative label

* Remove name_of_user field in favor of new display label

* Fix typo

* Remove duplication for website, employer, and Mastodon URLs

* Add score to comment params

* Remove unused name_of_user field views

* Fix typo for medium url
2018-12-26 18:00:02 -05:00
Andrew Bone
9e18264f9f Add --theme-container-box-shadow (#1403)
* Add --theme-container-box-shadow

Box-shadow settings for articles and nav-elements

* Add --theme-container-box-shadow

Box-shadow settings for articles and nav-elements

* Add --theme-container-box-shadow

Box-shadow settings for articles and nav-elements

* Add --theme-container-box-shadow

Box-shadow settings for articles and nav-elements

* Add --theme-container-box-shadow

Box-shadow settings for articles and nav-elements

* Add --theme-container-box-shadow

Box-shadow settings for articles and nav-elements

* Add --theme-container-box-shadow

Box-shadow settings for articles and nav-elements

* Add --theme-container-box-shadow

Box-shadow settings for articles and nav-elements

* Add --theme-container-box-shadow

Box-shadow settings for articles and nav-elements
2018-12-26 16:54:15 -05:00