Bug 6596

Summary: Develop Toaster new project page
Product: [Build System, Metadata & Runtime] Toaster Reporter: Belen Barros Pena <belen.barros.pena>
Component: toasterAssignee: Alexandru Damian <alexandru.damian>
Status: VERIFIED FIXED QA Contact: Mihail Stanciu <stanciux.mihail>
Severity: enhancement    
Priority: Medium+ CC: alexandru.c.georgescu, alexandru.damian, belen.barros.pena, bluelightning, cristiana.voicu, david.reyna, Yuan.Sun2
Version: unspecified   
Target Milestone: 1.8 M2   
Hardware: All   
OS: Multiple   
Whiteboard: GUI design available
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on: 6893    
Bug Blocks:    
Attachments:
Description Flags
Design - Creating projects
none
Design - Creating projects
none
Design - Creating projects
none
Design - Creating projects
none
Design - Creating projects
none
Design - Creating projects none

Description Belen Barros Pena 2014-07-29 11:44:38 UTC
This is the page where you create a Toaster project.
Comment 1 Belen Barros Pena 2014-08-01 12:57:06 UTC
Created attachment 2067 [details]
Design - Creating projects
Comment 2 Belen Barros Pena 2014-08-11 13:20:25 UTC
Created attachment 2081 [details]
Design - Creating projects

Add information about how the compatible releases and the default project configuration can be customised via the Django Admin interface.
Comment 3 Alexandru Damian 2014-09-04 14:42:23 UTC
This is merged.
Comment 4 Alexandru Damian 2014-09-04 14:47:03 UTC
*** Bug 6236 has been marked as a duplicate of this bug. ***
Comment 5 Belen Barros Pena 2014-09-09 12:23:20 UTC
Created attachment 2119 [details]
Design - Creating projects

Updated to reflect the latest decisions on the default configuration and to include release descriptions.
Comment 6 Belen Barros Pena 2014-09-09 12:35:47 UTC
Created attachment 2120 [details]
Design - Creating projects
Comment 7 Belen Barros Pena 2014-09-16 11:00:41 UTC
Reopening to track remaining work
Comment 8 Belen Barros Pena 2014-09-19 14:35:39 UTC
After some conversations with Alex, we have concluded that we should remove the 'Project Owner' and 'Owner's email' fields from this page. Users are global (a change in the Owner's email will cascade across all projects), and the current design doesn't really communicate this.

Since the next release of Toaster does not implement the concept of users and / or permissions, we should be able to remove this information from projects for the time being. We'll reintroduce it when implementing user / accounts / permissions functionality.
Comment 9 Alexandru Damian 2014-09-29 14:48:58 UTC
Should be fixed in toaster/master.
Comment 10 Belen Barros Pena 2014-11-06 15:14:57 UTC
Created attachment 2231 [details]
Design - Creating projects

Updating the form fields, the information about releases and adding an additional state for when the releases drop down menu is empty.
Comment 11 Belen Barros Pena 2014-11-06 15:15:25 UTC
Created attachment 2232 [details]
Design - Creating projects
Comment 12 Belen Barros Pena 2014-11-06 15:52:41 UTC
I was asked to review the state of this page on poky/master (0add8abc12b850e38a6ec7dcf2856fab2c0107b6) to provide an idea of how much work is left. Here are the issues I've found:

* Layout: we can make this page full width. Right now all content is inside a div with a .span6 class applied: that div can go.

* There should be no "new project" button in the top bar in this page: you are already creating a project.

* The "Yocto Project version" label should be changed to "Release"

* The content of the help bubble next to the Yocto Project version should say: "The version of the build system you want to use"

* I tested with the poky/master branch, but using the toasterconf.json file from the latest poky-contrib/toaster/master branch. With this set up, I get 2 releases in the Releases menu: master and dizzy. I am not sure why the Poky release is not showing, although I am not too bothered by this, since I know we are still making changes to that configuration. The final release names and their descriptions are in page 5 of the design document attached to 
this bug. I rather see those set to the correct values in the toasterconf.json files sooner rather than later, so that we don't forget

* The values shown in the Release select menu are currently: release name (release description). We should change that to show just the release name, with the description for the selected option displayed below the select menu. You can see how this behaves at 
http://www.yoctoproject.org/toaster/newproject.html

* If there is only one release configured, the Releases menu should not display. This is not currently in place.

* If no releases are configured, the page should show an alert instead of the form (see page 6 of the design document). This is not currently in place

* The "Create project" button should be disabled while the project name field is empty, and while disabled should have some help text next to it (see page 4 of the design document). It becomes enabled when you enter one character in the project name field.
Comment 13 Alexandru Damian 2014-11-26 14:32:08 UTC
Issues fixed, pushed for review on toaster/master
Comment 14 Belen Barros Pena 2014-11-27 14:04:58 UTC
(In reply to comment #13)
> Issues fixed, pushed for review on toaster/master

I've made some tiny tweaks, which I've pushed here

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=bbarrosp/new-project

Other than those, the only thing that it's a bit strange is that, if you close the project created notification and then refresh the page, the notification shows again. It's a bit annoying. Is there anything we could do about this, so that when I dismiss this notification I don't have to see it ever again?
Comment 15 Alexandru Damian 2015-01-09 12:00:23 UTC
merged in master
Comment 16 Mihail Stanciu 2015-01-13 12:05:14 UTC
Verified on master: 876370419a50264a28feb4278f8c465b0019e709