-
Notifications
You must be signed in to change notification settings - Fork 41
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
1583 Frontend tour #2112
1583 Frontend tour #2112
Conversation
any plans adding translations? |
line-height: 1.5; | ||
color: #333; | ||
min-width: 400px; | ||
min-width: 200px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which of these min-width should be used?
import "./TourWrapper.scss"; | ||
|
||
function CustomTooltip(props) { | ||
const { backProps, closeProps, continuous, index, skipProps, primaryProps, step, tooltipProps } = props; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could go directly into function definition so we know exactly what inputs to expect and no other props could sneak in
) : step.spotlightClicks ? ( | ||
<> | ||
<AdsClickIcon sx={{ fontSize: 80 }} /> | ||
<p>Click & Try</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should come from translation files
aria-labelledby="nested-list-subheader" | ||
subheader={ | ||
<ListSubheader component="div" id="nested-list-subheader"> | ||
<strong>Jump to specific chapter</strong> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be in translation files
const initialState = ({ firstProjectId, firstSubprojectId }) => { | ||
const beforeStart = [ | ||
{ | ||
navigateTo: "/projects" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/projects could be constant as it appears several times below
const steps = [ | ||
{ | ||
target: "body", | ||
content: "Welcome to TruBudget application tour.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all the content texts should come from translations
useEffect(() => { | ||
if (tourActive && !ref.current) { | ||
goToNextStepIf(); | ||
setTimeout(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
timeout should be cleared in useEffect return
useEffect(() => { | ||
if (tourActive && !ref.current) { | ||
goToNextStepIf(); | ||
setTimeout(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clear timeout in return
Generated by E2E-Test |
Checklist
Description
How to test
Closes #1583