Skip to content

[dashboard] Improve and fix workspace details on workspace list #3627

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

Merged
merged 1 commit into from
Mar 29, 2021

Conversation

svenefftinge
Copy link
Member

@svenefftinge svenefftinge commented Mar 28, 2021

  • Show hover
  • fix navigation issues
Untitled.mov

@svenefftinge
Copy link
Member Author

svenefftinge commented Mar 28, 2021

/werft run

👍 started the job as gitpod-build-se-workspace-entries.2

@svenefftinge
Copy link
Member Author

svenefftinge commented Mar 28, 2021

/werft run

👍 started the job as gitpod-build-se-workspace-entries.3

@svenefftinge svenefftinge force-pushed the se/workspace-entries branch from 90f9d41 to c237195 Compare March 28, 2021 14:44
@svenefftinge svenefftinge requested a review from gtsiolis March 28, 2021 14:46
@svenefftinge svenefftinge marked this pull request as ready for review March 28, 2021 14:48
@svenefftinge
Copy link
Member Author

svenefftinge commented Mar 29, 2021

/werft run

👍 started the job as gitpod-build-se-workspace-entries.5

@gtsiolis
Copy link
Contributor

gtsiolis commented Mar 29, 2021

/werft run

👍 started the job as gitpod-build-se-workspace-entries.6

@gtsiolis
Copy link
Contributor

gtsiolis commented Mar 29, 2021

Looking at this now! 👀

Copy link
Contributor

@gtsiolis gtsiolis left a comment

Choose a reason for hiding this comment

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

<div className="text-sm text-gray-400 truncate">{moment(WorkspaceInfo.lastActiveISODate(desc)).fromNow()}</div>
<div className="flex w-2/12 self-center">
<Tooltip content={`Created ${moment(desc.workspace.creationTime).fromNow()}`}>
<div className="text-sm w-full text-gray-400 truncate">{moment(WorkspaceInfo.lastActiveISODate(desc)).fromNow()}</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: It's safe to remove the cursor pointer here. WDYT?

<div className={stateClassName}>
&nbsp;
</div>
<Tooltip content={state}>
Copy link
Contributor

Choose a reason for hiding this comment

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

issue: Looks great! The lowercase stopping state is coming from the backend, right? Worth opening a follow up issue to update this to Stopping if possible? WDYT?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I can do a translation in this PR already.

<div className={stateClassName}>
&nbsp;
</div>
<Tooltip content={state}>
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: It's safe to remove the cursor pointer here. WDYT?

</div>
<div className="flex flex-col w-3/12">
<div className="font-medium text-gray-800 truncate">{ws.id}</div>
<a href={project ? 'https://' + project : undefined}><div className="text-sm overflow-ellipsis truncate text-gray-400">{project || 'Unknown'}</div></a>
<a href={startUrl.toString()}><div className="font-medium text-gray-800 truncate hover:text-blue-500">{ws.id}</div></a>
Copy link
Contributor

Choose a reason for hiding this comment

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

thought: The idea was to have a rounded background on hover as in the pending changes column. Blue is not a color we've used for links elsewhere but let's get this is and fine tune within this week.

Copy link
Member Author

Choose a reason for hiding this comment

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

We decided to go with blue-600.

content: string;
}

function Tooltip(props: TooltipProps) {
Copy link
Contributor

Choose a reason for hiding this comment

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

praise: Welcome, tooltip component! 🎈

Copy link
Member Author

Choose a reason for hiding this comment

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

👋

- added tooltips
- removed <a/> around entire element
- aded links and hover effects on individual elements
@svenefftinge svenefftinge force-pushed the se/workspace-entries branch from 12f256f to 0622f16 Compare March 29, 2021 10:52
@svenefftinge
Copy link
Member Author

svenefftinge commented Mar 29, 2021

/werft run

👍 started the job as gitpod-build-se-workspace-entries.9

@svenefftinge svenefftinge merged commit 7515590 into main Mar 29, 2021
@svenefftinge svenefftinge deleted the se/workspace-entries branch March 29, 2021 11:54
@gtsiolis gtsiolis added this to the March 2021 milestone Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants