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

Fix tagging #492

Merged
merged 4 commits into from
Nov 27, 2023
Merged

Fix tagging #492

merged 4 commits into from
Nov 27, 2023

Conversation

Megha-Dev-19
Copy link
Collaborator

Resolves #487

@Megha-Dev-19 Megha-Dev-19 marked this pull request as ready for review November 20, 2023 17:33
@@ -10,7 +10,7 @@ const AutoComplete = styled.div`
`;

function textareaInputHandler(value) {
const showAccountAutocomplete = /@[\w][^\s]*$/.test(value);
const showAccountAutocomplete = /(^|\s)@/.test(value);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Will this make autocomplete bar always showup, as @ will always exist?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no actually not
it works when there is a whitespace before @ or if it's in the beginning of the text

@ailisp
Copy link
Collaborator

ailisp commented Nov 21, 2023

Thanks @Megha-Dev-19 ! This seems like a right fix, but I'm not sure. Could you provide a preview link or a short screen recording to ensure two issues reported by @ori-near is fixed?

@Megha-Dev-19
Copy link
Collaborator Author

Hey @ailisp yeah sure, attaching the screen recording here.
also for preview I will have to deploy it on my account and then share the link right? or is there any other way?

Screen.Recording.2023-11-21.at.10.58.15.mov

@Tguntenaar
Copy link
Collaborator

Tguntenaar commented Nov 21, 2023

Hey @ailisp yeah sure, attaching the screen recording here. also for preview I will have to deploy it on my account and then share the link right? or is there any other way?

@Megha-Dev-19 Exactly for preview, you can deploy it on your account and then share the link in the PR

@Megha-Dev-19
Copy link
Collaborator Author

@Tguntenaar here is the preview link
https://near.org/megha19.near/widget/app?page=create

@ailisp
Copy link
Collaborator

ailisp commented Nov 23, 2023

@Megha-Dev-19 Thanks for your response, I tried myself. The issue 1 is fixed, but not the issue 2, see Ori's video in #487 from 00:40, when you try @ in the middle of the post, not as the last word, the autocompletion still doesn't show up.

@Megha-Dev-19
Copy link
Collaborator Author

hey @ailisp you're right, I will check this

@Megha-Dev-19
Copy link
Collaborator Author

hey @ailisp I have fixed it
Preview link
let me know if there still an issue

@ailisp
Copy link
Collaborator

ailisp commented Nov 27, 2023

Looks perfect now! Thank you!

@ailisp ailisp merged commit c680f7c into NEAR-DevHub:main Nov 27, 2023
2 checks passed
@ori-near
Copy link
Collaborator

Looks so good, thank you!

@Megha-Dev-19 Megha-Dev-19 deleted the fix-description-tagging branch December 13, 2023 13:27
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.

Make @tagging work
5 participants