Skip to content
This repository was archived by the owner on May 7, 2023. It is now read-only.

Tag user List logic #501

Merged
hyochan merged 20 commits intohyochan:masterfrom
whywhyy:feat/tag-users
Oct 23, 2021
Merged

Tag user List logic #501
hyochan merged 20 commits intohyochan:masterfrom
whywhyy:feat/tag-users

Conversation

@whywhyy
Copy link
Contributor

@whywhyy whywhyy commented Oct 10, 2021

Specify project

Client

Description

Tag user logic

  • Logic to get a list of users to tag when editing text
tagUserVideo.mov

Related Issues

issue #473

Checklist

Before you create this PR confirms that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the [CLA].
  • Run yarn lint && yarn tsc
  • Run yarn test or yarn test -u if you need to update snapshot.
  • I am willing to follow-up on review comments in a timely manner.

@CLAassistant
Copy link

CLAassistant commented Oct 10, 2021

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ hyochan
❌ whywhyy


whywhyy seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@whywhyy whywhyy changed the title Tag user logic Tag user user List logic Oct 10, 2021
@hyochan hyochan added 🍗 enhancement New feature or request 🎯 feature New feature labels Oct 10, 2021
@codecov
Copy link

codecov bot commented Oct 10, 2021

Codecov Report

Merging #501 (42c2c19) into master (83152db) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #501   +/-   ##
=======================================
  Coverage   76.09%   76.09%           
=======================================
  Files          64       64           
  Lines        1163     1163           
  Branches      130      130           
=======================================
  Hits          885      885           
  Misses        276      276           
  Partials        2        2           
Flag Coverage Δ
unittests 76.09% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 83152db...42c2c19. Read the comment docs.

@whywhyy whywhyy changed the title Tag user user List logic Tag user List logic Oct 10, 2021
Copy link
Contributor

@geoseong geoseong left a comment

Choose a reason for hiding this comment

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

Hi! 👋
I leave some suggestions from your code. so please check this and let me know what your thinking. thank you!

@whywhyy whywhyy requested a review from geoseong October 13, 2021 14:36
@hyochan
Copy link
Owner

hyochan commented Oct 14, 2021

How does this differ with #505 ?

@hyochan hyochan mentioned this pull request Oct 14, 2021
5 tasks
@whywhyy
Copy link
Contributor Author

whywhyy commented Oct 15, 2021

How does this differ with #505 ?

#505 is the UI work of the #501 PR.
Currently, #501 tag users are expressed in simple text, but in #505 , the user's profile image is displayed.

Is there a way to merge two different PRs?
Should I write a comment to review the #505 after the #501 is merged?

@hyochan
Copy link
Owner

hyochan commented Oct 15, 2021

How does this differ with #505 ?

#505 is the UI work of the #501 PR. Currently, #501 tag users are expressed in simple text, but in #505 , the user's profile image is displayed.

Is there a way to merge two different PRs? Should I write a comment to review the #505 after the #501 is merged?

There are two ways I can tell.

  1. Work on separate prs just now and when merged, one other PR should do rebasing.
  2. Give a PR to the current branch instead of master.

Try out that fits your needs.

Copy link
Owner

@hyochan hyochan left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! The idea looks great~!

Hope you to cleanup some of the codebase 🙏

renderViewMenu: (): React.ReactElement => <View />,
message: '',
onChangeMessage: (): void => {},
onChangeSelection: (): void => {},
Copy link
Owner

Choose a reason for hiding this comment

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

This needs better typings.

Copy link
Contributor Author

@whywhyy whywhyy Oct 15, 2021

Choose a reason for hiding this comment

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

props is a function.

Do you have the proper Shared.defaultProps ?


refactor : onChangeSelection -> onChangeCursor

Copy link
Owner

Choose a reason for hiding this comment

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

Thanks for the changes but I think we need additional arguments to this typing!

Copy link
Contributor Author

