8000 Slider, range and color arguments by kamil-orwat-vmltech · Pull Request #82 · wttech/acm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Slider, range and color arguments #82

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

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

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 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

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

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.

2 participants
0