DodoApp: Improve UI

Change-Id: Ia374b600c9b61e7543a1c7dffb2ade9b58c7d49f
diff --git a/core/installer/welcome/store.go b/core/installer/welcome/store.go
index 8ea0860..031cdff 100644
--- a/core/installer/welcome/store.go
+++ b/core/installer/welcome/store.go
@@ -19,6 +19,7 @@
 
 type Commit struct {
 	Hash    string
+	Status  string
 	Message string
 }
 
@@ -30,7 +31,7 @@
 	GetUserApps(username string) ([]string, error)
 	CreateApp(name, username string) error
 	GetAppOwner(name string) (string, error)
-	CreateCommit(name, hash, message string) error
+	CreateCommit(name, hash, message, status string) error
 	GetCommitHistory(name string) ([]Commit, error)
 }
 
@@ -61,7 +62,8 @@
 		CREATE TABLE IF NOT EXISTS commits (
 			app_name TEXT,
             hash TEXT,
-            message TEXT
+            message TEXT,
+            status TEXT
 		);
 	`)
 	return err
@@ -172,14 +174,14 @@
 	return ret, nil
 }
 
-func (s *storeImpl) CreateCommit(name, hash, message string) error {
-	query := `INSERT INTO commits (app_name, hash, message) VALUES (?, ?, ?)`
-	_, err := s.db.Exec(query, name, hash, message)
+func (s *storeImpl) CreateCommit(name, hash, message, status string) error {
+	query := `INSERT INTO commits (app_name, hash, message, status) VALUES (?, ?, ?, ?)`
+	_, err := s.db.Exec(query, name, hash, message, status)
 	return err
 }
 
 func (s *storeImpl) GetCommitHistory(name string) ([]Commit, error) {
-	query := `SELECT hash, message FROM commits WHERE app_name = ?`
+	query := `SELECT hash, message, status FROM commits WHERE app_name = ?`
 	rows, err := s.db.Query(query, name)
 	if err != nil {
 		return nil, err
@@ -191,7 +193,7 @@
 			return nil, err
 		}
 		var c Commit
-		if err := rows.Scan(&c.Hash, &c.Message); err != nil {
+		if err := rows.Scan(&c.Hash, &c.Message, &c.Status); err != nil {
 			return nil, err
 		}
 		ret = append(ret, c)