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

1583 Frontend tour #2112

Merged
merged 6 commits into from
Dec 5, 2024
Merged

1583 Frontend tour #2112

merged 6 commits into from
Dec 5, 2024

Conversation

galethil
Copy link
Collaborator

@galethil galethil commented Dec 2, 2024

Checklist

  • I have followed (at least) the PR section of the contributing guide.
  • I fixed all necessary PR warnings
  • The commit history is clean
  • The E2E tests are passing
  • If possible, the issue has been divided into more subtasks
  • I did a self review before requesting a review from another team member

Description

How to test

  1. Open main page
  2. Open main menu
  3. Click on "Start tour"
  4. Follow instructions
  5. Try different start points, go there and back, try to break it :)

Closes #1583

Copy link

github-actions bot commented Dec 2, 2024

Warnings
⚠️ No CHANGELOG added.
⚠️ There were changes in the frontend, but no E2E-test was added or modified!
⚠️ A new TODO was added.

Generated by 🚫 dangerJS against 7aebbc9

@MartinJurcoGlina MartinJurcoGlina self-requested a review December 2, 2024 13:24
@MartinJurcoGlina MartinJurcoGlina self-assigned this Dec 2, 2024
@MartinJurcoGlina
Copy link
Collaborator

any plans adding translations?

line-height: 1.5;
color: #333;
min-width: 400px;
min-width: 200px;
Copy link
Collaborator

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;
Copy link
Collaborator

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>
Copy link
Collaborator

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>
Copy link
Collaborator

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"
Copy link
Collaborator

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.",
Copy link
Collaborator

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(() => {
Copy link
Collaborator

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(() => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clear timeout in return

@openkfwCI
Copy link

openkfwCI commented Dec 5, 2024

NotesTime
Note for Reviewer: E2E tests on pipeline 61388 on remote server succeededThu, 05 Dec 2024 14:27:00 +0000

Generated by E2E-Test

@MartinJurcoGlina MartinJurcoGlina merged commit 628b3eb into main Dec 5, 2024
30 checks passed
@MartinJurcoGlina MartinJurcoGlina deleted the 1583-tour branch December 5, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve UI/UX (esp. for new users)
4 participants