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

Continuous value component refactor #224

Merged
merged 7 commits into from
Nov 19, 2022

Conversation

surchs
Copy link
Contributor

@surchs surchs commented Nov 10, 2022

This PR does three things:

  1. Upgrade the existing continuous-value-component to a generic component that now subsumes the functionality of the old annot-age-values component
  2. Prepares the continuous values component to respond to the upcoming store changes - in the component tests the upcoming store is mocked out
  3. Enables new functionality for the user to select the transform heuristic by hand (instead of just seeing what the tool guessed)

Closes #208

The continuous values component now displays
possible transformation heuristics it gets
from the store in a dropdown.

The user can select the correct transformation heuristic
- the component displays the heuristic selected for the active category in the store
- component displays a preview of the transformed values from the store
- the selected heuristic is emitted to the store with the active Category
This functionality is now implemented
in the more generic continuous-values-component
@surchs surchs requested a review from jarmoza November 10, 2022 23:52
@surchs
Copy link
Contributor Author

surchs commented Nov 10, 2022

@jarmoza: we're now coming to the part of the refactor where the end to end tests are actually breaking 🦀 - as they should. So to make sure that the component tests are passing, we'll have to look at the tests directly. Might be worth eventually to configure a separate action for component and e2e tests to run, so we can distinguish what is breaking

edit: you can't actually see the component tests passing, because the test run stops before that. That we should probably address a bit sooner

edit2: tracking this now in #225

@surchs surchs changed the base branch from master to dev_components_talk_to_store_directly November 10, 2022 23:55
Copy link
Contributor

@jarmoza jarmoza left a comment

Choose a reason for hiding this comment

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

@surchs One stylistic comment, one question, and then a change to use data-cy attributes instead of class selectors.

cypress/component/annot-continuous-values.cy.js Outdated Show resolved Hide resolved
@surchs
Copy link
Contributor Author

surchs commented Nov 18, 2022

Merging now with these comments addressed

@surchs surchs merged commit b6970b9 into dev_components_talk_to_store_directly Nov 19, 2022
@surchs surchs deleted the surchs-208 branch November 19, 2022 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

specify annotation-age-values component
2 participants