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

Update Formantic-UI to newest version (2.9+) #2253

Closed
robyngit opened this issue Jan 25, 2024 · 0 comments · Fixed by #2477
Closed

Update Formantic-UI to newest version (2.9+) #2253

robyngit opened this issue Jan 25, 2024 · 0 comments · Fixed by #2477
Assignees
Labels
ADC CI-15 Editing measurement semantics (ADC deliverable) arctic data center enhancement special rule UI Special interfaces used for abstracted rules in the Query Builder
Milestone

Comments

@robyngit
Copy link
Member

Formantic-UI is a community fork of Semantic-UI, which we use mainly for the searchable dropdown interfaces (e.g. in the query builder). We are currently using Formantic v 2.8.6 released in June 2020. The latest version is 2.9.3 released in September 2023. It not only has a number of bug fixes, but also a new dropdown feature which will help us adapt dropdowns developed for the query builder to be used in other parts of MetacatUI (see #1693 and #1654).

In initial tests, there seem to be more breaking changes than listed in the changelog. For example, the dropdown's onChange event now happens before the onLabelCreate event, which causes errors in how we're using the element. Changes to the associated Formantic CSS files causes the dropdowns to be irregularly sized and positioned. We'll need to spend some time to figure out how to fix these issues, and any others that come up in testing.

@robyngit robyngit added enhancement special rule UI Special interfaces used for abstracted rules in the Query Builder arctic data center ADC CI-15 Editing measurement semantics (ADC deliverable) labels Jan 25, 2024
@robyngit robyngit added this to the 2.28.0 milestone Jan 25, 2024
@robyngit robyngit self-assigned this Jan 25, 2024
robyngit added a commit that referenced this issue Jan 25, 2024
- Update dropdown.min.js to 2.9.3
- Update SearchableSelectView to accommodate change in order of onLabelCreate and onChange events
- Still need to address new errors
- Still need to update transition.min.js, api.min.js, and associated CSS files

Issue #2253
@robyngit robyngit modified the milestones: 2.28.0, 2.29.0 Feb 8, 2024
@robyngit robyngit modified the milestones: 2.29.0, 2.30.0 May 6, 2024
robyngit added a commit that referenced this issue Jun 5, 2024
- Update dropdown.min.js to 2.9.3
- Update SearchableSelectView to accommodate change in order of onLabelCreate and onChange events
- Still need to address new errors
- Still need to update transition.min.js, api.min.js, and associated CSS files

Issue #2253
@robyngit robyngit modified the milestones: 2.30.0, 2.31.0 Jun 25, 2024
robyngit added a commit that referenced this issue Jul 2, 2024
robyngit added a commit that referenced this issue Jul 2, 2024
@robyngit robyngit linked a pull request Jul 2, 2024 that will close this issue
@robyngit robyngit removed a link to a pull request Jul 2, 2024
@robyngit robyngit linked a pull request Jul 2, 2024 that will close this issue
robyngit added a commit that referenced this issue Jul 3, 2024
robyngit added a commit that referenced this issue Jul 15, 2024
- To hold model logic that is currently in the SearchableSelectViews

Issue #2253
robyngit added a commit that referenced this issue Jul 15, 2024
- The following SearchableSelectView options are now handled by the SearchSelect model: 'allowMulti', 'allowAdditions', 'clearable', 'submenuStyle', 'hideEmptyCategoriesOnSearch', 'selected', 'options'
- WIP: Still need to move more logic from view to model

Issue #2253
robyngit added a commit that referenced this issue Jul 17, 2024
- separator and menu style changes are now handled by the SearchSelect model.

Issue #2253
robyngit added a commit that referenced this issue Jul 17, 2024
- separator and menu style changes are now handled by the SearchSelect model.

Issue #2253
robyngit added a commit that referenced this issue Jul 17, 2024
- Further modularize the SearchableSelect view by creating a view for the separator elements that listens to and updates the SearchSelect model

Issue #2253
robyngit added a commit that referenced this issue Jul 22, 2024
- In prep for updating Formantic UI, clean up the searchableSelectView
- Move formantic UI call backs into their own function
- Move classes to constants
- Break methods down into smaller methods
- Fix JSdocs

Issue #2253
robyngit added a commit that referenced this issue Jul 22, 2024
Misc updates to make the code more DRY

Issue #2253
robyngit added a commit that referenced this issue Jul 22, 2024
- Add the newest Formantic UI popup module which is very small
- Use in place of Bootstrap tooltip module in SearchableSelectView
- Using this module instead of bootstrap simplifies adding & properly removing tooltips. We can start using this module where we are having issues with the Bootstrap tooltips in other places (see tagged issues below).

Issues #2253, #2319, #1733, #1694, #1682
robyngit added a commit that referenced this issue Jul 23, 2024
- The QueryFieldSearchSelect model handles manipulating the Solr Query Field options for the QueryFieldSeachSelect view
- Move inputLabel and placeHolder text to Search Select models
- Adapt Query Field tooltips to semantic UI popup module
- Simplify the Search Selects code where possible

Issue #2253
robyngit added a commit that referenced this issue Jul 23, 2024
robyngit added a commit that referenced this issue Jul 23, 2024
robyngit added a commit that referenced this issue Jul 24, 2024
robyngit added a commit that referenced this issue Jul 24, 2024
robyngit added a commit that referenced this issue Jul 24, 2024
robyngit added a commit that referenced this issue Jul 24, 2024
And fix bugs; simplify the search select

Issue #2253
robyngit added a commit that referenced this issue Jul 25, 2024
Include README on how to update moving forward

Issue #2253
robyngit added a commit that referenced this issue Jul 25, 2024
robyngit added a commit that referenced this issue Jul 25, 2024
@robyngit robyngit closed this as completed Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ADC CI-15 Editing measurement semantics (ADC deliverable) arctic data center enhancement special rule UI Special interfaces used for abstracted rules in the Query Builder
Development

Successfully merging a pull request may close this issue.

1 participant