Skip to content

Conversation

@kamil-orwat-vmltech
Copy link
Collaborator

No description provided.

@kamil-orwat-vmltech kamil-orwat-vmltech marked this pull request as ready for review April 29, 2025 13:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds support for new argument types—slider, color, and range—to both the frontend and backend code. Key changes include updates to type definitions and helper functions in api.types.ts, the addition of new UI components for slider, color, and range arguments in CodeArgumentInput.tsx, and corresponding new snippet and Java classes for these argument types.

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
ui.frontend/src/utils/api.types.ts Updated ArgumentType and ArgumentValue unions with SLIDER, COLOR, and RANGE types and added type definitions and guards
ui.frontend/src/components/CodeArgumentInput.tsx Added new Controller blocks for slider, color, and range arguments
ui.content/.../argument/*.yml New snippets added for slider, color, and range arguments
core/src/main/java/com/vml/es/aem/acm/core/code/arg/*.java Introduced new argument classes for slider, range, and color
core/src/main/java/com/vml/es/aem/acm/core/code/Arguments.java & ArgumentType.java Extended APIs to support new argument types

Copy link
Collaborator

@krystian-panek-vmltech krystian-panek-vmltech left a comment

Choose a reason for hiding this comment

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

please address comments

this.display = Display.SLIDER;
}

public void slider(BigDecimal min, BigDecimal max) {
Copy link
Collaborator

@krystian-panek-vmltech krystian-panek-vmltech May 12, 2025

Choose a reason for hiding this comment

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

will it work with ints, doubles, strings when passed from groovy?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

nope, only decimals, but I think it's expected if we want type safety?

@@ -1,10 +1,32 @@
import { Checkbox, CheckboxGroup, DatePicker, Flex, Item, ListView, NumberField, Picker, Radio, RadioGroup, Switch, TextArea, TextField, View } from '@adobe/react-spectrum';
import {
Copy link
Collaborator

Choose a reason for hiding this comment

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

sh taskw develop:frontend:format

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's not formatting idk why

@krystian-panek-vmltech krystian-panek-vmltech merged commit 634f478 into main May 15, 2025
1 check 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.

3 participants