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

feat: Add features auto-completion #127

Merged
merged 30 commits into from
Feb 15, 2024
Merged

Conversation

BertrandRenault
Copy link
Contributor

@BertrandRenault BertrandRenault commented Feb 8, 2024

close #76

Notes:

  • for Scene features, as there is often/always a default value, the auto-completion only show the current option, others options are shown if we delete current value
    image
    image

  • available values are read from tables in back, not from db.json. This could be done in a future PR, if necessary

  • (back) merge with "categories" -> related to previous, if we choose to save available values in db.json, we will refactor "categories" to be more generic

@BertrandRenault BertrandRenault added enhancement New feature or request scope: front Related to Pixano frontend scope: back Related to Pixano backend labels Feb 8, 2024
@BertrandRenault BertrandRenault added this to the Pixano 0.5.0 milestone Feb 8, 2024
@BertrandRenault BertrandRenault self-assigned this Feb 8, 2024
@BertrandRenault BertrandRenault marked this pull request as ready for review February 8, 2024 17:34
@cpvannier cpvannier changed the title Feat/auto completion feat: Add features auto-completion Feb 9, 2024
cpvannier

This comment was marked as resolved.

@BertrandRenault

This comment was marked as resolved.

@BertrandRenault

This comment was marked as resolved.

@cpvannier
Copy link
Member

I didn't remove "categories" as proposed yet, because without we can't export directly to COCO format. Need to statute about the change request first

True, this deserves its separate issue: pixano/pixano-project-manager#46

Also, regarding storing feature_values versus fetching the data with SQL requests, Jaonary suggested merging this PR as is with SQL requests only, and to look into adding a backend cache for storing data like this while the app is open, rather that writing it in the db.json files: pixano/pixano-project-manager#45

@cpvannier cpvannier added the s3 label Feb 14, 2024
@cpvannier cpvannier removed the s3 label Feb 14, 2024
@cpvannier cpvannier added the priority: high This item needs to be worked on first label Feb 14, 2024
@BertrandRenault BertrandRenault merged commit 9b0f03c into develop Feb 15, 2024
5 checks passed
cpvannier pushed a commit that referenced this pull request Feb 15, 2024
* auto-completion

* fix(front): correctly manage types from back

* add scene auto-complete

* fix adding duplicate, add scene new values

* typos + ensure different htmlElem id

* remove category, refactor code, simplify

* put categories back

* renaming

* use datasetsStore instead of dedicated store

* (back) type FeaturesValue instead of primitive type

* feat(front): Display listItems in a command component

* feat: Save before refacto

* feat: Save scene values

* feat(front): Add new component to FeatureForm

* feat(front): Add feature for scene features

* feat(front): Save autocomplete on dropdown select

* fix(front): Allow empty feature list in autocomplete

* fix(front): Do not close autocomplete list if its hovered

* feat(front): Sort list item alphabetically

* refactor(front): Rename Features components

* fix(front): move featuresValues store from datasets to itemMetas

* refactor(front): Rename features in meta object

---------

Co-authored-by: Timothee Reynaud <timothee.r@lajavaness.com>
@cpvannier cpvannier deleted the feat/auto-completion branch February 27, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority: high This item needs to be worked on first scope: back Related to Pixano backend scope: front Related to Pixano frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add autocompletion for features edition (object/scene)
3 participants