-
- Downloads


New Collection Picker 

(#38315)




* Entity Picker Squash rough table selection. dont fire me plz make stuff prettier make mysql work in table picker make a tabbed entity picker reorganize stuff WIP collectionPicker collection picker works NextedItemPicker Styling more collectionpicker work make collectionpicker work Single Picker UI adding scroll left Tabbed UI add search fix key? Splitting up components yolo animation isolate search input reorg and fix some types nested item picker unit test types are much better scroll left when needed on mount handle snippets and some other stuff Modal unit tests Modal transition, default options adjustments, fixing endless searching allow all personal collections fix some types createNewCollection disable collection creation for read-only collections using entity loaders goodbye refs started working on types. Still some stuff to do I give up. Ryan help plz wip wip more wip fix stuff cool stuff cool stuff cool stuff more stuff fix backwards traversal use effective_location testing helpers # Conflicts: # frontend/src/metabase/common/components/EntityPicker/components/NestedItemPicker/NestedItemPicker.tsx dont use entity picker for move modal yet add a logical ui location takes a location like `/1/2/3/4/` and returns a "logical" ui location that includes only collections that the user can see. For instance, in the above location, if the user lacked permissions to collection 3, they could still see collection 4 but would see it as a child of 2, so it's effective ui location would be `/1/2/4/` remove location from other model types ie cards, snippets, etc would have a nil location. just remove test for ui logical location switch to existing `effective_location` had reinvented the wheel. There's already an effective_location which does exactly what we want. Add can-write? for UI concerns want it for collection picker UI info (remove or show greyed out). Tests are failing but want for them to start {:test 35, :pass 270, :fail 14, :error 0, :type :summary} better personal collection pathing no root permissions Basic version of Models in Browse Data (#37707) * Add Models and Databases tabs * Models are organized by collection * Exclude items in personal collections * Simplify BrowseHeader dashboard spec passing Initial collection selected infinite scroll right, fixing rebase issue native and models e2e getting better. remember to look at moderator icon styling adding search result filter, collection lookup for new collection modal use correct icons for special things top folder for snippets Endless API requestsvirtualize lists e2e tests are.... green?? now green e2e plz UI adjustments, empty collection state Lots of moving around. Types should be fairly happy, and started writing unit tests happy-ish unit tests? fix backend tests remove test/table pickers nicer loader use personal endpoint remove questionPicker use generic types where possible resolving import order stuff some type stuff sorted type checks more prettier fix lint error Nick is embarassed types back to green fix rebase conflicts * new collection modal polish, bad nav link stuff * removing TFolder * gathering collection picker components * auto selecting newly created collections * handle confirm on Enter * formCollectionPicker cleanup * border on selected search result * NavLink variants * virtualize search results * fixing icon color on variants * empty collection and search results state * default options spread, removing commented tests, actionButtons * moving New Collection Dialog, localizing header * make entityPickerModal generic * cleanup * update unit tests * update e2e tests * fix type exports * fix 1 more unit test * last test fixes plz * better loading behaviors * improved x-scrolling * remove imperative handle on scroll, scroll to selected item on mount * fix virtualizer type * scroll after measuring * clean up your hooks man * smooth out loading behavior * happy little typescript types * update collection id type * cancel pending search requests * handle whitespace search * cleanup * more cleanup * lets null coalesce instead * fix type * small type fix * Make a more versatile and easy-to-use list virtualizer * better mock * fix rebase conflicts * even more cleanup * ok raffi was right about the scrolling * test fixes * submit button niceties * wider new collection button * make jsdom happy * lighter navlink variant --------- Co-authored-by: Ryan Laurie <iethree@gmail.com>
Showing
- e2e/support/helpers/e2e-collection-helpers.js 14 additions, 0 deletionse2e/support/helpers/e2e-collection-helpers.js
- e2e/support/helpers/e2e-ui-elements-helpers.js 8 additions, 0 deletionse2e/support/helpers/e2e-ui-elements-helpers.js
- e2e/test/scenarios/collections/collections.cy.spec.js 17 additions, 13 deletionse2e/test/scenarios/collections/collections.cy.spec.js
- e2e/test/scenarios/collections/instance-analytics.cy.spec.js 3 additions, 1 deletione2e/test/scenarios/collections/instance-analytics.cy.spec.js
- e2e/test/scenarios/collections/permissions.cy.spec.js 10 additions, 9 deletionse2e/test/scenarios/collections/permissions.cy.spec.js
- e2e/test/scenarios/dashboard/dashboard.cy.spec.js 19 additions, 10 deletionse2e/test/scenarios/dashboard/dashboard.cy.spec.js
- e2e/test/scenarios/models/create.cy.spec.js 9 additions, 3 deletionse2e/test/scenarios/models/create.cy.spec.js
- e2e/test/scenarios/native/native.cy.spec.js 4 additions, 1 deletione2e/test/scenarios/native/native.cy.spec.js
- e2e/test/scenarios/native/snippets/snippet-permissions.cy.spec.js 5 additions, 2 deletions.../scenarios/native/snippets/snippet-permissions.cy.spec.js
- e2e/test/scenarios/onboarding/navbar/new-menu.cy.spec.js 1 addition, 1 deletione2e/test/scenarios/onboarding/navbar/new-menu.cy.spec.js
- e2e/test/scenarios/permissions/reproductions/22727-readonly-collection-offered-on-save.cy.spec.js 1 addition, 1 deletion...ions/22727-readonly-collection-offered-on-save.cy.spec.js
- e2e/test/scenarios/permissions/reproductions/23981-root-collection-breadcrumbs.cy.spec.js 5 additions, 3 deletions...eproductions/23981-root-collection-breadcrumbs.cy.spec.js
- e2e/test/scenarios/question/new.cy.spec.js 36 additions, 26 deletionse2e/test/scenarios/question/new.cy.spec.js
- e2e/test/scenarios/question/question-management.cy.spec.js 2 additions, 1 deletione2e/test/scenarios/question/question-management.cy.spec.js
- frontend/src/metabase-types/api/collection.ts 5 additions, 1 deletionfrontend/src/metabase-types/api/collection.ts
- frontend/src/metabase-types/api/mocks/collection.ts 11 additions, 0 deletionsfrontend/src/metabase-types/api/mocks/collection.ts
- frontend/src/metabase-types/api/mocks/search.ts 1 addition, 0 deletionsfrontend/src/metabase-types/api/mocks/search.ts
- frontend/src/metabase-types/api/search.ts 11 additions, 1 deletionfrontend/src/metabase-types/api/search.ts
- frontend/src/metabase-types/api/user.ts 1 addition, 1 deletionfrontend/src/metabase-types/api/user.ts
- frontend/src/metabase/browse/analytics.ts 2 additions, 1 deletionfrontend/src/metabase/browse/analytics.ts
Please register or sign in to comment