openedx / frontend-app-discussions

A React-based micro frontend for the Open edX discussion forums.
GNU Affero General Public License v3.0
6 stars 64 forks source link

feat: add auto scroll to editor functionality #671

Closed awais-ansari closed 9 months ago

awais-ansari commented 9 months ago

INF-1158

Description

Currently, when clicking on the 'Add Response' button at the top right of the comment, the screen does not scroll to the input box. In scenarios where the response is too large, this behavior may give the impression that edX is not responding to the course team's action of creating a response. The suggestion is that when a user clicks on 'Add Response,' they should be directed directly to the end of the text, where the text field is visible.

Before

https://www.loom.com/share/edf13a96bcb84512a3b725418c13cafd?sid=92841d71-8fec-4450-a41f-38b7fc65b883

After

https://www.loom.com/share/2dd82907f7904c6493807f67f83bda0a?sid=7a803fe7-5060-4564-945c-1d4cb0fe4506

codecov[bot] commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.82%. Comparing base (ddb6c96) to head (e9381e0).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #671 +/- ## ========================================== + Coverage 92.81% 92.82% +0.01% ========================================== Files 158 158 Lines 3326 3331 +5 Branches 915 916 +1 ========================================== + Hits 3087 3092 +5 Misses 219 219 Partials 20 20 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.