From 48dc1b6e1953fca4fad1aa3970dde9162ad4f169 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Thu, 10 Nov 2016 10:33:44 +0200 Subject: [PATCH] closes #441 --- resources/commands.js | 12 ++++++++---- resources/console.js | 6 ++++-- resources/status.js | 1 + resources/wallet.js | 3 ++- src/status_im/chat/views/suggestions.cljs | 4 ++-- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/resources/commands.js b/resources/commands.js index d75adcb21c..830dd1bfb8 100644 --- a/resources/commands.js +++ b/resources/commands.js @@ -1,7 +1,8 @@ status.command({ name: "location", icon: "location", - description: "Send location", + title: "Location", + description: "Share your location", color: "#a187d5", preview: function (params) { var text = status.components.text( @@ -52,7 +53,8 @@ function browseSuggestions(params) { status.command({ name: "browse", - description: "browser", + title: "Browser", + description: "Launch the browser", color: "#ffa500", fullscreen: true, suggestionsTrigger: 'on-send', @@ -121,7 +123,8 @@ var send = { name: "send", icon: "money_white", color: "#5fc48d", - description: "Send transaction", + title: "Send ETH", + description: "Send a payment", params: [{ name: "amount", type: status.types.NUMBER @@ -141,8 +144,9 @@ status.response(send); status.command({ name: "request", + title: "Request ETH", color: "#7099e6", - description: "Transaction request", + description: "Request a payment", params: [{ name: "amount", type: status.types.NUMBER diff --git a/resources/console.js b/resources/console.js index 22a730ac2f..11f3b13013 100644 --- a/resources/console.js +++ b/resources/console.js @@ -100,7 +100,8 @@ function phoneSuggestions(params) { var phoneConfig = { name: "phone", icon: "phone_white", - description: "Send phone number", + title: "Send Phone Number", + description: "Find friends using your number", color: "#5bb2a2", params: [{ name: "phone", @@ -115,7 +116,8 @@ status.command(phoneConfig); status.command({ name: "help", - description: "Help", + title: "Help", + description: "Request help from Console", color: "#7099e6", params: [{ name: "query", diff --git a/resources/status.js b/resources/status.js index 93f6bc0acf..59f71047b6 100644 --- a/resources/status.js +++ b/resources/status.js @@ -22,6 +22,7 @@ Command.prototype.param = function (parameter) { Command.prototype.create = function (com) { this.name = com.name; + this.title = com.title; this.description = com.description; this.handler = com.handler; this["has-handler"] = com.handler != null; diff --git a/resources/wallet.js b/resources/wallet.js index feae6993c8..cbae27301d 100644 --- a/resources/wallet.js +++ b/resources/wallet.js @@ -13,7 +13,8 @@ function wallet(params) { status.command({ name: "browse", - description: "Browse wallet", + title: "Browser", + description: "Launch the browser", color: "#ffa500", fullscreen: true, suggestionsTrigger: 'on-send', diff --git a/src/status_im/chat/views/suggestions.cljs b/src/status_im/chat/views/suggestions.cljs index 672a211453..8ba6532562 100644 --- a/src/status_im/chat/views/suggestions.cljs +++ b/src/status_im/chat/views/suggestions.cljs @@ -41,7 +41,7 @@ "By console, today at 14:50"]]]]) (defn suggestion-list-item - [[command {:keys [description] + [[command {:keys [title description] name :name :as suggestion}]] (let [label (str "!" name)] @@ -51,7 +51,7 @@ [view st/suggestion-container [view st/suggestion-sub-container [view st/command-description-container - [text {:style st/value-text} label] + [text {:style st/value-text} title] [text {:style st/description-text} description]] [view st/command-label-container [view (st/suggestion-background suggestion)