这是indexloc提供的服务,不要输入任何密码
Skip to content

Use TextEditor in observations identify #2727

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 16, 2020

Conversation

todtb
Copy link
Contributor

@todtb todtb commented Jul 10, 2020

#2723

It looks like the older INatTextArea supported the "mentions" boolean, but it didn't appear to be utilized in CommentForm or IdentificationForm.

I was thinking it would be neat to bring in the whole side-by-side comment/id container from observations show, but it might be too much of a change in the UI too quickly. Additionally, it would add a non-trivial amount of work with redux and refactoring to make it work both in observations/show and /observations/identify (observations modal).

From a UI side, I just kinda kept the overall style of the /observations/identify page, but do note the preview functionality (bg-color is different from /observations/show, but consistent for the page).

@todtb todtb marked this pull request as draft July 11, 2020 19:09
@todtb todtb marked this pull request as ready for review July 11, 2020 19:42
Copy link
Member

@kueda kueda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looking mostly great. In addition to the mentions issue, the c keyboard shortcut is focusing on the bold button, when it should focus on the comment form <textarea>.

@todtb
Copy link
Contributor Author

todtb commented Jul 14, 2020

This looking mostly great. In addition to the mentions issue, the c keyboard shortcut is focusing on the bold button, when it should focus on the comment form <textarea>.

Oh good catch. Just saw the change you made to observations/show/keyboard_shortcuts.js:12 recently. I'll add that in for observations/identify/keyboard_shortcuts.js as well now that we're using the new component here too. Also the change to the TextEditor to support "mentions" bool.

@todtb todtb requested a review from kueda July 15, 2020 01:38
@kueda kueda merged commit baf0b4f into inaturalist:master Jul 16, 2020
@kueda
Copy link
Member

kueda commented Jul 16, 2020

Thanks again!

@todtb todtb deleted the 2723-texteditor-for-obs-identify branch July 16, 2020 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants