Skip to content

Conversation

@jakobroehrl
Copy link
Contributor

@jakobroehrl jakobroehrl commented Mar 5, 2021

Signed-off-by: Jakob Röhrl jakob.roehrl@web.de

image

Questions/Todo

  • change of the board setting "show cover images" is only after page upload applied
  • new uploaded image attachments are only after page reload shown
  • show the first two pics? (then I have to shrink the image height to 1/2)

@jakobroehrl jakobroehrl force-pushed the enh/coverPics branch 4 times, most recently from 206bfb6 to b9cc583 Compare March 11, 2021 08:48
@juliusknorr juliusknorr modified the milestones: 1.4.0, 1.5.0, 2.0.0 Apr 13, 2021
appinfo/info.xml Outdated
- 🚀 Get your project organized

</description>
<version>1.4.0-alpha1</version>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you need to bump the version for migrations, please only bump the alpha1 to alpha2, the regular version bump will be done during the release process.

*/
public function update($id, $title, $color, $archived) {
return $this->boardService->update($id, $title, $color, $archived);
public function update($id, $title, $color, $archived, $coverImages) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We would need to support this in the API Controller as well for the mobile app.

*/
public function find($id, $withLabels = false, $withAcl = false) {
$sql = 'SELECT id, title, owner, color, archived, deleted_at, last_modified FROM `*PREFIX*deck_boards` ' .
$sql = 'SELECT id, title, owner, color, archived, deleted_at, last_modified, cover_images FROM `*PREFIX*deck_boards` ' .
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not entirely sure if we should rather make this a user setting. In any case we should reuse the ConfigService for this instead of adding more fields to the board table to keep it flexible.

@stefan-niedermann
Copy link
Member

We (Android app) are quite confused at the moment. It was really nice if one could describe the target state.

  1. How many images will be shown? 1-3? max. 1? ...?
  2. Is there a max-height for the image?
  3. What about this setting? I guess it's to turn it off / on at all, not to make the shown image configurable per card by the user?
  4. Will or won't this setting be synchronizable? Since @juliushaertl said it should not go into the boards column, we should talk about synchronizable per-board settings in the long term

@jakobroehrl
Copy link
Contributor Author

@stefan-niedermann
I like the new implementation in the Android App. :)
The first 3 pics are shown in the corresponding card and there is a global setting for showing this or not

@juliushaertl: How we will do it in the WebApp? Start like doing it in the Android App?

@juliusknorr
Copy link
Member

Open questions i would like to clarify before going any further:

  • Will only pictures be used for this or also previews of for example office files?
  • In which order will the images be picked? Should there be a manual way to select or will it always be the 3 newest?

How many images will be shown? 1-3? max. 1? ...?

Trello has a dedicated option for making an image a cover for example which I personally would prefer rather than trying to magically find a picture as that could always lead to seeing an image there which you might not want or might not help to get a better idea on what the card is about.

image

Is there a max-height for the image?

There should be one, yes.

What about this setting? I guess it's to turn it off / on at all, not to make the shown image configurable per card by the user?
Will or won't this setting be synchronizable? Since @juliushaertl said it should not go into the boards column, we should talk about synchronizable per-board settings in the long term

Yes, those settings could still be exposed through the board api endpoints even if they are stored separately. My main concern is that just adding an individual column for each possible setting to the board table doesn't scale very well

@stefan-niedermann
Copy link
Member

Will only pictures be used for this or also previews of for example office files?

The Android app started with only pictures because otherwise this will cause confusion why attachments which have been uploaded with Deck < 1.3.0 are not shown. We will probably change this behavior when the attachment migration is provided.

In which order will the images be picked? Should there be a manual way to select or will it always be the 3 newest?

In the first draft, the Android app just picks the three first ones in the database. The three most recent sounds better, but i would avoid to make this selectable by the user because this needs a manual user interaction, it will clutter the UI and it will cause maintenance efforts for the options which are probably put into something other more important stuff. But ringing in @nextcloud/designers for this 😉

Yes, those settings could still be exposed through the board api endpoints even if they are stored separately.

Is this really board related? IMHO a global setting for this makes more sense (also a question for @nextcloud/designers)

@stefan-niedermann
Copy link
Member

Oh, another hint: Think about how cover images work in combination with compact mode.
I put the images on the left side to not increase the height of each item:

Screenshot_20210423-080458_Nextcloud_Deck

@jakobroehrl
Copy link
Contributor Author

@weeman1337
Could you maybe help me on getting this done?

  • change of the board setting "show cover images" is only after page upload applied
  • new uploaded image attachments are only after page reload shown
  • show the first two pics? (then I have to shrink the image height to 1/2)

@weeman1337
Copy link
Member

Hi @jakobroehrl . If it is okay for you I would submit some commits.

@jakobroehrl
Copy link
Contributor Author

Hi @jakobroehrl . If it is okay for you I would submit some commits.

This would be awesome, thanks!

@jakobroehrl
Copy link
Contributor Author

Hi @jakobroehrl . If it is okay for you I would submit some commits.

@weeman1337 This would be awesome, thanks!

Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
@frozenbanana
Copy link

I have been checking the status on this PR since a while back. Can I help somehow?

@xstable
Copy link

xstable commented Oct 25, 2022

Is this issue outdated? Would love to see those pretty images at the cardlist.
How can we contribute ?

@juliusknorr
Copy link
Member

When I talked to @jakobroehrl last time he mentioned that he would appreciate if someone could take over the pull request.

So I think the best would be to checkout the changes and push them to your own fork to open a new pull request then.

Let me know if you have any questions, looking forward to your contribution.

@juliusknorr
Copy link
Member

Let me close this for now. If anyone wants to pick up the work feel free to open a new pull request with it.

@juliusknorr juliusknorr mentioned this pull request Feb 2, 2023
@jszeibert jszeibert mentioned this pull request Jun 5, 2023
2 tasks
@jszeibert jszeibert mentioned this pull request Aug 18, 2023
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Images for Cards

8 participants