@@ -2,19 +2,12 @@ import { webFrame } from 'electron';
22import { type FC , useContext , useState } from 'react' ;
33
44import {
5- CheckIcon ,
6- CommentIcon ,
75 DashIcon ,
8- GitPullRequestIcon ,
9- IssueClosedIcon ,
10- MilestoneIcon ,
116 PaintbrushIcon ,
127 PlusIcon ,
13- TagIcon ,
148 XCircleIcon ,
159} from '@primer/octicons-react' ;
1610import {
17- Box ,
1811 Button ,
1912 ButtonGroup ,
2013 IconButton ,
@@ -24,7 +17,7 @@ import {
2417} from '@primer/react' ;
2518
2619import { AppContext } from '../../context/App' ;
27- import { Size , Theme } from '../../types' ;
20+ import { Theme } from '../../types' ;
2821import { hasMultipleAccounts } from '../../utils/auth/utils' ;
2922import { zoomLevelToPercentage , zoomPercentageToLevel } from '../../utils/zoom' ;
3023import { Checkbox } from '../fields/Checkbox' ;
@@ -157,108 +150,6 @@ export const AppearanceSettings: FC = () => {
157150 </ ButtonGroup >
158151 </ Stack >
159152
160- < Checkbox
161- name = "detailedNotifications"
162- label = "Detailed notifications"
163- checked = { settings . detailedNotifications }
164- onChange = { ( evt ) =>
165- updateSetting ( 'detailedNotifications' , evt . target . checked )
166- }
167- tooltip = {
168- < Stack direction = "vertical" gap = "condensed" >
169- < Text >
170- Enrich notifications with detailed user and state information.
171- </ Text >
172- < Text >
173- You may also choose to display{ ' ' }
174- < Text as = "strong" > notification metric pills</ Text > or{ ' ' }
175- < Text as = "strong" > notification numbers</ Text > .
176- </ Text >
177- < Text className = "text-gitify-caution" >
178- ⚠️ Users with a large number of unread notifications < i > may</ i > { ' ' }
179- experience rate limiting under certain circumstances. Please
180- disable this setting if you experience this.
181- </ Text >
182- </ Stack >
183- }
184- />
185-
186- < Box className = "pl-6" hidden = { ! settings . detailedNotifications } >
187- < Stack direction = "vertical" gap = "condensed" >
188- < Checkbox
189- name = "showPills"
190- label = "Show notification metric pills"
191- checked = { settings . showPills }
192- onChange = { ( evt ) => updateSetting ( 'showPills' , evt . target . checked ) }
193- tooltip = {
194- < Stack direction = "vertical" gap = "condensed" >
195- < Text > Show notification metric pills for:</ Text >
196- < Box className = "pl-4" >
197- < ul >
198- < li className = "flex items-center gap-1" >
199- < IssueClosedIcon size = { Size . SMALL } />
200- linked issues
201- </ li >
202- < li className = "flex items-center gap-1" >
203- < CheckIcon size = { Size . SMALL } />
204- pr reviews
205- </ li >
206- < li className = "flex items-center gap-1" >
207- < CommentIcon size = { Size . SMALL } />
208- comments
209- </ li >
210- < li className = "flex items-center gap-1" >
211- < TagIcon size = { Size . SMALL } />
212- labels
213- </ li >
214- < li className = "flex items-center gap-1" >
215- < MilestoneIcon size = { Size . SMALL } />
216- milestones
217- </ li >
218- </ ul >
219- </ Box >
220- </ Stack >
221- }
222- />
223-
224- < Checkbox
225- name = "showNumber"
226- label = "Show notification number"
227- checked = { settings . showNumber }
228- onChange = { ( evt ) =>
229- updateSetting ( 'showNumber' , evt . target . checked )
230- }
231- tooltip = {
232- < Stack direction = "vertical" gap = "condensed" >
233- < Text > Show GitHub number for:</ Text >
234- < Box className = "pl-4" >
235- < ul >
236- < li >
237- < Stack direction = "horizontal" gap = "condensed" >
238- < CommentIcon size = { Size . SMALL } />
239- Discussion
240- </ Stack >
241- </ li >
242- < li >
243- < Stack direction = "horizontal" gap = "condensed" >
244- < IssueClosedIcon size = { Size . SMALL } />
245- Issue
246- </ Stack >
247- </ li >
248- < li >
249- < Stack direction = "horizontal" gap = "condensed" >
250- < GitPullRequestIcon size = { Size . SMALL } />
251- Pull Request
252- </ Stack >
253- </ li >
254- </ ul >
255- </ Box >
256- </ Stack >
257- }
258- />
259- </ Stack >
260- </ Box >
261-
262153 < Checkbox
263154 name = "showAccountHeader"
264155 label = "Show account header"
0 commit comments