Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
dc61b5ca
Commit
dc61b5ca
authored
7 years ago
by
Kyle Doherty
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
X-ray preview banner (#6051)
* add preview banner * add icon / survey link
parent
da3dac94
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/src/metabase/xray/components/PreviewBanner.jsx
+12
-0
12 additions, 0 deletions
frontend/src/metabase/xray/components/PreviewBanner.jsx
frontend/src/metabase/xray/components/XRayLayout.jsx
+6
-2
6 additions, 2 deletions
frontend/src/metabase/xray/components/XRayLayout.jsx
with
18 additions
and
2 deletions
frontend/src/metabase/xray/components/PreviewBanner.jsx
0 → 100644
+
12
−
0
View file @
dc61b5ca
import
React
from
'
react
'
import
Icon
from
'
metabase/components/Icon
'
const
SURVEY_LINK
=
'
https://docs.google.com/forms/d/e/1FAIpQLSc92WzF76ViiT8l4646lvFSWejNUhh4lhCSMXdZECILVwJG2A/viewform?usp=sf_link
'
const
PreviewBanner
=
()
=>
<
div
className
=
"full py2 flex align-center justify-center full md-py3 text-centered text-slate text-paragraph bg-white border-bottom"
>
<
Icon
name
=
'beaker'
size
=
{
28
}
className
=
"mr1 text-brand"
style
=
{
{
marginTop
:
-
5
}
}
/>
<
span
>
Welcome to the x-ray preview! We'd love
<
a
className
=
"link"
href
=
{
SURVEY_LINK
}
target
=
"_blank"
>
your feedback.
</
a
></
span
>
</
div
>
export
default
PreviewBanner
This diff is collapsed.
Click to expand it.
frontend/src/metabase/xray/components/XRayLayout.jsx
+
6
−
2
View file @
dc61b5ca
import
React
from
'
react
'
import
{
withBackground
}
from
'
metabase/hoc/Background
'
import
PreviewBanner
from
'
metabase/xray/components/PreviewBanner
'
// A small wrapper to get consistent page structure
export
const
XRayPageWrapper
=
withBackground
(
'
bg-slate-extra-light
'
)(({
children
})
=>
<
div
className
=
"XRayPageWrapper wrapper pb4 full-height"
>
{
children
}
<
div
className
=
"full-height full"
>
<
PreviewBanner
/>
<
div
className
=
"XRayPageWrapper wrapper pb4 full-height"
>
{
children
}
</
div
>
</
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