This repository was archived by the owner on Oct 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Plaintext markdown chatinput #4472
Merged
Merged
Changes from 3 commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
0d4cac9
Hacky plaintext chatinput
97c9fbf
Update to latest React
84eb575
Rewrite chat input with hooks
ed08f6b
Add support for sending DM thread messages and creating new DM threads
26c7124
Quoted message support
160e813
Make media messages work
1eff87e
"Blur" optimistic responses"
dad3f36
Revert ""Blur" optimistic responses""
7a7ba8d
Parse markdown to draftjs in optimistic responses
2e9d461
Add localStorage persistance of latest chatInput content
603434f
Fix dm thread creation
6be1f93
Switch to same markdown draftjs conversion library on backend
16afe50
Merge branch 'alpha' into plaintext-spike
2d2b676
Add missing dep to api
255ac28
Merge branch 'alpha' of github.com:withspectrum/spectrum into plainte…
brianlovin 9e3e8ca
Silence flow errors on new react features
brianlovin 4711c0e
Fix chatInput focussing
abda1d4
Fix sending plaintext messages
359e601
Remove unnecessary double-read of attached media
460fa50
Resolve React warnings
d8e9cc8
Fix creating new DM thread
7f6388c
Revert "Fix creating new DM thread"
71350d7
Merge branch 'alpha' into plaintext-spike
d16b5c2
Fix flow
2b54407
Merge alpha and fix conflicts
brianlovin 60c3465
Better network disabled styling on input
brianlovin e74d018
Fix styling if quote-replying and uploading media at same time
brianlovin d1c4909
Focus chatinput on quote message click
3a59362
Fix media messages arriving after text messages
0df7df4
Handle websocket connection states
58b4404
Fix flow
4cb998b
Remove unused variables from chatInput
3bfb20c
Explicitly target chat input from e2e tests
0c9f8b8
Move data-cy="chat-input" to actual input
890a715
Merge branch 'alpha' into plaintext-spike
b4fc98d
Use .clear() instead of .type() in e2e tests
243d2c7
Remove .only in thread_spec, fix /new/thread tests
a327a86
Upgrade to draft-js-import-markdown@latest to fix code blocks
721dfb7
Make plaintext message editing work
6a7c792
edit in plaintext on the frontend
10ceda8
Fix flow
06a2f9e
Fix editing e2e test
6d7d814
Match input font weight to rendered message font weight
brianlovin 3adc352
Remove invalid dataCy dom node property
brianlovin f62c8c6
Change editor to allow multiline messages
brianlovin 156ceb7
Remove empty line while editing
470bae2
Fix incorrect focussing on chat input while editing message
7b51155
Make single line breaks work!
1d59e09
Focus the edit message input when edit message button is clicked
brianlovin af78603
Fenced code blocks while editing
d6fbf52
Merge branch 'alpha' into plaintext-spike
7888aaf
Merge branch 'alpha' into plaintext-spike
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,7 +38,7 @@ | |
| "prettier": "^1.14.3", | ||
| "raw-loader": "^0.5.1", | ||
| "react-app-rewire-hot-loader": "^1.0.3", | ||
| "react-hot-loader": "^4.3.11", | ||
| "react-hot-loader": "^4.6.0", | ||
| "react-scripts": "^1.1.5", | ||
| "rimraf": "^2.6.1", | ||
| "sw-precache-webpack-plugin": "^0.11.4", | ||
|
|
@@ -145,12 +145,12 @@ | |
| "query-string": "5.1.1", | ||
| "raf": "^3.4.0", | ||
| "raven": "^2.6.4", | ||
| "react": "16.4.2", | ||
| "react": "^16.7.0-alpha.2", | ||
| "react-apollo": "^2.3.2", | ||
| "react-app-rewire-styled-components": "^3.0.0", | ||
| "react-app-rewired": "^1.6.2", | ||
| "react-clipboard.js": "^2.0.1", | ||
| "react-dom": "16.4.2", | ||
| "react-dom": "^16.7.0-alpha.2", | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Had to upgrade to get react hooks |
||
| "react-flip-move": "^3.0.2", | ||
| "react-helmet-async": "^0.1.0", | ||
| "react-image": "^1.5.1", | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to upgrade to get compatibility with react hooks