Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
28b8458
feat: search notifications
setchy Sep 6, 2025
fc1375d
feat: search notifications
setchy Sep 6, 2025
4ac7d00
feat: search notifications
setchy Sep 6, 2025
b32ceb4
feat: search notifications
setchy Sep 6, 2025
7b315e7
feat: search notifications
setchy Sep 6, 2025
cc755af
Merge remote-tracking branch 'origin/main' into feat/filter-search
setchy Sep 8, 2025
173e525
feat: search notifications
setchy Sep 8, 2025
699208c
feat: search notifications
setchy Sep 8, 2025
e0b1568
feat: search notifications
setchy Sep 8, 2025
7ef4870
feat: search notifications
setchy Sep 8, 2025
4860d46
feat: search notifications
setchy Sep 8, 2025
bb4d377
feat: search notifications
setchy Sep 8, 2025
c6f3bdc
feat: search notifications
setchy Sep 8, 2025
fbf94ca
feat: search notifications
setchy Sep 8, 2025
f6f60d2
feat: search notifications
setchy Sep 8, 2025
19f81b2
feat: search notifications
setchy Sep 8, 2025
ee00527
feat: search notifications
setchy Sep 8, 2025
4f31c3e
feat: search notifications
setchy Sep 8, 2025
389f2c5
feat: search notifications
setchy Sep 8, 2025
af62e4c
feat: search notifications
setchy Sep 8, 2025
236a624
feat: search notifications
setchy Sep 8, 2025
c0d2ecc
feat: search notifications
setchy Sep 8, 2025
4487404
feat: search notifications
setchy Sep 8, 2025
02aca71
feat: search notifications
setchy Sep 8, 2025
3d507f5
feat: search notifications
setchy Sep 8, 2025
a9ea65c
feat: search notifications
setchy Sep 8, 2025
ade4e3c
feat: search notifications
setchy Sep 8, 2025
1e127d3
Merge branch 'main' into feat/filter-search
setchy Sep 9, 2025
0863454
Merge branch 'main' into feat/filter-search
setchy Sep 9, 2025
028d5f9
Merge branch 'main' into feat/filter-search
setchy Sep 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"useDefaultSwitchClause": "error",
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useBlockStatements": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
Expand Down
8 changes: 6 additions & 2 deletions src/main/updater.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ const listeners: ListenerMap = {};
jest.mock('electron-updater', () => ({
autoUpdater: {
on: jest.fn((event: string, cb: Listener) => {
if (!listeners[event]) listeners[event] = [];
if (!listeners[event]) {
listeners[event] = [];
}
listeners[event].push(cb);
return this;
}),
Expand Down Expand Up @@ -66,7 +68,9 @@ describe('main/updater.ts', () => {

beforeEach(() => {
jest.clearAllMocks();
for (const k of Object.keys(listeners)) delete listeners[k];
for (const k of Object.keys(listeners)) {
delete listeners[k];
}

menubar = {
app: {
Expand Down
4 changes: 3 additions & 1 deletion src/main/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ export default class AppUpdater {
};

dialog.showMessageBox(dialogOpts).then((returnValue) => {
if (returnValue.response === 0) autoUpdater.quitAndInstall();
if (returnValue.response === 0) {
autoUpdater.quitAndInstall();
}
});
}
}
4 changes: 3 additions & 1 deletion src/renderer/__mocks__/partial-mocks.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { Constants } from '../constants';
import type { Hostname, Link } from '../types';
import type { Notification, Subject, User } from '../typesGitHub';
import type { Notification, Repository, Subject, User } from '../typesGitHub';
import { mockGitifyUser, mockToken } from './state-mocks';

export function partialMockNotification(
subject: Partial<Subject>,
repository?: Partial<Repository>,
): Notification {
const mockNotification: Partial<Notification> = {
account: {
Expand All @@ -16,6 +17,7 @@ export function partialMockNotification(
hasRequiredScopes: true,
},
subject: subject as Subject,
repository: repository as Repository,
};

return mockNotification as Notification;
Expand Down
6 changes: 2 additions & 4 deletions src/renderer/__mocks__/state-mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,8 @@ const mockSystemSettings: SystemSettingsState = {

const mockFilters: FilterSettingsState = {
filterUserTypes: [],
filterIncludeHandles: [],
filterExcludeHandles: [],
filterIncludeOrganizations: [],
filterExcludeOrganizations: [],
filterIncludeSearchTokens: [],
filterExcludeSearchTokens: [],
filterSubjectTypes: [],
filterStates: [],
filterReasons: [],
Expand Down
130 changes: 0 additions & 130 deletions src/renderer/components/filters/OrganizationFilter.test.tsx

This file was deleted.

Loading
Loading