From daf9f51b3d630987be618c4f3e6f301af4eeaa48 Mon Sep 17 00:00:00 2001 From: Jon Udell Date: Thu, 23 Mar 2023 18:32:55 -0700 Subject: [PATCH 1/5] add unicode icons --- query.sp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/query.sp b/query.sp index af5b3a2..ea575f7 100644 --- a/query.sp +++ b/query.sp @@ -94,9 +94,9 @@ locals { f.instance_qualified_account_url, case when f.display_name = '' then f.username else f.display_name end as person, to_char(f.created_at, 'YYYY-MM-DD') as since, - f.followers_count as followers, - f.following_count as following, - f.statuses_count as toots, + '↶ ' || f.followers_count as followers, + '↷ ' || f.following_count as following, + '🎺 ' || f.statuses_count as toots, f.note from __TABLE__ f From 71da9c0a504e5825237ec70ba9e0d6446f7fe92b Mon Sep 17 00:00:00 2001 From: Jon Udell Date: Thu, 23 Mar 2023 18:52:48 -0700 Subject: [PATCH 2/5] adjust default limit --- mod.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod.sp b/mod.sp index 47de6a3..62b390a 100644 --- a/mod.sp +++ b/mod.sp @@ -5,7 +5,7 @@ locals { //host = "https://cloud.steampipe.io/org/acme/workspace/jon/dashboard" host = "http://localhost:9194" server = "mastodon.social" - limit = 100 + limit = 80 timeline_exclude = "press.coop" menu = < Date: Thu, 23 Mar 2023 18:53:09 -0700 Subject: [PATCH 3/5] add unicode icons --- query.sp | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/query.sp b/query.sp index ea575f7..6fbff8f 100644 --- a/query.sp +++ b/query.sp @@ -223,21 +223,15 @@ query "search_people" { limit ${local.limit} ) select - d.instance_qualified_account_url, - d.person, - case when r.following then '✔️' else '' end as i_follow, - case when r.followed_by then '✔️' else '' end as follows_me, - d.created_at, - d.followers_count as followers, - d.following_count as following, - d.toots, - d.note + instance_qualified_account_url, + person, + created_at, + '↶ ' || followers_count as followers, + '↷ ' || following_count as following, + toots, + note from data d - join - mastodon_relationship r - on - d.id = r.id EOQ param "search_term" {} } @@ -270,8 +264,8 @@ query "notification" { n.category, n.person, n.instance_qualified_account_url as account_url, - case when r.following then '✔️' else '' end as following, - case when r.followed_by then '✔️' else '' end as followed_by, + case when r.following then '↶ ' else '' end as following, + case when r.followed_by then '↷ ' else '' end as followed_by, substring(n.status_content from 1 for 200) as toot, case when n.instance_qualified_status_url != '' then n.instance_qualified_status_url From dbb97a6ad0dd76c97b524d311da318e8d2983641 Mon Sep 17 00:00:00 2001 From: Jon Udell Date: Thu, 23 Mar 2023 18:54:17 -0700 Subject: [PATCH 4/5] remove tab --- mod.sp | 2 -- 1 file changed, 2 deletions(-) diff --git a/mod.sp b/mod.sp index 62b390a..9e60f8a 100644 --- a/mod.sp +++ b/mod.sp @@ -36,8 +36,6 @@ locals { • [Rate](__HOST__/mastodon.dashboard.Rate) • -[Relationships](__HOST__/mastodon.dashboard.Relationships) -• [Remote](__HOST__/mastodon.dashboard.Remote) • [Server](__HOST__/mastodon.dashboard.Server) From fb98601a0d5466284426f39ce19c32012e70c81a Mon Sep 17 00:00:00 2001 From: Jon Udell Date: Fri, 24 Mar 2023 16:13:18 -0700 Subject: [PATCH 5/5] use simpler expression --- query.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/query.sp b/query.sp index 6fbff8f..09392f7 100644 --- a/query.sp +++ b/query.sp @@ -306,7 +306,7 @@ query "list" { l.id = t.list_id where l.list = $1 - and t.reblog -> 'url' is null -- only original posts + and t.reblog is null -- only original posts and t.in_reply_to_account_id is null -- only original posts limit 20 )