Skip to content
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

Add cursor to tappable things. Clean up log levels #366

Merged
merged 1 commit into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion console/client/src/features/modules/ModuleDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export function ModuleDetails() {
onClick={() => {
handleVerbClicked(verb)
}}
className='rounded bg-indigo-600 px-2 py-1 text-xs font-semibold text-white text-center
className='rounded bg-indigo-600 px-2 py-1 text-xs font-semibold text-white text-center cursor-pointer
shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600'
>
{verb.verb?.name}
Expand Down
4 changes: 2 additions & 2 deletions console/client/src/features/timeline/Timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const Timeline = () => {
'deployment',
])
const [selectedLogLevels, setSelectedLogLevels] = React.useState<number[]>([
0, 1, 5, 9, 13, 17,
1, 5, 9, 13, 17,
])

React.useEffect(() => {
Expand Down Expand Up @@ -136,7 +136,7 @@ export const Timeline = () => {
{filteredEntries.map((entry, index) => (
<li
key={entry.id.toString()}
className='relative flex gap-x-4'
className='relative flex gap-x-4 cursor-pointer'
onClick={() => handleEntryClicked(entry)}
>
<div
Expand Down
4 changes: 2 additions & 2 deletions console/client/src/features/timeline/TimelineFilterBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {ChevronDownIcon} from '@heroicons/react/20/solid'
import {Fragment} from 'react'
import {logLevelText, panelColor, textColor} from '../../utils/style.utils'

const logLevels = [0, 1, 5, 9, 13, 17]
const logLevels = [1, 5, 9, 13, 17]

type Props = {
selectedEventTypes: string[]
Expand Down Expand Up @@ -108,7 +108,7 @@ export const TimelineFilterBar = ({
name={`log-level-${level}`}
defaultValue={level}
type='checkbox'
className='h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600'
className='h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600 cursor-pointer'
checked={selectedLogLevels.includes(level)}
onChange={e =>
onLogLevelsChanged(level, e.target.checked)
Expand Down
1 change: 1 addition & 0 deletions console/client/src/features/verbs/VerbCalls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const VerbCalls: React.FC<Props> = ({module, verb}) => {
<tr
key={index}
onClick={() => handleClick(call)}
className='cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-800'
>
<td className='hidden py-4 pl-0 pr-4 sm:table-cell sm:pr-8'>
<div className='flex gap-x-3'>
Expand Down
2 changes: 1 addition & 1 deletion console/client/src/layout/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const Tabs = () => {
return (
<TabComponent
key={tab.id}
className='flex items-center mr-1 relative'
className='flex items-center mr-1 relative cursor-pointer'
as='span'
>
<span
Expand Down
2 changes: 0 additions & 2 deletions console/client/src/utils/style.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const environments = {
}

export const logLevelText = {
0: 'Default',
1: 'Trace',
5: 'Debug',
9: 'Info',
Expand All @@ -27,7 +26,6 @@ export const logLevelText = {
}

export const logLevelBadge = {
0: 'text-gray-400 bg-gray-400/10 dark:text-gray-300 dark:bg-gray-700/10',
1: 'text-blue-350 bg-blue-300/10 dark:text-blue-300 dark:bg-blue-700/10',
5: 'text-blue-350 bg-blue-400/10 dark:text-blue-300 dark:bg-blue-800/10',
9: 'text-green-600 bg-green-400/30 dark:text-green-300 dark:bg-green-700/10',
Expand Down