Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@subdavis
Copy link
Contributor

@subdavis subdavis commented May 9, 2022

Summary

  • Makes membership ranges editable
  • Adds button for setting range to current frame
  • Fixes some shenanigans with imports. Reminder that all code in src/ needs to use relative imports in order to build the library correctly.
  • Removes TypeList.vue because it was replaced by FilterList.vue
  • Hooks up KPF support in desktop
  • Fixes desktop icon for win/mac/linux by putting it in the standard location build/icon.png
  • refactor useVirtualScroll so I can use it in both virtual-scroll-list components.

fixes #850

@subdavis subdavis requested a review from BryonLewis May 13, 2022 17:17
@subdavis
Copy link
Contributor Author

I think this is ready for review. @BryonLewis PTAL.

Copy link
Collaborator

@BryonLewis BryonLewis left a comment

Choose a reason for hiding this comment

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

The UI features are really nice. I like the range selector and how that works especially with taking current frame and allowing the multiple frame ranges.

There are a few things that don't fit directly into code comments so I'm going to list them below:

  • The dropdown for group type changes in the group list needs to be disabled in ReadOnly Mode
  • I think there may still be a reason to view detailed ranges and information about a group while in ReadOnly mode. The current implementation locks out viewing that info because selecting a group has the immediate effect of putting it into edit mode. I think the act of editing ranges and selecting new tracks for a group should be the things locked out during edit mode.
  • LOW PRIORITY QUESTION: Wondering if the Group Event Viewer should handle gaps like it does for interpolation when a group is selected?
  • Within useModeManager.ts - handleUnstageFromMerge if you have a track and group selected with only the track as a member and delete the track you will get conflicts as it tries to remove a member from a group that has already been deleted. The deletion of a track should probably begin with deselecting the group at the same time.
  • Splitting of tracks within a group can result in some weird behavior. It may be best to not split tracks that are in groups and require the track to be clean (not in a group) before splitting.
  • Deletion of groups through the group type list needs to be clearer in the text about what it is doing. Currently it's using the same text as deleting tracks of visible types when really you're deleting the selected/visible groups and not the tracks themselves.

Comment on lines 244 to 246
if (readonlyState.value) {
prompt({ title: 'Read Only Mode', text: 'This Dataset is in Read Only mode, no edits can be made.' });
} else {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This prevents detailed viewing of the groups while in readOnly mode.
I'm thinking the readonly mode should be handled in the selecting/modification in the TrackDetailsPanel.vue file as well as selecting to add new tracks to the group?

@subdavis subdavis force-pushed the edit-activity-groups-2 branch from dc810d7 to 2ad74dd Compare May 18, 2022 15:16
@subdavis subdavis requested a review from BryonLewis May 18, 2022 18:16
@subdavis
Copy link
Contributor Author

subdavis commented May 18, 2022

@BryonLewis I think I responded to everything except the below

LOW PRIORITY QUESTION: Wondering if the Group Event Viewer should handle gaps like it does for interpolation when a group is selected?

IDK, maybe. I want to get feedback from Kellie first.

I also added a new dataset to the integration tests for groups (needs to be downloaded) and the DIVE json file is now part of export->everything because otherwise there would be no way to export group annotations (VIAME csv doesn't support them).

Copy link
Collaborator

@BryonLewis BryonLewis left a comment

Choose a reason for hiding this comment

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

The <Type-Picker> in the also needs the read-only-mode attribute applied to prevent changing group types when in readOnlyMode.

Other than that everything mentioned seems to be resolved.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

LGTM, nice work on this whole thing and creating a UI to make sense of it.

Copy link
Collaborator

@BryonLewis BryonLewis left a comment

Choose a reason for hiding this comment

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

Let's approve this with the Right account.

@subdavis subdavis merged commit 3946ba4 into 1.9 May 18, 2022
@subdavis subdavis deleted the edit-activity-groups-2 branch May 18, 2022 21:14
subdavis added a commit that referenced this pull request May 19, 2022
* Progress on activity group editing

* Progress on correct editing behavior

* Finalize editing

* Documentation updates

* Update documentation

* Add shortcut docs

* Wip

* KPF import support desktop

* icon

* Fix docs add tests

* whatdo

* Remove multi-file inputs

* Upgrade node for electron-builder

* Respond to comments

* Backend fixes

* Add readOnlyMode to TypePicker in GroupList
subdavis added a commit that referenced this pull request May 25, 2022
* Activity Group Support (#1205)

* Activity Groups

* Move Image Enhancement

* wip

* GroupItem

* Refactor Filter Controls

* Complete backend support for activity groups with migrations

* Refactor of GroupStore, Filter Controls, Filter List

* Group filtering support

* test fixes

* sidebar

* sidebar update

* Respond to comments

* Fix tests

* fixing final test (#1234)

Co-authored-by: BryonLewis <[email protected]>

* Release 1.9.0-beta.1

* Group Creation (#1237)

* WIP Group Creation

* Edit type and select.  Refactor TypePicker

* Progress toward creation and editing of activity groups

* Group membership add and remove

* Update package.json

* Complete Activity Group Support (#1238)

* Progress on activity group editing

* Progress on correct editing behavior

* Finalize editing

* Documentation updates

* Update documentation

* Add shortcut docs

* Wip

* KPF import support desktop

* icon

* Fix docs add tests

* whatdo

* Remove multi-file inputs

* Upgrade node for electron-builder

* Respond to comments

* Backend fixes

* Add readOnlyMode to TypePicker in GroupList

* Update package.json

* Include buildResources

* Server/kpf support v2 (#1235)

* Work in progress

* Finalize KPF support

* Fully move to new annotation schema in all parsers

* Liint fix

* Add extra meta in zip extraction

* Fix

* Fix merge conflict

Co-authored-by: BryonLewis <[email protected]>
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