@whywhyy whywhyy Oct 17, 2021

Choose a reason for hiding this comment

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

It has been modified as follows. please check.

'_' was added because of an unused lint error.

Shared.defaultProps = {
...
  onChangeMessage: (_message: string): void => {},
  onChangeCursor: (_param: {start: number; end: number}): void => {},
...

@whywhyy whywhyy requested a review from hyochan October 15, 2021 08:00
Copy link
Owner

@hyochan hyochan left a comment

Choose a reason for hiding this comment

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

May I ask you for two wishlists?

  1. Can we make tag list absolute? It does not look nice to push messages upward when tag list appears.

  2. Can we have user thumbnail?

1,2 are wishlist is most like a slack. It doesn't have to be the same but you can refer to it for understanding.
image

@whywhyy
Copy link
Contributor Author

whywhyy commented Oct 17, 2021

May I ask you for two wishlists?

  1. Can we make tag list absolute? It does not look nice to push messages upward when tag list appears.
  2. Can we have user thumbnail?

(with @hankkuu )
Added image. Please check the code.


add

  • query : add photoURL
  • ui : uis/TagUserListItem.tsx

스크린샷 2021-10-17 오후 7 17 40

@whywhyy whywhyy requested a review from hyochan October 17, 2021 10:25
@hyochan
Copy link
Owner

hyochan commented Oct 21, 2021

@whywhyy Looks like the CLA i not agreed from the user here 324e7ff

Copy link
Owner

@hyochan hyochan left a comment

Choose a reason for hiding this comment

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

Could you kindly fix styles a bit to make this PR more complete?

  1. Please make the floating popup close the message input. Currently, it is a bit far away.
    Screen Shot 2021-10-21 at 4 07 39 PM

    Below is how it looks on web.
    Screen Shot 2021-10-21 at 4 07 55 PM

  2. I think the chatter shouldn't be included in the tag list.

@whywhyy
Copy link
Contributor Author

whywhyy commented Oct 22, 2021

Could you kindly fix styles a bit to make this PR more complete?

  1. Please make the floating popup close the message input. Currently, it is a bit far away.
    Screen Shot 2021-10-21 at 4 07 39 PM
    Below is how it looks on web.
    Screen Shot 2021-10-21 at 4 07 55 PM
  2. I think the chatter shouldn't be included in the tag list.

thanks for the good point The UI has been modified as follows.

The UI has been modified as follows.

image

@whywhyy whywhyy requested a review from hyochan October 22, 2021 13:00
@whywhyy
Copy link
Contributor Author

whywhyy commented Oct 22, 2021

@whywhyy Looks like the CLA i not agreed from the user here 324e7ff

Something is wrong. I agreed. Agreed with other IDs, but CLA is not passed.
I agree with the cla but I don't agree with the software...
Can I replace this with a message instead of software consent?

@hyochan
Copy link
Owner

hyochan commented Oct 23, 2021

@whywhyy Looks like the CLA i not agreed from the user here 324e7ff

Something is wrong. I agreed. Agreed with other IDs, but CLA is not passed. I agree with the cla but I don't agree with the software... Can I replace this with a message instead of software consent?

Got it!

Copy link
Owner

@hyochan hyochan left a comment

Choose a reason for hiding this comment

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

Thanks for the great work!

@hyochan hyochan merged commit 6058594 into hyochan:master Oct 23, 2021
@hyochan
Copy link
Owner

hyochan commented Oct 27, 2021

@all-contributors Please add @whywhyy for code

@allcontributors
Copy link
Contributor

@hyochan

I've put up a pull request to add @whywhyy! 🎉

@hyochan
Copy link
Owner

hyochan commented Oct 27, 2021

@all-contributors please add @hankkuu for code

@allcontributors
Copy link
Contributor

@hyochan

@hankkuu already contributed before to code

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🍗 enhancement New feature or request 🎯 feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments