generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add titles (show on hover) to truncate-able columns in console …
…tables (#2465) The Content column in the timeline table can be truncated when the browser window is small, but doesn't display its contents on hover. #2460 --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
99d18f6
commit 4e1b001
Showing
4 changed files
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import type { DeploymentCreatedEvent } from '../../protos/xyz/block/ftl/v1/console/console_pb' | ||
|
||
export const TimelineDeploymentCreated = ({ deployment }: { deployment: DeploymentCreatedEvent }) => { | ||
const title = `Created deployment ${deployment.key} for language ${deployment.language}` | ||
return ( | ||
<> | ||
<span title={title}> | ||
Created deployment <span className='text-indigo-500 dark:text-indigo-300'>{deployment.key}</span> for language{' '} | ||
<span className='text-indigo-500 dark:text-indigo-300'>{deployment.language}</span> | ||
</> | ||
</span> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import type { DeploymentUpdatedEvent } from '../../protos/xyz/block/ftl/v1/console/console_pb' | ||
|
||
export const TimelineDeploymentUpdated = ({ deployment }: { deployment: DeploymentUpdatedEvent }) => { | ||
const title = `Updated deployment ${deployment.key} min replicas to ${deployment.minReplicas} (previously ${deployment.prevMinReplicas})` | ||
return ( | ||
<> | ||
<span title={title}> | ||
Updated deployment <span className='text-indigo-500 dark:text-indigo-300'>{deployment.key}</span> min replicas to{' '} | ||
<span className='text-indigo-500 dark:text-indigo-300'>{deployment.minReplicas}</span> (previously{' '} | ||
<span className='text-indigo-500 dark:text-indigo-300'>{deployment.prevMinReplicas}</span>) | ||
</> | ||
</span> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import type { LogEvent } from '../../protos/xyz/block/ftl/v1/console/console_pb' | ||
|
||
export const TimelineLog = ({ log }: { log: LogEvent }) => { | ||
return <span>{log.message}</span> | ||
return <span title={log.message}>{log.message}</span> | ||
} |