Skip to content
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

Make markdown modal faster (e.g., editing of annotation description) #7769

Merged
merged 3 commits into from
Apr 24, 2024

Conversation

philippotto
Copy link
Member

@philippotto philippotto commented Apr 23, 2024

URL of deployed dev instance (used for testing):

  • https://___.webknossos.xyz

Steps to test:

  • edit an annotation description

Issues:


(Please delete unneeded items, merge only when none are left open)

@philippotto philippotto self-assigned this Apr 23, 2024
@@ -59,12 +59,20 @@ class EditableTextLabel extends React.PureComponent<EditableTextLabelProp, State
}
}

handleInputChange = (event: React.ChangeEvent<HTMLTextAreaElement | HTMLInputElement>) => {
handleInputChangeFromEvent = (
Copy link
Member

Choose a reason for hiding this comment

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

Why does the component have two change handlers? Just for type safety?

Copy link
Member Author

Choose a reason for hiding this comment

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

The component can use the MarkdownModal as well as the usual Input component. Since I changed the MarkdownModal to not use the event parameter anymore, the parent component now needs both variants. It's a bit unfortunate, but still the best trade-off in my opinion.

Copy link
Member

@hotzenklotz hotzenklotz left a comment

Choose a reason for hiding this comment

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

LGTM

@philippotto philippotto merged commit 5bdc46e into master Apr 24, 2024
2 checks passed
@philippotto philippotto deleted the faster-annotation-description-editing branch April 24, 2024 09:03
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.

None yet

2 participants