From 7ab107b689e9d0ff39f7904a3eb84d4ee100da80 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Tue, 23 Nov 2021 20:07:57 -0600 Subject: [PATCH 1/5] Hide headings The main nav entry above is enough context. --- app/assets/stylesheets/layout.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 27b7a62..e2de21c 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -102,6 +102,10 @@ main { section { margin-bottom: 3rem; + + h2 { + display: none; + } } table { From 46c7affd1ffa62c4d877c36b0f9a83b503b62065 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Tue, 23 Nov 2021 20:08:33 -0600 Subject: [PATCH 2/5] Add explanatory intro to invitations page --- app/views/invitations/index.html.erb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/views/invitations/index.html.erb b/app/views/invitations/index.html.erb index 1c5996f..68235a0 100644 --- a/app/views/invitations/index.html.erb +++ b/app/views/invitations/index.html.erb @@ -1,5 +1,13 @@

Invitations

+ <% if @invitations_unused.any? %> +

+ Invite your friends to a Kosmos account by sharing an invitation URL with them: +

+ <% end %> +
+ +
<% if @invitations_unused.any? %> From 669b16381460606357f60852e52ca32a003a6ea6 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Tue, 23 Nov 2021 20:08:54 -0600 Subject: [PATCH 3/5] Make the wallet balance look a bit nicer --- app/views/wallet/index.html.erb | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/app/views/wallet/index.html.erb b/app/views/wallet/index.html.erb index fda7bd6..07c8055 100644 --- a/app/views/wallet/index.html.erb +++ b/app/views/wallet/index.html.erb @@ -1,16 +1,21 @@ -
-
+
+

Wallet

- Send and receive BTC via the Lightning Network. + Send and receive sats via the Bitcoin Lightning Network. +

+
+
+

+ <% if @balance %> + 48590<%= @balance %> sats
+ Available balance + <% else %> + n/a<%= @balance %> sats
+ Balance unavailable + <% end %>

-

- <% if @balance %> - <%= @balance %> sats
- Available balance - <% end %> -

From 1af8e068c50c2a1c1632cece440aa01d9c062c88 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Tue, 23 Nov 2021 20:09:15 -0600 Subject: [PATCH 4/5] Add the wallet to the dashboard as a service --- app/views/dashboard/index.html.erb | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/app/views/dashboard/index.html.erb b/app/views/dashboard/index.html.erb index bfd21f7..1e1d321 100644 --- a/app/views/dashboard/index.html.erb +++ b/app/views/dashboard/index.html.erb @@ -13,14 +13,6 @@ Chat rooms and instant messaging (XMPP/Jabber)

-
-

- <%= link_to "Wiki", "https://wiki.kosmos.org", class: "ks-text-link" %> -

-

- Kosmos documentation and knowledge base -

-

<%= link_to "Discourse", "https://community.kosmos.org", class: "ks-text-link" %> @@ -29,6 +21,23 @@ Kosmos community forums and user support/help site

+
+

+ 🗲 + <%= link_to "Lightning Wallet", wallet_path, class: "ks-text-link" %> +

+

+ Send and receive sats over the Bitcoin Lightning Network +

+
+
+

+ <%= link_to "Wiki", "https://wiki.kosmos.org", class: "ks-text-link" %> +

+

+ Kosmos documentation and knowledge base +

+

<%= link_to "Gitea", "https://gitea.kosmos.org", class: "ks-text-link" %> From 12a9d4674b76fca0552b51cffdafb4977ce18209 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Tue, 23 Nov 2021 20:40:42 -0600 Subject: [PATCH 5/5] Fix a couple of oversights --- app/views/wallet/index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/wallet/index.html.erb b/app/views/wallet/index.html.erb index 07c8055..2230800 100644 --- a/app/views/wallet/index.html.erb +++ b/app/views/wallet/index.html.erb @@ -8,10 +8,10 @@

<% if @balance %> - 48590<%= @balance %> sats
+ <%= @balance %> sats
Available balance <% else %> - n/a<%= @balance %> sats
+ n/a sats
Balance unavailable <% end %>