Closed (fixed)
Project:
Entity Browser
Version:
8.x-1.x-dev
Component:
Selection display plugins
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
31 Oct 2015 at 17:25 UTC
Updated:
16 Feb 2016 at 21:04 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
CTaPByK commentedI'm already on EB UI so i will try to make this plugin.
Comment #3
CTaPByK commentedOk i make new pull request for this. It is not done yet, it's just a start.
https://github.com/drupal-media/entity_browser/pull/138
Comment #4
slashrsm commentedStill in progress.
Comment #5
CTaPByK commentedI make another commit where i try to make some progress with that, it is not over yet.
Comment #6
CTaPByK commentedHere is another commit for this plugin, we have now list of selection, button for remove is not done.
https://github.com/drupal-media/entity_browser/pull/138 (list of selected)
Comment #7
slashrsm commentedStill work to do.
Comment #8
CTaPByK commentedI make new commit for plugin, i hope here is drag & drop reordering of selected is fixed.
https://github.com/drupal-media/entity_browser/pull/138/commits
Comment #9
CTaPByK commentedHere is another commit and i fixed reordering and removing entities.
https://github.com/drupal-media/entity_browser/pull/138/commits
Comment #10
slashrsm commentedFew comments on pull.
Comment #11
CTaPByK commentedI make some commit for quick review after that i will continue.
Comment #12
CTaPByK commentedOk here is new commit, this one is fixing some form structure and sorting.
https://github.com/drupal-media/entity_browser/pull/138/commits
Comment #13
slashrsm commentedReordering is definitely not working correctly.
To reproduce 1:
- enable entity_browser_example
- navigate to /node/add/entity_browser_test
- Open first "Files" fieldset
- Click on Select entities
- Select few files to upload
- Click "Select"
- Files appear listed below
- Reorder listing
- Click "Use selected"
- Expected behaviour: Files appear reordered outside of entity browser
- Actual behaviour: Files appear in original order (how they were uploaded)
To reproduce 2:
- enable entity_browser_example
- navigate to /node/add/entity_browser_test
- Open first "Files" fieldset
- Click on Select entities
- Select few files to upload
- Click "Select"
- Files appear listed below
- Reorder listing
- Upload few more files
- Click "Select"
- Expected behaviour: Selection displays initially uploaded files reordered following by files uploaded in 2nd step
- Actual behaviour: Original files appear in original order (how they were uploaded) following by files uploaded in 2nd step
Comment #14
CTaPByK commentedi hope i fixed 1. case with this commit https://github.com/drupal-media/entity_browser/pull/138/commits
Comment #15
slashrsm commentedNow I experience a different problem:
To reproduce:
- enable entity_browser_example
- navigate to /node/add/entity_browser_test
- Open first "Files" fieldset
- Click on Select entities
- Select few files to upload
- Click "Select"
- Files appear listed below
- Upload few more files
- Click "Select"
- Expected behaviour: Files from both steps appear in the listing
- Actual behaviour: Only files from first step appear in the listing
Comment #16
CTaPByK commentedProblems with continuous selection is fixed, i mention one problem more and i comment on pull.
https://github.com/drupal-media/entity_browser/pull/138/commits
Comment #17
slashrsm commentedLooks very good now. Just few suggestions for clean-ups on pull.
When we merge this we'll create two follow-ups:
1. Add sane default styling to Multi step selection display
2. Allow for entities in Multi step selection display to be rendered other than with labels. Possibly re-using entity browser field widget displays.
Comment #18
CTaPByK commentedClean ups and refactoring are done.
https://github.com/drupal-media/entity_browser/pull/138/commits
Comment #20
slashrsm commentedI committed slightly updated patch. Refactored reordering logic a bit to make it more readable and with less redundant code.
Attaching interdiff with last state of the pull request and patch that ended up going in.
Thank you!
Comment #21
slashrsm commentedFollow-ups:
- #2661442: Provide sane default styling for Multi step selection display
- #2661446: Use FieldWidgetDisplay plugins to display entities in Multi step selection display