Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
4 changes: 2 additions & 2 deletions src/components/NotificationRow.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ describe('components/NotificationRow.tsx', () => {
</AppContext.Provider>,
);

fireEvent.click(screen.getByTitle('Mark as Read'));
fireEvent.click(screen.getByTitle('Mark as read'));
expect(markNotificationRead).toHaveBeenCalledTimes(1);
});

Expand All @@ -224,7 +224,7 @@ describe('components/NotificationRow.tsx', () => {
</AppContext.Provider>,
);

fireEvent.click(screen.getByTitle('Mark as Done'));
fireEvent.click(screen.getByTitle('Mark as done'));
expect(markNotificationDone).toHaveBeenCalledTimes(1);
});

Expand Down
4 changes: 2 additions & 2 deletions src/components/NotificationRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const NotificationRow: FC<INotificationRow> = ({
<HoverGroup>
{isMarkAsDoneFeatureSupported(notification.account) && (
<InteractionButton
title="Mark as Done"
title="Mark as done"
icon={CheckIcon}
size={Size.MEDIUM}
onClick={() => {
Expand All @@ -142,7 +142,7 @@ export const NotificationRow: FC<INotificationRow> = ({
/>
)}
<InteractionButton
title="Mark as Read"
title="Mark as read"
icon={ReadIcon}
size={Size.SMALL}
onClick={() => {
Expand Down
32 changes: 16 additions & 16 deletions src/components/__snapshots__/AccountNotifications.test.tsx.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 24 additions & 24 deletions src/components/__snapshots__/NotificationRow.test.tsx.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/components/settings/NotificationSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const NotificationSettings: FC = () => {
}
tooltip={
<div>
<strong>Mark as Done</strong> feature is supported in GitHub Cloud
<strong>Mark as done</strong> feature is supported in GitHub Cloud
and GitHub Enterprise Server 3.13 or later.
</div>
}
Expand All @@ -92,7 +92,7 @@ export const NotificationSettings: FC = () => {
}
tooltip={
<div>
<strong>Mark as Done</strong> feature is supported in GitHub Cloud
<strong>Mark as done</strong> feature is supported in GitHub Cloud
and GitHub Enterprise Server 3.13 or later.
</div>
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function isEnterpriseServerHost(hostname: Hostname): boolean {

export function isMarkAsDoneFeatureSupported(account: Account): boolean {
if (isEnterpriseServerHost(account.hostname)) {
// Support for "Mark as Done" was added to GitHub Enterprise Server in v3.13 or newer
// Support for "Mark as done" was added to GitHub Enterprise Server in v3.13 or newer
if (account.version) {
const version = account?.version.split('.').map(Number);
return version[0] >= 3 && version[1] >= 13;
Expand Down