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

Introduce stepper dialog #934

Open
wants to merge 17 commits into
base: development
Choose a base branch
from
Open

Conversation

sven1103
Copy link
Contributor

A stepper dialog (also known as wizard), contains at least two steps that are displayed consecutively to the user and ask them for input. They are usually applied when the user input is more complex, is conditionally chained, or can be separated contextually into logical steps.

This contribution introduces a stepper dialog component, that is easy to build and extend, and simplifies the stepper dialog creation.

@sven1103 sven1103 changed the base branch from main to development November 29, 2024 15:23
@sven1103 sven1103 linked an issue Nov 29, 2024 that may be closed by this pull request
3 tasks
@sven1103 sven1103 marked this pull request as ready for review December 10, 2024 08:31
@sven1103 sven1103 requested a review from a team as a code owner December 10, 2024 08:31
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Copy link
Contributor

@Steffengreiner Steffengreiner left a comment

Choose a reason for hiding this comment

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

Easy to understand, Works and looks nice! Well done 👍 (I have some minor questions as always 🧠 though)

Comment on lines +5 to +11
/**
* <b><class short description - 1 Line!></b>
*
* <p><More detailed description - When to use, what it solves, etc.></p>
*
* @since <version tag>
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing JD.

Comment on lines +30 to +32
if (steps.isEmpty()) {
throw new IllegalArgumentException("Steps cannot be empty");
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it make sense to allow a list of steps with only one steps here? 🤔


private final List<String> steps;

private StepperDisplay(StepperDialog stepperDialog, List<String> stepNames) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason, why the stepNames are provided as strings? I would have expected, that the stepnames are extracted from the list of steps contained in the provided stepper dialog 🤔

Comment on lines +1 to +2
# Support for editing Flow views with Copilot
com.vaadin.experimental.copilotFlow=true
Copy link
Contributor

Choose a reason for hiding this comment

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

What's happening here?

Comment on lines +1 to +9
import { UserConfigFn } from 'vite';
import { overrideVaadinConfig } from './vite.generated';

const customConfig: UserConfigFn = (env) => ({
// Here you can add custom Vite parameters
// https://vitejs.dev/config/
});

export default overrideVaadinConfig(customConfig);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we could think about including the dev.bundle, prod.bundle and vite.config.ts file in the gitignore file, since they have to be rebuilt during development anyway 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Functional CSS and Java code for dialogs
2 participants