From bf8b7d6f80aa490047cae465af9c65dd1709cf20 Mon Sep 17 00:00:00 2001 From: Pujit Mehrotra Date: Fri, 6 Dec 2024 08:39:42 -0500 Subject: [PATCH 1/2] feat(web): add loading and error states to notification sidebar --- web/components/Loading/Bar.vue | 12 ++++++++++ web/components/Loading/Spinner.vue | 19 ++++++++++++++++ web/components/Notifications/List.vue | 32 ++++++++++++++++++++++----- 3 files changed, 57 insertions(+), 6 deletions(-) create mode 100644 web/components/Loading/Bar.vue create mode 100644 web/components/Loading/Spinner.vue diff --git a/web/components/Loading/Bar.vue b/web/components/Loading/Bar.vue new file mode 100644 index 0000000000..c5a025fe4a --- /dev/null +++ b/web/components/Loading/Bar.vue @@ -0,0 +1,12 @@ + + diff --git a/web/components/Loading/Spinner.vue b/web/components/Loading/Spinner.vue new file mode 100644 index 0000000000..144324d7c7 --- /dev/null +++ b/web/components/Loading/Spinner.vue @@ -0,0 +1,19 @@ + + diff --git a/web/components/Notifications/List.vue b/web/components/Notifications/List.vue index 255069f2c3..857db57f2c 100644 --- a/web/components/Notifications/List.vue +++ b/web/components/Notifications/List.vue @@ -1,5 +1,5 @@ From 358495e436140792c600938353e228cfe7fe997c Mon Sep 17 00:00:00 2001 From: Pujit Mehrotra Date: Fri, 6 Dec 2024 11:15:46 -0500 Subject: [PATCH 2/2] refactor(web): add container for loading & error states --- web/components/Loading/Error.vue | 55 +++++++++++++++++++++++++++ web/components/Notifications/List.vue | 24 +++--------- 2 files changed, 60 insertions(+), 19 deletions(-) create mode 100644 web/components/Loading/Error.vue diff --git a/web/components/Loading/Error.vue b/web/components/Loading/Error.vue new file mode 100644 index 0000000000..ff79ab312b --- /dev/null +++ b/web/components/Loading/Error.vue @@ -0,0 +1,55 @@ + + diff --git a/web/components/Notifications/List.vue b/web/components/Notifications/List.vue index 857db57f2c..013a7b162f 100644 --- a/web/components/Notifications/List.vue +++ b/web/components/Notifications/List.vue @@ -1,5 +1,5 @@