Skip to content

Add tags and versions to ResourceList#24

Merged
simba-git merged 12 commits intodevelopfrom
feature/simba/ResourceListData
Aug 26, 2020
Merged

Add tags and versions to ResourceList#24
simba-git merged 12 commits intodevelopfrom
feature/simba/ResourceListData

Conversation

@simba-git
Copy link

No description provided.

Simba added 12 commits July 30, 2020 20:11
The dashboard outputted a warning because we were throwing a string
rather than an Error type. We wrap it in a TypeError.
Model Features can be versioned, this allows versions to be searched and selected via the
UI.
Every resource can include an arbritrary amount of tags. These tags can
be used to search and filter resources.
This slice keeps track of which tags are active. The tag filters are
kept separate per resource type currently.
The copy function is used to make a mutable copy of the resources since
MaterialTable doesn't play well with frozen objects. It was referring
to resources directly rather than the res parameter which would fail when
resources was an empty array.
There are situations where the outer array isn't frozen but one of
the inner objects is which breaks MaterialTable. For now, its easier
to just always copy the resources to guarantee mutability.
When tags are clicked, the rows are filtered. Tag filters are scoped
to an individual resource page and are turned off by unchecking them.
TagList would fail if ActiveTags wasn't provided since it would always
check if a tag is active via the object. This fixes that.
Verify that TagList renders correctly, highlights active tags, and
calls toggleTag onClick.
We need to verify that the number of matched tags equals the number
of total selected tags, otherwise, it'll retain partial matches.
@simba-git simba-git merged commit c5303cb into develop Aug 26, 2020
@simba-git simba-git deleted the feature/simba/ResourceListData branch August 26, 2020 09:00
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.

1 participant