-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Mention username who added project in a team #5128
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -315,15 +315,17 @@ export default function NewProject() { | |
<div key={`repo-${index}-${r.account}-${r.name}`} className="flex p-3 rounded-xl hover:bg-gray-100 dark:hover:bg-gray-800 focus:bg-gitpod-kumquat-light transition ease-in-out group" > | ||
|
||
<div className="flex-grow"> | ||
<div className="text-base text-gray-900 dark:text-gray-50 font-medium rounded-xl whitespace-nowrap">{toSimpleName(r.name)}</div> | ||
<div className={"text-base text-gray-900 dark:text-gray-50 font-medium rounded-xl whitespace-nowrap" + (r.inUse ? " text-gray-400 dark:text-gray-500" : "text-gray-700")}>{toSimpleName(r.name)}</div> | ||
<p>Updated {moment(r.updatedAt).fromNow()}</p> | ||
</div> | ||
<div className="flex justify-end"> | ||
<div className="h-full my-auto flex self-center opacity-0 group-hover:opacity-100"> | ||
<div className="h-full my-auto flex self-center opacity-0 group-hover:opacity-100 items-center mr-2 text-right"> | ||
{!r.inUse ? ( | ||
<button className="primary" onClick={() => setSelectedRepo(r)}>Select</button> | ||
) : ( | ||
<p className="my-auto">already taken</p> | ||
<p className="text-gray-500 font-medium"> | ||
@{r.inUse.userName} already<br/>added this repo | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion: Re-posting from #5128 (comment).
Since users per instance are publicly accessibly this could save users from the mundane task of copying their username to reach out, etc. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mentioning here for reference - No need to implement before merging this PR:
gtsiolis marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</p> | ||
)} | ||
</div> | ||
</div> | ||
|
Uh oh!
There was an error while loading. Please reload this page.