From c3e703989a87f4deafd77eb644d73af8ef93f110 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Mon, 19 Feb 2024 11:15:41 -0300
Subject: better name to links and buttons

---
 packages/demobank-ui/src/pages/admin/AdminHome.tsx | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'packages/demobank-ui/src/pages/admin/AdminHome.tsx')

diff --git a/packages/demobank-ui/src/pages/admin/AdminHome.tsx b/packages/demobank-ui/src/pages/admin/AdminHome.tsx
index 35106edeb..2df8ac112 100644
--- a/packages/demobank-ui/src/pages/admin/AdminHome.tsx
+++ b/packages/demobank-ui/src/pages/admin/AdminHome.tsx
@@ -238,6 +238,7 @@ function Metrics({ routeDownloadStats }: {
         >
           <button
             type="button"
+            name="set last hour"
             onClick={(e) => {
               e.preventDefault();
               setMetricType(TalerCorebankApi.MonitorTimeframeParam.hour);
@@ -260,6 +261,7 @@ function Metrics({ routeDownloadStats }: {
           </button>
           <button
             type="button"
+            name="set last day"
             onClick={(e) => {
               e.preventDefault();
               setMetricType(TalerCorebankApi.MonitorTimeframeParam.day);
@@ -282,6 +284,7 @@ function Metrics({ routeDownloadStats }: {
           </button>
           <button
             type="button"
+            name="set last month"
             onClick={(e) => {
               e.preventDefault();
               setMetricType(TalerCorebankApi.MonitorTimeframeParam.month);
@@ -304,6 +307,7 @@ function Metrics({ routeDownloadStats }: {
           </button>
           <button
             type="button"
+            name="set last year"
             onClick={(e) => {
               e.preventDefault();
               setMetricType(TalerCorebankApi.MonitorTimeframeParam.year);
@@ -390,6 +394,7 @@ function Metrics({ routeDownloadStats }: {
       <div class="flex justify-end mt-2">
         <a
           href={routeDownloadStats.url({})}
+          name="download stats"
           class="disabled:opacity-50 disabled:cursor-default cursor-pointer rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
         >
           <i18n.Translate>Download stats as CSV</i18n.Translate>
-- 
cgit v1.2.3

