Opened 6 months ago

Closed 6 months ago

#22628 closed defect (bug) (fixed)

Improve switching between browser and upload state

Reported by: koopersmith Owned by: ryan
Priority: normal Milestone: 3.5
Component: Media Version: 3.5
Severity: normal Keywords: has-patch
Cc:

Description

Currently, the attachments browser falls back to the upload state when there are no items in the collection. There are two major failings with the current implementation:

  1. When first navigating to the media library, you see a flash of the upload state before the attachments load.
  2. When a filter with no items is selected, we show an empty content area.

By moving the upload state and switching code into the browser view, we can fix both of these problems and eliminate complexity in the state.

Attachments (4)

22628.diff (4.2 KB) - added by koopersmith 6 months ago.
22628.filter.fix.png (75.4 KB) - added by koopersmith 6 months ago.
22628.2.diff (4.1 KB) - added by koopersmith 6 months ago.
22628.3.diff (4.3 KB) - added by koopersmith 6 months ago.

Download all attachments as: .zip

Change History (13)

A nice touch this would be to add spinners when attachments are loading.

Version 0, edited 6 months ago by koopersmith (next)

This is what an empty filter looks like.

Latest patch fixes vanishing view when switching back and forth.

Looks good.

  • Resolution set to fixed
  • Status changed from new to closed

This snuck in with [22919].

In 22923:

Revert accidental bits from r22919. see #22628

  • Resolution fixed deleted
  • Status changed from closed to reopened

This caused some problems with creating and editing galleries.

Ah. Gallery problems were caused because they didn't have a content mode set. Fixed in latest patch.

  • Owner set to ryan
  • Resolution set to fixed
  • Status changed from reopened to closed

In 22945:

Improve switching between browser and upload state.

Props koopersmith
fixes #22628

Note: See TracTickets for help on using tickets.