Commit graph

407 commits

Author SHA1 Message Date
jituraj98
e2edf960dc
[deploy] Connect: move settings to sidecar iframe, improve invitations and remove experimental features (#6903)
* Feature 🚀 : Ability to delete messages in chat channels

- Sending message ID to frontend
- Deleting Message
- Use pusher to delete message realtime

* Minor Bug 🐞: Show message action only for current user

- User can delete or edit their own messages

* Test cases added

* Bug 🐞: Update message id for receiver

Message id was not sent to receiver by pusher

* Refactoring🛠: Message controller refactoring

* Test Cases📝 : Specs for Delete message added

* Feature 🚀 : Ability to edit messages

* Test Cases📝 : Specs for Edit message added

* Move channel settings to sidecar

* added spec for chat_channels_memberships_controller.rb (#6539)

* added spec for chat_channels_memberships_controller.rb

* simplified record not found error for membership

* error message formatting updated

* added error key in flash message

Co-authored-by: jitendra <jitendrarajpurohit@skynox.tech>

* Refining "Move sidecar to iframe" branch (#6634)

* added spec for chat_channels_memberships_controller.rb

* simplified record not found error for membership

* error message formatting updated

* added error key in flash message

* 🐞 Bug Fix: Open sidecar of clicking @all

* 🐞 Bug Fix: adding space after selecting the username from suggestion box

* added remove channel member functionality for moderators

* 🔩 Small Tweaks: Hover issue fixed

* 🐞 Bug Fix: Remove sidecar toggle on @all tag (for now)

* updated manually constructed urls with rails path helpers

* mod users cannot remove members of other channel

Co-authored-by: jitendra <jitendrarajpurohit@skynox.tech>

* 🚀 Finalising the connect group/channel feature.  (#6829)

* added spec for chat_channels_memberships_controller.rb

* simplified record not found error for membership

* error message formatting updated

* added error key in flash message

* 🐞 Bug Fix: Open sidecar of clicking @all

* 🐞 Bug Fix: adding space after selecting the username from suggestion box

* added remove channel member functionality for moderators

* 🔩 Small Tweaks: Hover issue fixed

* 🐞 Bug Fix: Remove sidecar toggle on @all tag (for now)

* updated manually constructed urls with rails path helpers

* mod users cannot remove members of other channel

* mod members can now invite user who have left the channel

* 🐞 Bug Fix: Ability to open sidecar on mention all properly

* Eslint Changes

* send email notification on inviting user feature added

* 🛠  Email design enhancements for channel invitation

* send invitation to mod user added from internal

* 🛠  Gif changes for Mod

* spec fixed

* inviter name issue fixed

* 🚀 Open sidecar when automatically if you use link from email

Co-authored-by: jitendra <jitendrarajpurohit@skynox.tech>

* review changes

* added spec for channel_invite_email

* Bug🐞: Design problem with sidecar after merge

* Bug🐞: Design problem with invitation alert box

* replaced instance variables with local variable

* Bug🐞: Wrong css classes fixed

* Bug🐞: Edit option bug

* yarn.lock file updated

* code review changes

* updated manually constructed urls with rails path helpers in spec

* user name url issue fix in invite email

* user url corrected

Co-authored-by: Sarthak Sharma <7lovesharma7@gmail.com>
Co-authored-by: benhalpern <bendhalpern@gmail.com>
2020-04-01 12:13:26 -04:00
dependabot-preview[bot]
4c158271b3
Bump @babel/plugin-transform-react-jsx from 7.8.3 to 7.9.4 (#6872) 2020-03-27 15:51:49 -04:00
dependabot-preview[bot]
263baeb2f6
Bump @babel/core from 7.8.7 to 7.9.0 (#6878)
Bumps [@babel/core](https://github.com/babel/babel) from 7.8.7 to 7.9.0.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/compare/v7.8.7...v7.9.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-27 14:00:06 -04:00
dependabot-preview[bot]
f2696b6c80
Bump prettier from 1.19.1 to 2.0.2 (#6874)
Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.0.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/1.19.1...2.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-27 10:16:32 -04:00
dependabot-preview[bot]
a7ef1ecfeb
Bump babel-jest from 23.6.0 to 24.9.0 (#6877)
Bumps [babel-jest](https://github.com/facebook/jest/tree/HEAD/packages/babel-jest) from 23.6.0 to 24.9.0.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v24.9.0/packages/babel-jest)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-27 09:48:25 -04:00
dependabot-preview[bot]
b8c9e5f202
Bump babel-loader from 8.0.6 to 8.1.0 (#6873)
Bumps [babel-loader](https://github.com/babel/babel-loader) from 8.0.6 to 8.1.0.
- [Release notes](https://github.com/babel/babel-loader/releases)
- [Changelog](https://github.com/babel/babel-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/babel/babel-loader/compare/v8.0.6...v8.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-27 09:45:40 -04:00
dependabot-preview[bot]
542aa775dc
Bump eslint-config-prettier from 6.10.0 to 6.10.1 (#6870)
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.10.0 to 6.10.1.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.10.0...v6.10.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-27 09:45:26 -04:00
Nick Taylor
4698613dc4
Travis: display only error logs for Storybook preview build (#6900)
Silenced webpack logs when building Storybook on Travis.
2020-03-27 08:52:42 -04:00
dependabot-preview[bot]
fe061bd6a4
Bump marked from 0.8.1 to 0.8.2 (#6876)
Bumps [marked](https://github.com/markedjs/marked) from 0.8.1 to 0.8.2.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Commits](https://github.com/markedjs/marked/compare/v0.8.1...v0.8.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-26 17:36:58 -04:00
dependabot-preview[bot]
6517d9c805
Bump codemirror from 5.52.0 to 5.52.2 (#6879)
Bumps [codemirror](https://github.com/codemirror/CodeMirror) from 5.52.0 to 5.52.2.
- [Release notes](https://github.com/codemirror/CodeMirror/releases)
- [Changelog](https://github.com/codemirror/CodeMirror/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codemirror/CodeMirror/compare/5.52.0...5.52.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-26 17:36:43 -04:00
dependabot-preview[bot]
dba2f618b6
Bump lint-staged from 10.0.8 to 10.0.9 (#6875)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.0.8 to 10.0.9.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.0.8...v10.0.9)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-26 17:35:25 -04:00
dependabot-preview[bot]
cdb33fab06
Bump twilio-video from 2.2.0 to 2.3.0 (#6871)
Bumps [twilio-video](https://github.com/twilio/twilio-video.js) from 2.2.0 to 2.3.0.
- [Release notes](https://github.com/twilio/twilio-video.js/releases)
- [Changelog](https://github.com/twilio/twilio-video.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/twilio/twilio-video.js/compare/2.2.0...2.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-26 17:34:52 -04:00
Nick Taylor
a06a8774d4
Upgraded to eslint 6.8.0 (#6850) 2020-03-26 12:30:33 +01:00
Nick Taylor
b833c6c667
Upgraded to jest 25.2.0. (#6849) 2020-03-25 17:26:28 -04:00
Michael Kohl
8b5e66ca0e
Docker fixes (#6803)
* Try out parallel Travis builds

* Add more Bundler options

* Appease the spec gods

I don't think we actually need Timecop.freeze in this spec

* Try inlining factories

* Make sure the time has actually changed

* Add CodeClimate coverage for parallel build

* Explicitly list jobs, don't rely on matrix expansion

* Merge master and move storybook to after_script

* Add missing environment variable

* Remove old cc-test-reporter config

* Move yarn build-storybook back to script, remove conditional coverage upload

* Update yarn constraint and Docker docs

Co-authored-by: rhymes <rhymesete@gmail.com>
2020-03-24 13:15:04 -04:00
Nick Taylor
462b65a27b
Upgraded @storybook/addon-knobs to 5.3.17 (#6812) 2020-03-24 11:21:11 -04:00
Nick Taylor
18a7c58fdd
Added missing dependencies for Heroku deploys. (#6800) 2020-03-24 11:12:00 +01:00
Nick Taylor
bac84ea962
Add @babel/plugin-syntax-dynamic-import to dependencies (#6799) [deploy] 2020-03-23 18:23:08 -04:00
Nick Taylor
be3a1be10f
Upgrade to webpacker 5.0.0 (#6786) 2020-03-23 13:23:41 -04:00
Nick Taylor
52c2f40256
Upgrade Storybook to 5.3.17 (#6754)
* Renabled building Storybook.

* Explicitly added webpack style loaders for Storybook custom webpack config.

* Upgraded Storybook configuration.

* Added mixin/function to handle SASS compilation for Sprockets and Storybook's webpack.

* Readded stylesheets/js required for crayons to run.

* Added a custom title to Storybook.

* Fixed custom Storybook CSS.

* Migrated Search storybook stories.

* Migrated crayons' box stories.

* Migrated crayons' modal stories.

* Migrated crayons' button stories.

* Changed title a bit until we get a logo.

* Migrated crayons' notice stories.

* Migrated crayons' dropdown stories.

* Migrated crayons' indicator stories.

* Migrated crayons' typography stories.

* Migrated crayons' form element stories.

* Migrated crayons' navigation stories.

* Migrated crayons' avatar & logo stories.

* Migrated fatured article stories.

* Migrated article loading stories.

* Migrated today's podcast episodes stories.

* Migrated podcast episode stories.

* Migrated rest of article stories.

* Update app/javascript/.storybook/manager.js

Co-Authored-By: rhymes <rhymesete@gmail.com>

* Commented new SASS function and mixin.

Co-authored-by: rhymes <rhymesete@gmail.com>
2020-03-23 09:46:50 -04:00
dependabot-preview[bot]
0ebdf17efe
Bump marked from 0.8.0 to 0.8.1 (#6719) 2020-03-20 11:38:23 -04:00
Nick Taylor
1b822c2d80
Fix devDependencies/dependencies issue in package.json (#6736) [deploy] 2020-03-19 17:51:57 -04:00
dependabot-preview[bot]
127b1a1e41
Bump honeybadger-js from 2.1.3 to 2.2.0 (#6722) 2020-03-19 14:50:28 -04:00
dependabot-preview[bot]
24c3090842
Bump ibm-openapi-validator from 0.25.0 to 0.26.0 (#6720) 2020-03-19 13:39:20 -04:00
dependabot-preview[bot]
2a6716f359
Bump redoc-cli from 0.9.6 to 0.9.7 (#6723)
Bumps [redoc-cli](https://github.com/Redocly/redoc) from 0.9.6 to 0.9.7.
- [Release notes](https://github.com/Redocly/redoc/releases)
- [Changelog](https://github.com/Redocly/redoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Redocly/redoc/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-19 13:22:43 -04:00
dependabot-preview[bot]
912cc0a605
Bump @stoplight/spectral from 5.1.0 to 5.2.0 (#6724) 2020-03-19 11:33:19 -04:00
Nick Taylor
8c235c3211
Revert "Get those devDeps back! (#6690)" [deploy] (#6696)
This reverts commit 432e2c4f29.
2020-03-18 11:40:00 -04:00
Nick Taylor
432e2c4f29
Get those devDeps back! [deploy] (#6690)
Fixed the issue with a dev dependency having to be a dependency in package.json so that deploys work on Heroku.
2020-03-18 10:28:07 -04:00
Nick Taylor
adc83f7175
Moved devDependencies to dependencies to attempt fixing deploy (#6685) [deploy] 2020-03-17 17:38:24 -04:00
Molly Struve
51bb16adee
specify yarn version in package.json (#6680) [deploy] 2020-03-17 14:05:47 -05:00
Nick Taylor
ccf7e6e5bf
Upgrade to webpacker/webpack 4 and Babel 7 (#6664)
Upgraded to webpacker 4/webpack 4 and Babel 7
2020-03-17 08:20:36 -04:00
dependabot-preview[bot]
a5523584df
Bump ibm-openapi-validator from 0.24.1 to 0.25.0 (#6653) 2020-03-16 13:16:54 -04:00
dependabot-preview[bot]
730f76cf9b
Bump jsdom from 16.2.0 to 16.2.1 (#6654) 2020-03-16 13:16:28 -04:00
dependabot-preview[bot]
a191123c85
Bump jest-fetch-mock from 3.0.2 to 3.0.3 (#6652)
Bumps [jest-fetch-mock](https://github.com/jefflau/jest-fetch-mock) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/jefflau/jest-fetch-mock/releases)
- [Commits](https://github.com/jefflau/jest-fetch-mock/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-16 10:00:17 -04:00
dependabot-preview[bot]
dfc3171fae
Bump eslint-config-airbnb-base from 14.0.0 to 14.1.0 (#6651) [deploy] 2020-03-16 09:19:29 -04:00
dependabot-preview[bot]
ab2670625e
Bump jest-fetch-mock from 3.0.1 to 3.0.2 (#6535) 2020-03-09 17:31:07 -04:00
dependabot-preview[bot]
776e0e7a07
Bump eslint-plugin-react from 7.18.3 to 7.19.0 (#6536)
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.18.3 to 7.19.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.18.3...v7.19.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-09 16:46:36 -04:00
dependabot-preview[bot]
b096b19897
Bump jest-axe from 3.3.0 to 3.4.0 (#6537)
Bumps [jest-axe](https://github.com/nickcolley/jest-axe) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/nickcolley/jest-axe/releases)
- [Changelog](https://github.com/nickcolley/jest-axe/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nickcolley/jest-axe/compare/v3.3.0...v3.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-09 15:39:22 -04:00
rhymes
4c6b901b7a
Validate API OpenAPI 3 spec (#6519)
* Add @stoplight/spectral to dev dependencies for validation

* Add yarn api-docs:lint command

* Fix linting errors

* Lower severity level

* Add ibm-openapi-validator as linter, as it inspects slightly differently
2020-03-09 16:40:05 +01:00
dependabot-preview[bot]
3b2b9cb77b
Bump babel-eslint from 10.0.3 to 10.1.0 (#6403) [deploy]
Bumps [babel-eslint](https://github.com/babel/babel-eslint) from 10.0.3 to 10.1.0.
- [Release notes](https://github.com/babel/babel-eslint/releases)
- [Commits](https://github.com/babel/babel-eslint/compare/v10.0.3...v10.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-03 10:16:21 -05:00
dependabot-preview[bot]
93e8bfed48
Bump lint-staged from 10.0.7 to 10.0.8 (#6404) 2020-03-02 10:36:36 -05:00
rhymes
c3e7179f5b
Bump to sprockets 4.0.0 (#6172) [deploy]
* Bump to sprocket 4.0.0

* Add manifest.js

* Link internal/layout.css

* Make it more similar to Rails 5.2 default
2020-02-24 18:16:08 -05:00
dependabot-preview[bot]
f54153d334
Bump codemirror from 5.51.0 to 5.52.0 (#6268) 2020-02-24 18:14:45 -05:00
dependabot-preview[bot]
40290a633c
Bump twilio-video from 2.1.0 to 2.2.0 (#6272) 2020-02-24 18:14:13 -05:00
Nick Taylor
689b933a2e
Upgraded all Storybook dependencies. (#6278) 2020-02-24 08:55:28 -06:00
dependabot-preview[bot]
b689e9c343
Bump honeybadger-js from 2.1.2 to 2.1.3 (#6266)
Bumps [honeybadger-js](https://github.com/honeybadger-io/honeybadger-js) from 2.1.2 to 2.1.3.
- [Release notes](https://github.com/honeybadger-io/honeybadger-js/releases)
- [Changelog](https://github.com/honeybadger-io/honeybadger-js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/honeybadger-io/honeybadger-js/compare/v2.1.2...v2.1.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-24 09:03:47 -05:00
Nick Taylor
5e677daac1
Homepage feed components (#6052)
* wip - <PodcastArticle /> component.

* Added filler user avatar for other article types.

* Added <LoadingArticle /> component.

* wip

* wip on <Article /> component.

* Added <Article /> component to barrel file.

* Deleted assets from dummy storybook assets folder.

* Updated podcast article story avatar.

* More work on <Article /> component.

* Refactoring Storybook stories.

* Refactored so main component is just the <Article /> component.

* Added a missing video article property.

* Some refactoring of <Article /> component.

* Added Storybook knobs addon.

* Now <Article /> component supports an isBookmarked prop.

* Fixed podcast Storybook story.

* Made the knobs Storybook addon the first tab

* Added more <Article /> Storybook stories.

* More <Article /> component tweaks.

* Added publish time to <Article /> component stories.

* Made the timeAgo function compatible with Preact.

* Added loading="lazy" attribute to <img /> in <Article /> component.

* Added <Article /> Storybook story for past published date.

* Fixed publish date for <Article /> story data.

* Scrapped random avatars.

* Added snapshots for <Article /> component.

* Added snapshots for <LoadingArticle /> component.

* Now test article entities are shared.

* Fixed some wording of Storybook stories.

* Breaking up Article.jsx to make codeclimate happy.

* Now <Article /> component receives icon props.

* Added knobs for <Article /> icon props.

* Added *.stories.jsx to codeclimate exclusion list.

* Added **/*.stories.jsx to codeclimate exclusion list.

* Alright now we have the good glob for excluding Storybook from codeclimate 😆

* Added org headline changes from low hanging fruit PR.

* Updated <Article /> snapshot for org headline.
2020-02-19 11:39:13 -06:00
Nick Taylor
ee9b1f58b9
Enabled ERB support for webpacker (#6166) [deploy] 2020-02-19 08:58:37 -05:00
Nick Taylor
a7dc893f50
Updates to Storybook for home page makeover. (#6130) 2020-02-18 08:42:37 -06:00
dependabot-preview[bot]
88bddc13e8
Bump jsdom from 16.1.0 to 16.2.0 (#6111) 2020-02-17 12:07:08 -05:00