After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 774297 - Revamp empty states
Revamp empty states
Status: RESOLVED FIXED
Product: gnome-photos
Classification: Applications
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: GNOME photos maintainer(s)
GNOME photos maintainer(s)
: 725623 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2016-11-11 21:10 UTC by Alessandro Bono
Modified: 2018-01-22 15:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
icons: Rename PHOTOS_ICON_PHOTOS_SYMBOLIC (785 bytes, patch)
2016-12-04 16:51 UTC, Shivam Tripathi
needs-work Details | Review
icons: Add PHOTOS_ICON_SYSTEM_SEARCH (761 bytes, patch)
2016-12-04 17:40 UTC, Shivam Tripathi
needs-work Details | Review
empty-results-box: Use PHOTOS_ICON_SYSTEM_SEARCH with PHOTOS_WINDOW_MODE_SEARCH (1.02 KB, patch)
2016-12-04 17:49 UTC, Shivam Tripathi
needs-work Details | Review
empty-results-box: Add icon image to labels_grid (1.05 KB, patch)
2016-12-04 20:11 UTC, Shivam Tripathi
rejected Details | Review
empty-results-box: Make similar to EmptyResultsBox in Documents (1.40 KB, patch)
2016-12-04 20:22 UTC, Shivam Tripathi
rejected Details | Review
empty-results-box: Make struct similar to EmptyResultsBox class in Documents (1.42 KB, patch)
2016-12-04 20:23 UTC, Shivam Tripathi
rejected Details | Review
icons: Add PHOTOS_ICON_SYSTEM_SEARCH_SYMBOLIC (779 bytes, patch)
2016-12-07 05:43 UTC, Shivam Tripathi
none Details | Review
icons: Add PHOTOS_ICON_CAMERA_PHOTO_SYMBOLIC (717 bytes, patch)
2016-12-07 08:28 UTC, Shivam Tripathi
none Details | Review
empty-results-box: Revamp the UI (8.42 KB, patch)
2016-12-07 13:20 UTC, Shivam Tripathi
none Details | Review
empty-results-box: Remove labels_grid (694 bytes, patch)
2016-12-07 13:23 UTC, Shivam Tripathi
none Details | Review
empty-results-box: Implement the new empty states design (12.40 KB, patch)
2018-01-22 15:30 UTC, Debarshi Ray
committed Details | Review
Screenshot of empty Photos (18.96 KB, image/png)
2018-01-22 15:31 UTC, Debarshi Ray
  Details
Screenshot of empty Albums (13.77 KB, image/png)
2018-01-22 15:31 UTC, Debarshi Ray
  Details
Screenshot of empty Favorites (14.64 KB, image/png)
2018-01-22 15:32 UTC, Debarshi Ray
  Details
Screenshot of empty search results (17.72 KB, image/png)
2018-01-22 15:32 UTC, Debarshi Ray
  Details

Description Alessandro Bono 2016-11-11 21:10:46 UTC
We should follow the empty states design: https://wiki.gnome.org/Design/OS/EmptyStates
Comment 1 Alessandro Bono 2016-11-11 21:21:42 UTC
This is a newcomers bug.

The file that needs more changes is located in: src/photos-empty-results-box.c

Bonus points if the structure will be similar to the EmptyResultsBox class of GNOME Documents. You can find its code here: https://git.gnome.org/browse/gnome-documents/tree/src/overview.js#n239

If you have any question please ask in the IRC channel #photos on the server irc.gnome.org.

https://wiki.gnome.org/Community/GettingInTouch/IRC
Comment 2 Shivam Tripathi 2016-12-04 16:51:02 UTC
Created attachment 341356 [details] [review]
icons: Rename PHOTOS_ICON_PHOTOS_SYMBOLIC
Comment 3 Shivam Tripathi 2016-12-04 17:40:25 UTC
Created attachment 341357 [details] [review]
icons: Add PHOTOS_ICON_SYSTEM_SEARCH
Comment 4 Shivam Tripathi 2016-12-04 17:49:45 UTC
Created attachment 341358 [details] [review]
empty-results-box: Use PHOTOS_ICON_SYSTEM_SEARCH with PHOTOS_WINDOW_MODE_SEARCH
Comment 5 Shivam Tripathi 2016-12-04 20:11:53 UTC
Created attachment 341363 [details] [review]
empty-results-box: Add icon image to labels_grid
Comment 6 Shivam Tripathi 2016-12-04 20:22:55 UTC
Created attachment 341364 [details] [review]
empty-results-box: Make similar to EmptyResultsBox in Documents

