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

Feat/create command for variants configuration #2446

Open
wants to merge 59 commits into
base: main
Choose a base branch
from

Conversation

ytpo-lyne
Copy link
Contributor

PR introduces create command to add Configuration for Variants Creation.

Prerequisite for:
#2172

ytpo-lyne and others added 30 commits September 10, 2024 14:51
@ytpo-lyne ytpo-lyne marked this pull request as ready for review October 8, 2024 14:26
@ytpo-lyne ytpo-lyne requested a review from a team as a code owner October 8, 2024 14:26
@@ -0,0 +1,16 @@
import type { MiddlewareConfig as PreviewConfig } from '@sap-ux/preview-middleware';

export type FioriToolsDeprecatedPreviewConfig = {
Copy link
Contributor

@heimwege heimwege Oct 9, 2024

Choose a reason for hiding this comment

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

@tobiasqueck There already exists a type that represents the deprecated config preview config in ui5-config/src/types/index.ts. That still seems to be used to generate outdated configs (see here). Do we need to address this in this PR as well? Or is this part of some generator adjustments that will come later because it seems to be used in app writer (here)?

Copy link
Contributor

Choose a reason for hiding this comment

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

Should this type (and previewConfigOptions) be moved to preview middleware?

@heimwege heimwege requested a review from a team as a code owner October 10, 2024 11:15
try {
previewMiddleware = await getPreviewMiddleware(undefined, basePath);
} catch (error) {
//todo: what to do in case there is no ui5.yaml file? try FileName.Ui5MockYaml or FileName.Ui5LocalYaml as fallback?
Copy link
Contributor

Choose a reason for hiding this comment

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

@tobiasqueck you thoughts about potential fallbacks for RTA editor path?

Copy link

sonarcloud bot commented Oct 17, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
create @sap-ux/create
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants