-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 |
...ontent/src/main/content/jcr_root/conf/acm/settings/snippet/available/core/argument/color.yml
Outdated
Show resolved
Hide resolved
...ontent/src/main/content/jcr_root/conf/acm/settings/snippet/available/core/argument/range.yml
Outdated
Show resolved
Hide resolved
core/src/main/java/com/vml/es/aem/acm/core/code/arg/RangeArgument.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/vml/es/aem/acm/core/code/arg/SliderArgument.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/vml/es/aem/acm/core/code/ArgumentType.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/vml/es/aem/acm/core/code/arg/NumberArgument.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/vml/es/aem/acm/core/code/arg/NumberArgument.java
Outdated
Show resolved
Hide resolved
...ontent/src/main/content/jcr_root/conf/acm/settings/snippet/available/core/argument/color.yml
Outdated
Show resolved
Hide resolved
...src/main/content/jcr_root/conf/acm/settings/snippet/available/core/argument/integerRange.yml
Outdated
Show resolved
Hide resolved
...src/main/content/jcr_root/conf/acm/settings/snippet/available/core/argument/integerRange.yml
Outdated
Show resolved
Hide resolved
core/src/main/java/com/vml/es/aem/acm/core/code/arg/ColorArgument.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please address comments
core/src/main/java/com/vml/es/aem/acm/core/code/arg/IntegerRangeArgument.java
Outdated
Show resolved
Hide resolved
...ontent/src/main/content/jcr_root/conf/acm/settings/snippet/available/core/argument/color.yml
Outdated
Show resolved
Hide resolved
...tent/src/main/content/jcr_root/conf/acm/settings/snippet/available/core/argument/decimal.yml
Outdated
Show resolved
Hide resolved
...src/main/content/jcr_root/conf/acm/settings/snippet/available/core/argument/decimalRange.yml
Outdated
Show resolved
Hide resolved
this.display = Display.SLIDER; | ||
} | ||
|
||
public void slider(BigDecimal min, BigDecimal max) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
No description provided.