Increase icon image size, add bottom margin to icon image and top margin to title_label
Comment 7 Shivam Tripathi 2016-12-04 20:23:36 UTC
Created attachment 341365 [details] [review]
empty-results-box: Make struct similar to EmptyResultsBox class in Documents

Increase icon image size, add bottom margin to icon image and top margin to title_label
Comment 8 Alessandro Bono 2016-12-06 17:04:33 UTC
Review of attachment 341356 [details] [review]:

You didn't change PHOTOS_ICON_PHOTOS_SYMBOLIC, what about PHOTOS_ICON_CAMERA_PHOTO_SYMBOLIC ?
Comment 9 Alessandro Bono 2016-12-06 17:05:20 UTC
Review of attachment 341357 [details] [review]:

_SYMBOLIC is missing
Comment 10 Alessandro Bono 2016-12-06 17:11:36 UTC
Review of attachment 341358 [details] [review]:

Doing so, we end up with the same icon (a looking glass) for both the search and the overview views. What we want is:
overview -> camera-photo-symbolic
collection/albums -> emblem-photos-symbolic
search -> system-search-symbolic
favorites -> starred-symbolic
Comment 11 Shivam Tripathi 2016-12-07 05:07:11 UTC
(In reply to Alessandro Bono from comment #8)
> Review of attachment 341356 [details] [review] [review]:
> 
> You didn't change PHOTOS_ICON_PHOTOS_SYMBOLIC, what about
> PHOTOS_ICON_CAMERA_PHOTO_SYMBOLIC ?

Maybe I should change the commit message to "Change the value of PHOTOS_ICON_PHOTOS_SYMBOLIC" ?
Comment 12 Shivam Tripathi 2016-12-07 05:43:09 UTC
Created attachment 341528 [details] [review]
icons: Add PHOTOS_ICON_SYSTEM_SEARCH_SYMBOLIC
Comment 13 Shivam Tripathi 2016-12-07 06:56:01 UTC
(In reply to Shivam Tripathi from comment #11)
> (In reply to Alessandro Bono from comment #8)
> > Review of attachment 341356 [details] [review] [review] [review]:
> > 
> > You didn't change PHOTOS_ICON_PHOTOS_SYMBOLIC, what about
> > PHOTOS_ICON_CAMERA_PHOTO_SYMBOLIC ?
> 
> Maybe I should change the commit message to "Change the value of
> PHOTOS_ICON_PHOTOS_SYMBOLIC" ?

Sorry, I misunderstood your point.
Comment 14 Shivam Tripathi 2016-12-07 08:28:07 UTC
Created attachment 341530 [details] [review]
icons: Add PHOTOS_ICON_CAMERA_PHOTO_SYMBOLIC
Comment 15 Shivam Tripathi 2016-12-07 13:20:10 UTC
Created attachment 341543 [details] [review]
empty-results-box: Revamp the UI

Follow code flow of EmptyResultsBox class from +Documents. Change icons for search and overview. Increase maximum  character length for secondary overview label. Change horizontal align of primary overview label to center.
Comment 16 Shivam Tripathi 2016-12-07 13:23:12 UTC
Created attachment 341545 [details] [review]
empty-results-box: Remove labels_grid
Comment 17 Shivam Tripathi 2016-12-16 04:38:27 UTC
Review of attachment 341365 [details] [review]:

Obsolete
Comment 18 Shivam Tripathi 2016-12-16 04:40:39 UTC
Review of attachment 341364 [details] [review]:

Obsolete
Comment 19 Shivam Tripathi 2016-12-16 04:41:13 UTC
Review of attachment 341363 [details] [review]:

Obsolete
Comment 20 Shivam Tripathi 2016-12-16 04:46:11 UTC
Review of attachment 341363 [details] [review]:

Obsolete
Comment 21 Shivam Tripathi 2016-12-16 04:46:42 UTC
Review of attachment 341365 [details] [review]:

Obsolete
Comment 22 Shivam Tripathi 2016-12-16 04:46:42 UTC
Review of attachment 341365 [details] [review]:

Obsolete
Comment 23 Shivam Tripathi 2017-03-31 18:50:59 UTC
Please review.
Comment 24 mohapatramugdha99 2017-06-16 10:24:46 UTC
(In reply to Alessandro Bono from comment #10)
> Review of attachment 341358 [details] [review] [review]:
> 
> Doing so, we end up with the same icon (a looking glass) for both the search
> and the overview views. What we want is:
> overview -> camera-photo-symbolic
> collection/albums -> emblem-photos-symbolic
> search -> system-search-symbolic
> favorites -> starred-symbolic

Can you please tell me what exactly is the overview view? I have managed to change the search symbol but am stuck in the overview part.
Comment 25 Debarshi Ray 2018-01-18 15:36:36 UTC
*** Bug 725623 has been marked as a duplicate of this bug. ***
Comment 26 Debarshi Ray 2018-01-22 15:19:18 UTC
Review of attachment 341543 [details] [review]:

Thanks for the patch, Shivam. I am sorry that it slipped through the cracks and had to sit in bugzilla for so long. Note, that we recently added the --empty-results switch, which makes it easier to hack EmptyResultsBox.

This looks like a good first iteration. There are some remnants of the old design here and there, but otherwise looks good.

::: src/photos-empty-results-box.c
@@ +117,1 @@
   gtk_label_set_max_width_chars (GTK_LABEL (details), 24);

The label for collections isn't "Name your first album" anymore. It's "No albums found".

@@ +142,1 @@
   details = gtk_label_new (details_str);

This label isn't same either. See below.

@@ +219,3 @@
+        align = GTK_ALIGN_CENTER;
+      else
+        align = GTK_ALIGN_START;

These alignments aren't necessary anymore.

@@ +256,3 @@
+    case PHOTOS_WINDOW_MODE_OVERVIEW:
+      if (!photos_source_manager_has_online_sources (PHOTOS_SOURCE_MANAGER (self->src_mngr)))
+        photos_empty_results_box_add_system_settings_label (self);

This part is done a bit differently these days. See gnome-documents for an example. Specifically, this is no longer predicated on the presence of online accounts. We always show the same label no matter what. The label is also a bit different now - Online Accounts instead of Settings, and it mentions the Pictures folder.

@@ +285,3 @@
+  gtk_widget_set_vexpand (GTK_WIDGET (self), TRUE);
+  gtk_orientable_set_orientation (GTK_ORIENTABLE (self), GTK_ORIENTATION_VERTICAL);
+  gtk_grid_set_column_spacing (GTK_GRID (self), 12);

Typo alert: should be row_spacing, not column_spacing. :)
Comment 27 Debarshi Ray 2018-01-22 15:19:44 UTC
Review of attachment 341545 [details] [review]:

Should be folded into the previous patch.
Comment 28 Debarshi Ray 2018-01-22 15:30:30 UTC
Created attachment 367223 [details] [review]
empty-results-box: Implement the new empty states design

Rebased against master and made the above changes.
Comment 29 Debarshi Ray 2018-01-22 15:31:12 UTC
Created attachment 367224 [details]
Screenshot of empty Photos
Comment 30 Debarshi Ray 2018-01-22 15:31:34 UTC
Created attachment 367225 [details]
Screenshot of empty Albums
Comment 31 Debarshi Ray 2018-01-22 15:32:03 UTC
Created attachment 367226 [details]
Screenshot of empty Favorites
Comment 32 Debarshi Ray 2018-01-22 15:32:34 UTC
Created attachment 367227 [details]
Screenshot of empty search results
Comment 33 Debarshi Ray 2018-01-22 15:34:14 UTC
Alessandro, Shivam: thanks for helping with this!