Bug 7262

Summary: Make the add layer notification for layers with dependencies consistent across Toaster pages
Product: [Build System, Metadata & Runtime] Toaster Reporter: Belen Barros Pena <belen.barros.pena>
Component: toasterAssignee: Michael Wood <michael.g.wood>
Status: VERIFIED FIXED QA Contact: Alexandru Roman <alexandru.costinx.roman>
Severity: normal    
Priority: Low CC: alexandru.costinx.roman, alexandru.damian, belen.barros.pena, bluelightning, cristiana.voicu, jessica.zhang
Version: unspecified   
Target Milestone: 1.9   
Hardware: x86   
OS: Multiple   
Whiteboard: front-end
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on: 7329    
Bug Blocks:    
Attachments:
Description Flags
added-layer-notification-layer-details.png
none
added-layer-notification-all-layers.png none

Description Belen Barros Pena 2015-01-28 14:48:36 UTC
Created attachment 2375 [details]
added-layer-notification-layer-details.png

We have almost managed the miracle of making notifications consistent across Toaster, but not quite yet. One of the things left to fix is the notification you see when adding layers that bring in other layers as dependencies. You can add layers from the following Toaster pages:

* The project page
* The all layers page
* The all targets page
* The all machines page
* The layer details page

When you add more than one layer at the same time due to layer dependencies, the design asked for a notification like this:

You have added <no_of_layers> layers to <project_name>: <added_layer> and its dependencies <list of layer dependencies>

This is what the layer details page does, as you can see in the attached image 

added-layer-notification-layer-details.png

The rest of the pages, however, do not make the distinction between added layer and its dependencies. The notifications, therefore, are like the one shown in the attached added-layer-notification-all-layers.png

Notifications should be exactly the same across pages, so we need the to bring the notifications shown in the project, all layers, all targets and all machines pages in line to the ones shown in the layer details pages. This means adding the distinction between the added layer and its dependencies.
Comment 1 Belen Barros Pena 2015-01-28 14:49:08 UTC
Created attachment 2376 [details]
added-layer-notification-all-layers.png
Comment 2 Michael Wood 2015-02-10 16:54:01 UTC
I think once the all machines page is merged we'll have got them all
Comment 3 Belen Barros Pena 2015-02-11 12:25:36 UTC
(In reply to comment #2)
> I think once the all machines page is merged we'll have got them all

No, not yet. We need to change the add layer notification in the all layers page and in the project page, which don't differentiate between the layer you added and its dependencies (like the other pages very nicely do).
Comment 4 Alexandru Damian 2015-03-17 10:27:46 UTC
merged in master
Comment 5 Belen Barros Pena 2015-03-19 10:25:34 UTC
This is still not fixed. The add layer notifications we display in the project page and the all layers page are still different from the ones we show in the layer details page. 

To see what I mean, create a project. Then go to the layer details page for the meta-tizen layer and add meta-tizen to your project from there. 

Then go back to the project page and remove the 5 layers added when you added the meta-tizen layer (meta-intel, meta-efl, meta-multimedia, meta-ruby and meta-tizen). 

Then add meta-tizen again from the project page. 

The notification you see is different from the one you got in the meta-tizen layer details page. 

We should have consistent messaging across Toaster.
Comment 6 Michael Wood 2015-08-12 17:22:40 UTC
Believe this is now fixed with the new project page implementation
Comment 7 Alexandru Roman 2015-08-19 11:19:22 UTC
Verify on master: c75cefe8a382a63f625123c156137782db118f64