update the filter value to use is:reading of the Continue Reading filter

This commit is contained in:
Hongbo Wu
2023-10-10 15:33:59 +08:00
parent 29c8786057
commit 768845e101
4 changed files with 27 additions and 2 deletions

View File

@ -155,7 +155,10 @@ const createDefaultFiltersForUser =
async (userId: string): Promise<Filter[]> => {
const defaultFilters = [
{ name: 'Inbox', filter: 'in:inbox' },
{ name: 'Continue Reading', filter: 'in:inbox sort:read-desc is:unread' },
{
name: 'Continue Reading',
filter: 'in:inbox sort:read-desc is:reading',
},
{ name: 'Non-Feed Items', filter: 'in:library' },
{ name: 'Highlights', filter: 'has:highlights mode:highlights' },
{ name: 'Unlabeled', filter: 'no:label' },

View File

@ -0,0 +1,11 @@
-- Type: DO
-- Name: update_continue_reading_filter
-- Description: Update the filter value in the Continue Reading filter
BEGIN;
UPDATE omnivore.filters
SET filter = 'in:inbox sort:read-desc is:reading'
WHERE name = 'Continue Reading' AND default_filter = true;
COMMIT;

View File

@ -0,0 +1,11 @@
-- Type: UNDO
-- Name: update_continue_reading_filter
-- Description: Update the filter value in the Continue Reading filter
BEGIN;
UPDATE omnivore.filters
SET filter = 'in:inbox sort:read-desc is:unread'
WHERE name = 'Continue Reading' AND default_filter = true;
COMMIT;

View File

@ -167,7 +167,7 @@ export const EmptyLibrary = (props: EmptyLibraryProps) => {
switch (props.searchTerm) {
case 'in:inbox':
return 'inbox'
case 'in:inbox sort:read-desc is:unread':
case 'in:inbox sort:read-desc is:reading':
return 'continue'
case 'in:library':
return 'non-feed'