-
Notifications
You must be signed in to change notification settings - Fork 58
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
Input Field Enhancments #2025
Draft
capricornunicorn123
wants to merge
68
commits into
master
Choose a base branch
from
Enhancement/input-fields
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Input Field Enhancments #2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…and ConstellationInputField listeners
|
…le support with ContellationInputField
1 task
This pull request is stale because it has been open for 6 months with no activity. Consider reviewing and taking an action on this pull request. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Prerequisites
Reviewed the checklist
Reviewed feedback from the "Sonar Cloud" bot. Note that you have to wait
for the "CI / Unit Tests") to complete first. Failed Unit tests can be
debugged by adding the label "verbose logging" to the GitHub PR.
Description of the Change
This PR aims to address limitations with the current implementation of input fields in Constellation. A suite of classes will be introduced to provide a custom implementation of various input field utilized in constellation. This will provide a number of benefits including increasing reusability, increasing visual consistency and increasing the effectiveness of their use.
Each input field will be based off of a "Magic-Wand" Style input field classed as the abstract
ConstelationInputFild
This Base
ConstellationInputField
enables a rich framework for facilitating a number of use cases. These Include:ConstellationInputField
. All implementation ofConstellationInputField
's must be able to provide a list ofMenuItem
's which have a defines action that modifies the value of the Input Field if the option is selected. This allows for an implementation specific autocomplete functionality.ConstellationInputField
Following the above image, the base class can be adapted and extended to suit any input field utilized in constellation.
The following rules will be used to ensure consistent appearance and use.
Below are the new input fields and their current completion level:
Password Input -
![password](https://private-user-images.githubusercontent.com/139201011/324290242-3e4fa8ef-69a6-459d-aa7a-c8c4c4ad33c8.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzI5NDMsIm5iZiI6MTczOTE3MjY0MywicGF0aCI6Ii8xMzkyMDEwMTEvMzI0MjkwMjQyLTNlNGZhOGVmLTY5YTYtNDU5ZC1hYTdhLWM4YzRjNGFkMzNjOC5QTkc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwNzMwNDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04NDY0NTk2YmI0OWUyZTQxN2M5ZWI3MWNmNTM4Y2MzMTM2OWU1N2IwOTNkMmJkYThlMjUxMmFiMTgzYWE1ZTk1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.oY76s66xB5mRe7dyYZbnxOidJ4XyQ3zxKNeKiwECsBg)
PasswordInputField
(In Progress)Single Line Text Input -
![image](https://private-user-images.githubusercontent.com/139201011/324294171-b6890a77-b638-49eb-991f-6d1a38579abb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzI5NDMsIm5iZiI6MTczOTE3MjY0MywicGF0aCI6Ii8xMzkyMDEwMTEvMzI0Mjk0MTcxLWI2ODkwYTc3LWI2MzgtNDllYi05OTFmLTZkMWEzODU3OWFiYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwNzMwNDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04MGU2YmY3M2FhNzRlMGQ3OGRhM2I5MjhkYmZmZTY1NGMwN2MzZTMzMmRjM2IwOGNmYTc4ZGVkZTk3N2EwNzA3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.i6WlhCtcBDndt7wNqrNijTgA28meypAt6sG0nJuNPTc)
TextInputField(TextType.SINGLELINE)
(In Progress)Multi Line Text Input -
TextInputField(TextType.MULTILINE)
(In Progress)File Chooser Input -
![image](https://private-user-images.githubusercontent.com/139201011/324294326-eb65e798-05d1-4bb0-beb2-2e775a555335.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzI5NDMsIm5iZiI6MTczOTE3MjY0MywicGF0aCI6Ii8xMzkyMDEwMTEvMzI0Mjk0MzI2LWViNjVlNzk4LTA1ZDEtNGJiMC1iZWIyLTJlNzc1YTU1NTMzNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwNzMwNDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05ZDViY2EzNjU3NmM4NGJmM2FmNWRhNjc1OWEyM2YzNWJjY2ZiMTQyNTU1ZDgzMTMxYmMyMzZjMDBlZjIzOTEyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.qZNuf92DbnwgqHYgCJ3VTDaY2HRauuEewEqPLPQlX20)
FileInput(FileKind.OPEN)
(In Progress)Single Choice Input -
![image](https://private-user-images.githubusercontent.com/139201011/324294154-a62f4daf-c00d-4a68-93ca-d1f58d87b71b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzI5NDMsIm5iZiI6MTczOTE3MjY0MywicGF0aCI6Ii8xMzkyMDEwMTEvMzI0Mjk0MTU0LWE2MmY0ZGFmLWMwMGQtNGE2OC05M2NhLWQxZjU4ZDg3YjcxYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwNzMwNDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mMTcyYzdiYjJmNTJhNmUyNGUwZmYwYjI0OWVjODdiMmFjNzhjZmE0YzU5NTVlZGVkMWNhMmY0ZWNjMGI2ZTNkJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.d5y9_-zIh4-k5729LDsI8grPoIu_lau-Fmf6KBHb7lc)
ChoiceInputField(ChoiceType.SINGLE)
(Not Started)Multi Choice Input -
![image](https://private-user-images.githubusercontent.com/139201011/324294124-ead1dfd6-7c74-4f26-a219-c07eff17accb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzI5NDMsIm5iZiI6MTczOTE3MjY0MywicGF0aCI6Ii8xMzkyMDEwMTEvMzI0Mjk0MTI0LWVhZDFkZmQ2LTdjNzQtNGYyNi1hMjE5LWMwN2VmZjE3YWNjYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwNzMwNDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04NDM3NzUzNTM0NjA0MTYxM2ViNTEyZDhjZWI2ZmNmMDg4MzM4OWNkZDk5ZjlkYmEzNzc4MzZlN2U5Y2ZjMTM4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.bfp4BJ9IXi0nS922i5SGYhAJ_IUTj-NlAZuF-ZjaO0o)
ChoiceInputField(ChoiceType.MULTIPLE)
(Not Started)Color Input -
![image](https://private-user-images.githubusercontent.com/139201011/324294034-2ce4c4a4-6b61-4e71-a78a-a3024a82d08b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzI5NDMsIm5iZiI6MTczOTE3MjY0MywicGF0aCI6Ii8xMzkyMDEwMTEvMzI0Mjk0MDM0LTJjZTRjNGE0LTZiNjEtNGU3MS1hNzhhLWEzMDI0YTgyZDA4Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwNzMwNDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05OGI1MTE1ZmY0MzY0MTY5N2JmYTFmNzUzNGM2ZTExOWU4ZTFlMGUxMjYyOWU0NTRiYjlhMWQ3NWMxY2MyYzAyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.N7ZiB-KymcYQZAP8Mqq_CFVN-1-dffrG1TUoIL6kgtM)
ColorInputField
(In Progress)Number Input -
![image](https://private-user-images.githubusercontent.com/139201011/324294428-2a4c12a5-777d-46ab-92f3-70179b72d87d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzI5NDMsIm5iZiI6MTczOTE3MjY0MywicGF0aCI6Ii8xMzkyMDEwMTEvMzI0Mjk0NDI4LTJhNGMxMmE1LTc3N2QtNDZhYi05MmYzLTcwMTc5YjcyZDg3ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwNzMwNDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mYmJmMzUyOTM1NDI1MmExZGYwN2RhNDliZWQyM2VkOThjZGVlZmZlNjU4MDE2YThiMWE5NGUwYWJhZmZmNjRmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.B4w7ZiLB3NWD3YvItQ9n0vAjCcWKzVTbABTN2KupqUQ)
NumberInputField
(In Progress)Alternate Designs
Input fields have historically been extended by adding tooltips and adjacent buttons which extend the functionality of the input field. Although this approach is convenient, the intended use of this buttons is not always clear and can lead to different appearances among related input fields
Why Should This Be In Core?
Input fields are a core feature of Constellation
Benefits
Increased interface visual quality
Increasing code reusability
Increasing resilience to change by decoupling the application from external input field providers such as ControlsFX
Possible Drawbacks
Input fields are used throughout Constellation and this change will require the manual updating of each module.
Verification Process
The verification process will need to be thorough as this change has the potential to impact every view, and interactive or Data Access Plugin. In most cases the integration of the new input fields into these vies and plugins will be deliberate so the verification process of each oof these changes can be detailed on a case-by-case- basis.
Applicable Issues
#1877
#1012
#1518