Skip to content

Resolve: feature/789-transect-specific-species-favourites-add-all

Closes #789 (closed)

In the initial cleanup some issues were addressed:

  • Align top button layout to design specification (v-autocomplete below add button), but without jumping
  • Extracted SpeciesAutocomplete in own component
  • Remove autocomplete ref and toggleDisplayingAutocomplete() as they’re not needed any more
  • Remove this.rowId and this.selectedSpecies variables (not needed)
  • Fixed bug, where focusNextCell with manually disabled rows results in unexpected behavior
  • Removed favourite property from observationTableRow (not needed)
  • Remove $refs type errors in TransectInspectionTable
  • Adjust sort function: Make it type safe and bug free, make sure only sortable columns are sortable, make sort direction indicating caret in table header independent of other columns; remove currentSortCol and currentSortDirection as they are insufficient and not needed any longer (replaced by sortDirections)
  • Remove this.pageNumber as it’s not used (in an unpaginated table)
  • Move variables that are exclusively used in TransectInspectionTableCell into that component(fileUploadMode, fileUploadFileType, uploadToRestrictedBucket)
  • Added a close trigger on the stageStatus select-chips in TransectInspectionCellItem
  • Reduce redundancy
  • Improve type safety

Added functionality:

  • An extracted SpeciesAutocomplete component
  • Readonly star/favourite icons in the SpeciesAutocomplete-Dropdown
  • An inline button for adding all favourite species to the table
  • The AddObservationTableRow-function now checks, if a row with the selected species already exists. If so focus the imago-input of that species, else add that row. (To prevent doubled species rows)
  • Unit Tests for the SpeciesAutocomplete component
Edited by Michael Voigt

Merge request reports