From ce36a07dc37f42eb584ee9b4da154796f19c6e6f Mon Sep 17 00:00:00 2001 From: Adam Setch Date: Sat, 18 Oct 2025 10:04:11 -0700 Subject: [PATCH] refactor: filter custom counter size Signed-off-by: Adam Setch --- .../__snapshots__/Checkbox.test.tsx.snap | 12 ++-- .../__snapshots__/FilterSection.test.tsx.snap | 60 ++++++++--------- .../__snapshots__/ReasonFilter.test.tsx.snap | 60 ++++++++--------- .../__snapshots__/StateFilter.test.tsx.snap | 20 +++--- .../SubjectTypeFilter.test.tsx.snap | 40 +++++------ .../UserTypeFilter.test.tsx.snap | 12 ++-- .../components/primitives/CustomCounter.tsx | 2 +- .../__snapshots__/CustomCounter.test.tsx.snap | 4 +- .../__snapshots__/Filters.test.tsx.snap | 66 +++++++++---------- 9 files changed, 138 insertions(+), 138 deletions(-) diff --git a/src/renderer/components/fields/__snapshots__/Checkbox.test.tsx.snap b/src/renderer/components/fields/__snapshots__/Checkbox.test.tsx.snap index bef3fb54a..6300ef8e0 100644 --- a/src/renderer/components/fields/__snapshots__/Checkbox.test.tsx.snap +++ b/src/renderer/components/fields/__snapshots__/Checkbox.test.tsx.snap @@ -200,7 +200,7 @@ exports[`renderer/components/fields/Checkbox.tsx should render - positive counte Appearance 5 @@ -231,7 +231,7 @@ exports[`renderer/components/fields/Checkbox.tsx should render - positive counte Appearance 5 @@ -318,7 +318,7 @@ exports[`renderer/components/fields/Checkbox.tsx should render - positive counte Appearance 5 @@ -348,7 +348,7 @@ exports[`renderer/components/fields/Checkbox.tsx should render - positive counte Appearance 5 @@ -706,7 +706,7 @@ exports[`renderer/components/fields/Checkbox.tsx should render - zero counter 1` Appearance 0 @@ -737,7 +737,7 @@ exports[`renderer/components/fields/Checkbox.tsx should render - zero counter 1` Appearance 0 diff --git a/src/renderer/components/filters/__snapshots__/FilterSection.test.tsx.snap b/src/renderer/components/filters/__snapshots__/FilterSection.test.tsx.snap index 43b42d26a..4ce63e022 100644 --- a/src/renderer/components/filters/__snapshots__/FilterSection.test.tsx.snap +++ b/src/renderer/components/filters/__snapshots__/FilterSection.test.tsx.snap @@ -32,7 +32,7 @@ exports[`renderer/components/filters/FilterSection.tsx should be able to toggle Draft 0 @@ -85,7 +85,7 @@ exports[`renderer/components/filters/FilterSection.tsx should be able to toggle 0 @@ -112,7 +112,7 @@ exports[`renderer/components/filters/FilterSection.tsx should be able to toggle Merged 0 @@ -165,7 +165,7 @@ exports[`renderer/components/filters/FilterSection.tsx should be able to toggle 0 @@ -218,7 +218,7 @@ exports[`renderer/components/filters/FilterSection.tsx should be able to toggle 0 @@ -258,7 +258,7 @@ exports[`renderer/components/filters/FilterSection.tsx should be able to toggle Draft 0 @@ -312,7 +312,7 @@ exports[`renderer/components/filters/FilterSection.tsx should be able to toggle 0 @@ -339,7 +339,7 @@ exports[`renderer/components/filters/FilterSection.tsx should be able to toggle Merged 0 @@ -392,7 +392,7 @@ exports[`renderer/components/filters/FilterSection.tsx should be able to toggle 0 @@ -445,7 +445,7 @@ exports[`renderer/components/filters/FilterSection.tsx should be able to toggle 0 @@ -531,7 +531,7 @@ exports[`renderer/components/filters/FilterSection.tsx should render itself & it Draft 0 @@ -584,7 +584,7 @@ exports[`renderer/components/filters/FilterSection.tsx should render itself & it 1 @@ -611,7 +611,7 @@ exports[`renderer/components/filters/FilterSection.tsx should render itself & it Merged 0 @@ -664,7 +664,7 @@ exports[`renderer/components/filters/FilterSection.tsx should render itself & it 0 @@ -717,7 +717,7 @@ exports[`renderer/components/filters/FilterSection.tsx should render itself & it 3 @@ -800,7 +800,7 @@ exports[`renderer/components/filters/FilterSection.tsx should render itself & it Draft 0 @@ -853,7 +853,7 @@ exports[`renderer/components/filters/FilterSection.tsx should render itself & it 1 @@ -880,7 +880,7 @@ exports[`renderer/components/filters/FilterSection.tsx should render itself & it Merged 0 @@ -933,7 +933,7 @@ exports[`renderer/components/filters/FilterSection.tsx should render itself & it 0 @@ -986,7 +986,7 @@ exports[`renderer/components/filters/FilterSection.tsx should render itself & it 3 @@ -1126,7 +1126,7 @@ exports[`renderer/components/filters/FilterSection.tsx should render itself & it Draft 0 @@ -1179,7 +1179,7 @@ exports[`renderer/components/filters/FilterSection.tsx should render itself & it 1 @@ -1206,7 +1206,7 @@ exports[`renderer/components/filters/FilterSection.tsx should render itself & it Merged 0 @@ -1259,7 +1259,7 @@ exports[`renderer/components/filters/FilterSection.tsx should render itself & it 0 @@ -1312,7 +1312,7 @@ exports[`renderer/components/filters/FilterSection.tsx should render itself & it 3 @@ -1395,7 +1395,7 @@ exports[`renderer/components/filters/FilterSection.tsx should render itself & it Draft 0 @@ -1448,7 +1448,7 @@ exports[`renderer/components/filters/FilterSection.tsx should render itself & it 1 @@ -1475,7 +1475,7 @@ exports[`renderer/components/filters/FilterSection.tsx should render itself & it Merged 0 @@ -1528,7 +1528,7 @@ exports[`renderer/components/filters/FilterSection.tsx should render itself & it 0 @@ -1581,7 +1581,7 @@ exports[`renderer/components/filters/FilterSection.tsx should render itself & it 3 diff --git a/src/renderer/components/filters/__snapshots__/ReasonFilter.test.tsx.snap b/src/renderer/components/filters/__snapshots__/ReasonFilter.test.tsx.snap index 8c610f1ae..d97307d44 100644 --- a/src/renderer/components/filters/__snapshots__/ReasonFilter.test.tsx.snap +++ b/src/renderer/components/filters/__snapshots__/ReasonFilter.test.tsx.snap @@ -130,7 +130,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -183,7 +183,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -236,7 +236,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 1 @@ -289,7 +289,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -342,7 +342,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -395,7 +395,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -448,7 +448,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -501,7 +501,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -554,7 +554,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -607,7 +607,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -660,7 +660,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -713,7 +713,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -766,7 +766,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -819,7 +819,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 3 @@ -872,7 +872,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -1007,7 +1007,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -1060,7 +1060,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -1113,7 +1113,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 1 @@ -1166,7 +1166,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -1219,7 +1219,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -1272,7 +1272,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -1325,7 +1325,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -1378,7 +1378,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -1431,7 +1431,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -1484,7 +1484,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -1537,7 +1537,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -1590,7 +1590,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -1643,7 +1643,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 @@ -1696,7 +1696,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 3 @@ -1749,7 +1749,7 @@ exports[`renderer/components/filters/ReasonFilter.tsx should render itself & its 0 diff --git a/src/renderer/components/filters/__snapshots__/StateFilter.test.tsx.snap b/src/renderer/components/filters/__snapshots__/StateFilter.test.tsx.snap index fdcfef19a..7376d2aef 100644 --- a/src/renderer/components/filters/__snapshots__/StateFilter.test.tsx.snap +++ b/src/renderer/components/filters/__snapshots__/StateFilter.test.tsx.snap @@ -107,7 +107,7 @@ exports[`renderer/components/filters/StateFilter.tsx should render itself & its Draft 0 @@ -160,7 +160,7 @@ exports[`renderer/components/filters/StateFilter.tsx should render itself & its 1 @@ -187,7 +187,7 @@ exports[`renderer/components/filters/StateFilter.tsx should render itself & its Merged 0 @@ -240,7 +240,7 @@ exports[`renderer/components/filters/StateFilter.tsx should render itself & its 0 @@ -293,7 +293,7 @@ exports[`renderer/components/filters/StateFilter.tsx should render itself & its 3 @@ -405,7 +405,7 @@ exports[`renderer/components/filters/StateFilter.tsx should render itself & its Draft 0 @@ -458,7 +458,7 @@ exports[`renderer/components/filters/StateFilter.tsx should render itself & its 1 @@ -485,7 +485,7 @@ exports[`renderer/components/filters/StateFilter.tsx should render itself & its Merged 0 @@ -538,7 +538,7 @@ exports[`renderer/components/filters/StateFilter.tsx should render itself & its 0 @@ -591,7 +591,7 @@ exports[`renderer/components/filters/StateFilter.tsx should render itself & its 3 diff --git a/src/renderer/components/filters/__snapshots__/SubjectTypeFilter.test.tsx.snap b/src/renderer/components/filters/__snapshots__/SubjectTypeFilter.test.tsx.snap index dc1c03c70..90a772b5c 100644 --- a/src/renderer/components/filters/__snapshots__/SubjectTypeFilter.test.tsx.snap +++ b/src/renderer/components/filters/__snapshots__/SubjectTypeFilter.test.tsx.snap @@ -104,7 +104,7 @@ exports[`renderer/components/filters/SubjectTypeFilter.tsx should render itself Check Suite 0 @@ -131,7 +131,7 @@ exports[`renderer/components/filters/SubjectTypeFilter.tsx should render itself Commit 0 @@ -158,7 +158,7 @@ exports[`renderer/components/filters/SubjectTypeFilter.tsx should render itself Discussion 0 @@ -185,7 +185,7 @@ exports[`renderer/components/filters/SubjectTypeFilter.tsx should render itself Issue 2 @@ -212,7 +212,7 @@ exports[`renderer/components/filters/SubjectTypeFilter.tsx should render itself Pull Request 1 @@ -239,7 +239,7 @@ exports[`renderer/components/filters/SubjectTypeFilter.tsx should render itself Release 1 @@ -266,7 +266,7 @@ exports[`renderer/components/filters/SubjectTypeFilter.tsx should render itself Dependabot Alert 0 @@ -293,7 +293,7 @@ exports[`renderer/components/filters/SubjectTypeFilter.tsx should render itself Invitation 0 @@ -320,7 +320,7 @@ exports[`renderer/components/filters/SubjectTypeFilter.tsx should render itself Vulnerability Alert 0 @@ -347,7 +347,7 @@ exports[`renderer/components/filters/SubjectTypeFilter.tsx should render itself Workflow Run 0 @@ -456,7 +456,7 @@ exports[`renderer/components/filters/SubjectTypeFilter.tsx should render itself Check Suite 0 @@ -483,7 +483,7 @@ exports[`renderer/components/filters/SubjectTypeFilter.tsx should render itself Commit 0 @@ -510,7 +510,7 @@ exports[`renderer/components/filters/SubjectTypeFilter.tsx should render itself Discussion 0 @@ -537,7 +537,7 @@ exports[`renderer/components/filters/SubjectTypeFilter.tsx should render itself Issue 2 @@ -564,7 +564,7 @@ exports[`renderer/components/filters/SubjectTypeFilter.tsx should render itself Pull Request 1 @@ -591,7 +591,7 @@ exports[`renderer/components/filters/SubjectTypeFilter.tsx should render itself Release 1 @@ -618,7 +618,7 @@ exports[`renderer/components/filters/SubjectTypeFilter.tsx should render itself Dependabot Alert 0 @@ -645,7 +645,7 @@ exports[`renderer/components/filters/SubjectTypeFilter.tsx should render itself Invitation 0 @@ -672,7 +672,7 @@ exports[`renderer/components/filters/SubjectTypeFilter.tsx should render itself Vulnerability Alert 0 @@ -699,7 +699,7 @@ exports[`renderer/components/filters/SubjectTypeFilter.tsx should render itself Workflow Run 0 diff --git a/src/renderer/components/filters/__snapshots__/UserTypeFilter.test.tsx.snap b/src/renderer/components/filters/__snapshots__/UserTypeFilter.test.tsx.snap index 34a495ed2..bfda081a8 100644 --- a/src/renderer/components/filters/__snapshots__/UserTypeFilter.test.tsx.snap +++ b/src/renderer/components/filters/__snapshots__/UserTypeFilter.test.tsx.snap @@ -104,7 +104,7 @@ exports[`renderer/components/filters/UserTypeFilter.tsx should render itself & i User 1 @@ -157,7 +157,7 @@ exports[`renderer/components/filters/UserTypeFilter.tsx should render itself & i 0 @@ -184,7 +184,7 @@ exports[`renderer/components/filters/UserTypeFilter.tsx should render itself & i Organization 0 @@ -293,7 +293,7 @@ exports[`renderer/components/filters/UserTypeFilter.tsx should render itself & i User 1 @@ -346,7 +346,7 @@ exports[`renderer/components/filters/UserTypeFilter.tsx should render itself & i 0 @@ -373,7 +373,7 @@ exports[`renderer/components/filters/UserTypeFilter.tsx should render itself & i Organization 0 diff --git a/src/renderer/components/primitives/CustomCounter.tsx b/src/renderer/components/primitives/CustomCounter.tsx index 3b1219098..fd21907fc 100644 --- a/src/renderer/components/primitives/CustomCounter.tsx +++ b/src/renderer/components/primitives/CustomCounter.tsx @@ -24,7 +24,7 @@ export const CustomCounter: FC = ({ scheme = 'secondary', }) => { const baseStyles = - 'px-1.5 py-0.75 rounded-full text-[10px] font-medium leading-none min-w-[16px] text-gitify-counter-text'; + 'px-2 py-0.25 rounded-full text-[10px] font-medium leading-none min-w-[16px] text-gitify-counter-text'; const schemeStyles = { primary: 'bg-gitify-counter-primary', diff --git a/src/renderer/components/primitives/__snapshots__/CustomCounter.test.tsx.snap b/src/renderer/components/primitives/__snapshots__/CustomCounter.test.tsx.snap index d94ab20df..e886442b1 100644 --- a/src/renderer/components/primitives/__snapshots__/CustomCounter.test.tsx.snap +++ b/src/renderer/components/primitives/__snapshots__/CustomCounter.test.tsx.snap @@ -6,7 +6,7 @@ exports[`renderer/components/primitives/CustomCounter.tsx should render itself & "baseElement":
100 @@ -14,7 +14,7 @@ exports[`renderer/components/primitives/CustomCounter.tsx should render itself & , "container":
100 diff --git a/src/renderer/routes/__snapshots__/Filters.test.tsx.snap b/src/renderer/routes/__snapshots__/Filters.test.tsx.snap index c799e84f9..f6b3da3f8 100644 --- a/src/renderer/routes/__snapshots__/Filters.test.tsx.snap +++ b/src/renderer/routes/__snapshots__/Filters.test.tsx.snap @@ -418,7 +418,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children User 0 @@ -471,7 +471,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children 0 @@ -498,7 +498,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children Organization 0 @@ -604,7 +604,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children Check Suite 0 @@ -631,7 +631,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children Commit 0 @@ -658,7 +658,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children Discussion 0 @@ -685,7 +685,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children Issue 0 @@ -712,7 +712,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children Pull Request 0 @@ -739,7 +739,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children Release 0 @@ -766,7 +766,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children Dependabot Alert 0 @@ -793,7 +793,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children Invitation 0 @@ -820,7 +820,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children Vulnerability Alert 0 @@ -847,7 +847,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children Workflow Run 0 @@ -956,7 +956,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children Draft 0 @@ -1009,7 +1009,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children 0 @@ -1036,7 +1036,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children Merged 0 @@ -1089,7 +1089,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children 0 @@ -1142,7 +1142,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children 0 @@ -1274,7 +1274,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children 0 @@ -1327,7 +1327,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children 0 @@ -1380,7 +1380,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children 0 @@ -1433,7 +1433,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children 0 @@ -1486,7 +1486,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children 0 @@ -1539,7 +1539,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children 0 @@ -1592,7 +1592,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children 0 @@ -1645,7 +1645,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children 0 @@ -1698,7 +1698,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children 0 @@ -1751,7 +1751,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children 0 @@ -1804,7 +1804,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children 0 @@ -1857,7 +1857,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children 0 @@ -1910,7 +1910,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children 0 @@ -1963,7 +1963,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children 0 @@ -2016,7 +2016,7 @@ exports[`renderer/routes/Filters.tsx General should render itself & its children 0