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

Refactor annotation-tab component #242

Merged
merged 4 commits into from
Dec 13, 2022

Conversation

surchs
Copy link
Contributor

@surchs surchs commented Dec 5, 2022

Took over this PR from @jarmoza because this component was the last small component to be refactored (rest are pages and I/O things)

Note: the component tests are visually empty because the annot-tab component is just a container component for the components displayed on the annotation page.

The component now has no internal logic or state because it's child components talk directly to the store. The only thing it is passing along is the prop for the activeCategory.

Closes #207

- add a component test.
Not clear what to test here, since this no longer has any UI elements
- just make sure it mounts for now
- prop (pased from parent page) to set own category (activeCategory)
- store getter to get the correct annotation component for the activeCategory
- tests to assert over both inputs being understood right
@surchs surchs requested a review from jarmoza December 5, 2022 22:30
@surchs surchs requested a review from rmanaem December 9, 2022 16:42
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 small change and a few other comments just for discussion of the refactor of this component.

components/annot-tab.vue Outdated Show resolved Hide resolved
components/annot-tab.vue Show resolved Hide resolved
components/annot-tab.vue Show resolved Hide resolved
@surchs surchs requested a review from jarmoza December 13, 2022 13:49
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.

Looks good, @surchs. Go ahead and squash/merge.

@surchs surchs merged commit 02b5fca into dev_components_talk_to_store_directly Dec 13, 2022
@surchs surchs deleted the surchs/issue207 branch December 13, 2022 19:06
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