Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
Frontend V2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GraphPolaris
Frontend V2
Commits
eca2fb10
Commit
eca2fb10
authored
1 year ago
by
Vink, S.A. (Sjoerd)
Browse files
Options
Downloads
Patches
Plain Diff
feat(visManager): tooltips
parent
598e223b
No related branches found
No related tags found
2 merge requests
!135
geo intergation
,
!129
Feat/visManager
Pipeline
#131232
passed
1 year ago
Stage: tag-release
Stage: get-release-tag
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libs/shared/lib/info/infoPanel.tsx
+42
-25
42 additions, 25 deletions
libs/shared/lib/info/infoPanel.tsx
with
42 additions
and
25 deletions
libs/shared/lib/info/infoPanel.tsx
+
42
−
25
View file @
eca2fb10
import
React
,
{
useState
}
from
'
react
'
;
import
{
Button
}
from
'
../components
'
;
import
{
Button
,
Tooltip
,
TooltipContent
,
TooltipProvider
,
TooltipTrigger
}
from
'
../components
'
;
import
{
Addchart
,
Schema
as
SchemaIcon
,
Search
as
SearchIcon
}
from
'
@mui/icons-material
'
;
import
Schema
from
'
../schema/panel
'
;
import
Searchbar
from
'
./search/searchbar
'
;
...
...
@@ -13,30 +13,47 @@ export default function InfoPanel({ auth, manager }: { auth: boolean; manager: a
<
div
className
=
"info-panel w-full h-full flex"
>
<
div
className
=
"w-12 flex flex-col items-center justify-between"
>
<
div
>
<
Button
type
=
"secondary"
variant
=
"ghost"
size
=
"md"
iconComponent
=
{
<
SearchIcon
/>
}
onClick
=
{
()
=>
setTab
(
'
Search
'
)
}
additionalClasses
=
{
tab
===
'
Search
'
?
'
bg-secondary-100
'
:
''
}
/>
<
Button
type
=
"secondary"
variant
=
"ghost"
size
=
"md"
iconComponent
=
{
<
SchemaIcon
/>
}
onClick
=
{
()
=>
setTab
(
'
Schema
'
)
}
additionalClasses
=
{
tab
===
'
Schema
'
?
'
bg-secondary-100
'
:
''
}
/>
<
Button
type
=
"secondary"
variant
=
"ghost"
size
=
"md"
iconComponent
=
{
<
Addchart
/>
}
onClick
=
{
()
=>
setTab
(
'
Visualization
'
)
}
additionalClasses
=
{
tab
===
'
Visualization
'
?
'
bg-secondary-100
'
:
''
}
/>
<
TooltipProvider
delayDuration
=
{
100
}
>
<
Tooltip
>
<
TooltipTrigger
>
<
Button
type
=
"secondary"
variant
=
"ghost"
size
=
"md"
iconComponent
=
{
<
SearchIcon
/>
}
onClick
=
{
()
=>
setTab
(
'
Search
'
)
}
additionalClasses
=
{
tab
===
'
Search
'
?
'
bg-secondary-100
'
:
''
}
/>
</
TooltipTrigger
>
<
TooltipContent
side
=
{
'
right
'
}
>
Search
</
TooltipContent
>
</
Tooltip
>
<
Tooltip
>
<
TooltipTrigger
>
<
Button
type
=
"secondary"
variant
=
"ghost"
size
=
"md"
iconComponent
=
{
<
SchemaIcon
/>
}
onClick
=
{
()
=>
setTab
(
'
Schema
'
)
}
additionalClasses
=
{
tab
===
'
Schema
'
?
'
bg-secondary-100
'
:
''
}
/>
</
TooltipTrigger
>
<
TooltipContent
side
=
{
'
right
'
}
>
Database schema
</
TooltipContent
>
</
Tooltip
>
<
Tooltip
>
<
TooltipTrigger
>
<
Button
type
=
"secondary"
variant
=
"ghost"
size
=
"md"
iconComponent
=
{
<
Addchart
/>
}
onClick
=
{
()
=>
setTab
(
'
Visualization
'
)
}
additionalClasses
=
{
tab
===
'
Visualization
'
?
'
bg-secondary-100
'
:
''
}
/>
</
TooltipTrigger
>
<
TooltipContent
side
=
{
'
right
'
}
>
Visualization settings
</
TooltipContent
>
</
Tooltip
>
</
TooltipProvider
>
</
div
>
<
ColorMode
/>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment