about summary refs log tree commit diff
path: root/app/javascript/mastodon/features/compose/components/compose_form.js
AgeCommit message (Collapse)Author
2023-02-20Rename JSX files with proper `.jsx` extension (#23733)Renaud Chaput
2023-02-04Spell check input fields (#23395)Christian Schmidt
2023-01-30Upgrade ESlint to v8 (#23305)Nick Schonning
2023-01-24Add lang attribute to compose textarea and CW field (#23240)Claire
Fixes #19858
2023-01-05Add aria-hidden to content warning field when dimmed so that it is not ↵Holden Foreman
confusing to screen reader users (#22568)
2022-12-15Don't autofocus the compose form (#16517)Arnout Engelen
When opening a page such as /web/timelines/home in a desktop browser, the cursor was automatically placed in the textarea of the compose form. When using the keyboard for navigation (using a browser plugin like vimium or vim vixen, or just to hit 'space' to scroll down a page), you have remember to leave the field before using that. Since you only visit the page to write a new post some of the time, this PR attempts to have nothing focused initially (and require the user to click or e.g. use 'tab' to focus the textarea). Tested: * /web/timeslines/home no longer autofocuses the compose box * pressing the 'n' hotkey still focuses the compose box * clicking 'reply' for a post still focuses the compose box * replying to a CW'ed post still focuses the compose box * introducing the CW field still focuses the CW field * introducing the CW field for a reply still focuses the CW field * removing the CW field still focuses the compose box * /web/statuses/new still autofocuses the compose box fixes #15862
2022-11-05Fix compose form submission reloading web interface (#19762)Claire
* Fix compose form submission reloading web interface Fix regression introduced by #19742 * Fix various compose form buttons being handled like submit buttons * Fix coding style issue * Fix missing onClick prop check
2022-11-04A11y: Explicit <form> element around compose area (#19742)Sunny Ripert
2022-06-01Change label of publish button to be "Publish" again (#18583)Eugen Rochko
2022-05-16Add language dropdown to compose in web UI (#18420)Eugen Rochko
2022-02-25Fix reply button on media modal not giving focus to compose form (#17626)Claire
* Avoid compose form and modal management fighting for focus * Fix reply button on media modal footer not giving focus to compose form
2022-02-12Fix controls for unchangeable properties on status edit not being disabled ↵Claire
(#17531) Fixes #17520
2022-02-10Add editing for published statuses (#17320)Eugen Rochko
* Add editing for published statuses * Fix change of multiple-choice boolean in poll not resetting votes * Remove the ability to update existing media attachments for now
2022-01-20Fix text being incorrectly pre-selected in composer textarea on /share (#17339)Claire
Fixes #17295
2021-03-24Fix compose form behavior in mobile view (#15555)Claire
* Fix ComposeForm being mounted twice in mobile view Fixes #13094 * Fix compose form focus and pre-selection behavior in mobile view * Split _updateFocusAndSelection out of componentDidUpdate
2020-11-30Fix character count not ignoring hidden CW field (#15236)Mélanie Chauvel
2019-07-06Only scroll to the compose form if it's not horizontally in the viewport ↵ThibG
(#11246) Avoids jumping the scroll around vertically when giving it focus and editing long toots.
2019-06-26Scroll to compose form rather than reply indicator on focus (#11182)ThibG
2019-06-16Do not scroll in the compose panel on single-column (#11093)ThibG
2019-06-13Fix ordering of keyboard access between CW field, textarea and emoji picker ↵ThibG
(#11066)
2019-06-07Fix some React warnings (#10989)Eugen Rochko
2019-06-06Fix emoji picker being always displayed (#10979)Takeshi Umeda
* Fix emoji picker being always displayed * Remove duplicate content with other pull-requests
2019-06-05Scroll to compose form when focus (#10970)Jeong Arm
* Scroll to compose form when focus * Get rid of constructor
2019-06-02Improvement variable height in single column layout (#10917)Takeshi Umeda
* Improvement variable height of compose and navigation panel in single column layout * Fix wrong quotes and missing commas
2019-05-09Add emoji suggestions to CW and poll option fields (#10555)ThibG
* Refactor selectComposeSuggestion so that different paths can be updated * Add suggestions in CW field * Add emoji suggestion to poll options * Attempt to fix CSS * Hide suggestions by default They will be enabled if the input has focus
2019-05-03Make the "mark media as sensitive" button more obvious in web UI (#10673)Eugen Rochko
* Make the "mark media as sensitive" button more obvious in web UI * Use eye-slash icon instead of eye icon to mean "hide"
2019-04-22Minor code cleanup (#10613)ThibG
2019-03-06Add UI for creating polls (#10184)Eugen Rochko
* Add actions and reducers for polls * Add poll button * Disable media upload if poll enabled * Add poll form * Make delete & redraft work with polls
2019-02-12Don't focus spiler input when disabled spoiler (#10017)Hinaloe
2019-02-01Refactor icons in web UI to use Icon component (#9951)Eugen Rochko
* Refactor uses of icons to an Icon component in web UI * Refactor options passed to the Icon component * Make tests work with absolute component paths
2018-12-16Split out is_changing_upload from is_submitting (#9536)ThibG
There is no reason to disable the composer textarea when some media metadata is being modified, nor is there any reason to focus the textarea when some media metadata has been modified (prevents clicking one image's description field right after having modified another).
2018-10-24Fix JS error when posting from page without router context (#9073)Eugen Rochko
Fix #9057
2018-10-11Do not push DMs into the home feed (#8940)Eugen Rochko
* Do not push DMs into the home feed * Show DMs column after sending a DM, if DMs column is not already shown
2018-09-28Revert Font Awesome 5 upgrade (#8810)Eugen Rochko
* Revert "Fix some icon names changed by the Font Awesome 5. (#8796)" This reverts commit 3f9ec3de82c1a3879a2b092672f51c1caca76f5c. * Revert "Migrate to font-awesome 5.0. (#8799)" This reverts commit 8bae14591bfb4fc9dd9d89d8082ac0123b03edaa. * Revert "Fix some icons names, unavailable in fontawesome5 (free license). (#8792)" This reverts commit b9c727a945fea5afffb3e3a53279164adfc6e88f. * Revert "Update the icon name changed by the Font Awesome 5. (#8776)" This reverts commit 17af4d27da484fc35ecd4b4dce2443d24aa35d23. * Revert "Add bot icon to bot avatars and migrate to newer version of Font Awesome (#8484)" This reverts commit 4b794e134d427dbc716606324adb9a885a74abec.
2018-09-27Migrate to font-awesome 5.0. (#8799)Naoki Kosaka
2018-09-14Upgrade Babel to version 7.0.0 (#5925)Yamagishi Kazutoshi
2018-06-15Fix regression where CW is focused on reply (#7811)Eugen Rochko
2018-06-10Control the focus when clicking the "CW" button. (#7776)kedama
* Focus to the spoiler text when CW turns on. * Focus back to the textarea when CW turns off.
2018-05-31 Put the CW field between the toot we are replying to and the toot field (#7508)Mélanie Chauvel (ariasuni)
* Remove Collapsable and use CSS instead * Put the CW field between the toot we are replying to and the toot field * Use same spacing between all fields in the composing column
2018-05-23Fix caret position after selected suggestion and media upload (#7595)ThibG
* Fix media upload reseting caret position to last inserted emoji * Fix caret position after inserting suggestions (fixes #6089)
2018-05-22Remove unneeded code now that attachment URL isn't appended to toots (#7593)ThibG
2018-04-17Fix caret position after inserting emoji (#7167)abcang
2018-04-01Fix: Prevent submission using same logic as submit button disabling. (#6993)Emelia Smith
This prevents submission through ctrl/cmd+enter when the submit button is disabled.
2018-03-07Remove text requirement when media attached from statuses (#6672)Eugen Rochko
2017-12-13Excahnge the order of spoiler-input and unlocked warning (#6015)Lynx Kotoura
* Excahnge the order of spoiler-input and unlocked warning * Fix trailing whitespace
2017-12-13Redesign tootbox (#5919)Lynx Kotoura
* Redesign tootbox * Move counter into compose-form__buttons-wrapper Change font and remove shadow Refactor sass codes of compose-form
2017-10-31Refactor initial state: "me" (#5563)Nolan Lawson
* Refactor initial state: "me" * remove "me" from reducers/meta.js
2017-09-30Make emoji autosuggestions immediate, usernames appear sooner (#5149)Eugen Rochko
* Do not debounce emoji search * Make autosuggestions appear sooner
2017-09-23Add custom emojis to the emoji picker (#5052)Eugen Rochko
2017-09-23Switch from EmojiOne to Twemoji, different emoji picker (#5046)Eugen Rochko
* Switch from EmojiOne to Twemoji, different emoji picker * Make emoji-mart use a local spritesheet * Fix emojify test * yarn manage:translations