-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: adding collaborator via invitation link #2675
base: master
Are you sure you want to change the base?
Conversation
</div> | ||
</div> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra whitespace detected at end of line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are accessibility issues in these changes.
<span><%= t("projects.invite_link_btn") %></span> | ||
<% end %> | ||
<div class="collapse" id="multiCollapseExample2"> | ||
<textarea id="embedInviteLink" class="collaborator-invite-link-text" rows="4" cols="35"></textarea> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vedant-jain03 Why this is closed ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tachyons @pavanjoshi914 @Shivansh2407 @nitin10s Kindly Review. |
You can follow the rest conventions by tweaking the URL. Token generation should be POST /projects/:id/collaboration |
@tachyons @pavanjoshi914 Kindly review I have added a new inherited class collaboration controller and added create method under which token generation will execute |
@tachyons @pavanjoshi914 @satu0king @gr455 I have a suggestion, what if we can also change the design of showing collaborators just like showing group members. As it is space-optimized. |
Let's leave it as it is, for now, we'll revisit certain sections like these and design them appropriately. |
Sure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't work when the Project access type is Private, although I can add collaborators in Private projects by email
I think this is working, have a look: bandicam.2022-01-06.13-09-34-943.mp4 |
a7cfd55
to
bb6cd8e
Compare
Oh, I had pasted the link in an unauthenticated session (incognito). Instead of directing me to login, it just showed me the unauthorized message |
Oh 😅,so WDYT? |
@tachyons Kindly provide me feedback for this PR sir. |
5ff8f30
to
0fcd47f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are accessibility issues in these changes.
@@ -1,6 +1,6 @@ | |||
<script src="https://cdn.jsdelivr.net/bootstrap.tagsinput/0.8.0/bootstrap-tagsinput.min.js"></script> | |||
|
|||
<div id="collaboratorModal" class="modal fade" role="dialog"> | |||
<div id="collaboratorModal" class="modal fade" role="dialog" data-controller="projectCollaboration"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.
<span><%= t("projects.invite_link_btn") %></span> | ||
<% end %> | ||
<div class="collapse" id="multiCollapseExample2"> | ||
<textarea readonly="readonly" id="embedInviteLink" class="collaborator-invite-link-text" rows="4" cols="35"><%= user_project_url %>/invite/<%= @project.collaboration_token %></textarea> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.
|
87c9f44
to
79586c4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are accessibility issues in these changes.
Code Climate has analyzed commit b06392e and detected 11 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
@gr455 Any views for this PR? |
@tachyons Any feedback for this, sir? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
codeclimate warnings are closed without addressing them
Fixes #2307
Describe the changes you have made in this PR -
Screenshots of the changes (If any) -
CircuitVerse.-.Untitled.-.Google.Chrome.2021-12-06.18-03-31.mp4
Note: Please check Allow edits from maintainers. if you would like us to assist in the PR.