Skip to content

Add group view of public models#383

Merged
emmyoop merged 8 commits intomainfrom
er/ct-2202-group-view
Feb 28, 2023
Merged

Add group view of public models#383
emmyoop merged 8 commits intomainfrom
er/ct-2202-group-view

Conversation

@emmyoop
Copy link
Member

@emmyoop emmyoop commented Feb 28, 2023

resolves #379

Description

Adds a new tab to the left nav that lists the public models by group.

Screen Shot 2023-02-28 at 9 57 36 AM

Note: I also removed some console logging to reduce the noise.

Checklist

@cla-bot cla-bot bot added the cla:yes label Feb 28, 2023
@github-actions
Copy link
Contributor

Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide.

Comment on lines +98 to +99
on: 'icn-filter',
off: 'icn-filter'
Copy link
Member Author

Choose a reason for hiding this comment

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

Using the same values here means they just won't change when the group is expanded. There was no preexisting icn-filter-on. This bring the most value for now.

@emmyoop emmyoop requested review from MichelleArk and stu-k February 28, 2023 16:06
})
});

var groups = _.sortBy(_.values(groups), 'name');
Copy link
Contributor

Choose a reason for hiding this comment

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

Since groups is an object, sorting it seems a bit odd since objects are likened to dicts in python. If you wanted a sorted list of keys from groups, I'd do something like Object.keys(groups).sort() then use this sorted array of keys to access groups.

Copy link
Member Author

Choose a reason for hiding this comment

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

This sorts the groups by the name value.

@emmyoop emmyoop force-pushed the er/ct-2202-group-view branch from 66dfcac to 191c3e4 Compare February 28, 2023 20:31
@emmyoop emmyoop requested a review from stu-k February 28, 2023 20:38
@emmyoop
Copy link
Member Author

emmyoop commented Feb 28, 2023

Screen Shot 2023-02-28 at 2 28 39 PM

@emmyoop emmyoop merged commit 24d9b65 into main Feb 28, 2023
@emmyoop emmyoop deleted the er/ct-2202-group-view branch February 28, 2023 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CT-2202] Add a view of all public models with the same group

2 participants