Skip to content

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
Steffengreiner
Steffengreiner previously approved these changes Dec 12, 2024
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? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess that is up to the developers sanity, the component can work fully functional with one step :)


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 🤔

@Steffengreiner Steffengreiner self-requested a review January 7, 2025 09:26
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.

Well done 👍

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 7, 2025

Quality Gate Failed Quality Gate failed

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

See analysis details on SonarQube Cloud

@sven1103 sven1103 merged commit 492d375 into development Jan 7, 2025
5 of 6 checks passed
@sven1103 sven1103 deleted the feature/#914-stepper-dialog branch January 7, 2025 09:27
@KochTobi KochTobi mentioned this pull request Feb 12, 2025
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

3 participants