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

Store/Present/Share pictures of sites #869

Open
steesdale opened this issue May 4, 2016 · 3 comments
Open

Store/Present/Share pictures of sites #869

steesdale opened this issue May 4, 2016 · 3 comments

Comments

@steesdale
Copy link

Users have an interest to load and present pictures per site. For instance: A user may upload ~3 pictures for the exterior of the site, and have that present as a type of data per site.

@steesdale steesdale changed the title Store pictures of sites Store/Present/Share pictures of sites May 4, 2016
@steesdale
Copy link
Author

screen shot 2016-05-04 at 12 06 03 pm

@nditada nditada added this to the Release 2.2 milestone Apr 4, 2017
@jkicillof
Copy link

new
view

@jkicillof jkicillof removed their assignment Apr 24, 2017
@mverzilli
Copy link

mverzilli commented May 23, 2017

We'll work on this on a feature branch feature/image_gallery

Design notes (meeting with @lmatayoshi, @matiasgarciaisaia and @mverzilli)

Field configuration screen

  • An "Image Gallery" field can be added to a layer in the "Layers" tab of the Collection management screen.

Upload interaction

  • Reuse as much as possible from the CarrierWave::Uploader implementation of the Logo.

Site browsing

  • In table mode, display a link that opens a popup and shows the gallery.

Import Wizard

  • Attempts to upload that field are ignored.

Download as CSV

  • Serializes a Gallery's RESTful URI

Backend

  • Create a new "Image Gallery" Field type.
  • Create an images table with a uuid field and a blob field.
  • The field's config will have an images key that will store an array of image uuid's.
  • Check what happens with activities. Add activities for "upload image", "remove image".

API

  • An "Image Gallery" field serializes as an array of { uuid, url }. Should work like this both for JSON and RSS formats.
  • There are REST endpoints to interact directly with a Gallery field.

Next tasks:

  • Create a new "Image Gallery" Field type.
  • Create an images table with a uuid field and a blob field.
  • Gallery popup (Mata)
  • Basic file upload widget (for now support just one image end to end)
  • Set up ElasticSearch mappings (check if anything needs to be done)

matiasgarciaisaia added a commit that referenced this issue May 23, 2017
matiasgarciaisaia added a commit that referenced this issue May 24, 2017
We need `mount_uploaders` support

See #869
matiasgarciaisaia added a commit to matiasgarciaisaia/resourcemap that referenced this issue May 26, 2017
matiasgarciaisaia added a commit that referenced this issue May 29, 2017
We can create an ImageGallery with its images, so we then link it
with the fields

See #869
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants