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

fix(orchestrator):add view variables dialog #312

Merged
merged 2 commits into from
Feb 2, 2025

Conversation

LiorSoffer
Copy link
Contributor

resolve FLPATH-2001

Screenshot from 2025-01-22 17-51-52

long list case:
Screenshot from 2025-01-22 17-51-16

@rhdh-gh-app
Copy link

rhdh-gh-app bot commented Jan 22, 2025

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-orchestrator workspaces/orchestrator/plugins/orchestrator patch v2.5.1

@@ -89,7 +97,11 @@ export const WorkflowInstancePageContent: React.FC<{
);

const workflowdata = assessedInstance.instance?.workflowdata;
let instanceVariables;
let instanceVariables: {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
let instanceVariables: {
let instanceVariables: WorkflowDataDTO;

setIsVariablesDialogOpen(prev => !prev);
}, []);

const VariablesDialogContent = () => (
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: by moving this component out of this function and passing instanceVariables as its property, the code will be cleaner and the component will not be re-created with every run.

Anyway, not a big issue in that particular case.

Lior Soffer added 2 commits February 2, 2025 13:16

Verified

This commit was signed with the committer’s verified signature.
chipshort Christoph Otter
Signed-off-by: Lior Soffer <[email protected]>
fix
Signed-off-by: Lior Soffer <[email protected]>
Copy link

sonarqubecloud bot commented Feb 2, 2025

@mareklibra mareklibra merged commit 868b6d8 into redhat-developer:main Feb 2, 2025
9 checks passed
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.

None yet

2 participants