Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3499736
D6457.id21555.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D6457.id21555.diff
View Options
diff --git a/keyserver/src/responders/entry-responders.js b/keyserver/src/responders/entry-responders.js
--- a/keyserver/src/responders/entry-responders.js
+++ b/keyserver/src/responders/entry-responders.js
@@ -71,6 +71,10 @@
type: tString(calendarThreadFilterTypes.THREAD_LIST),
threadIDs: t.list(t.String),
}),
+ tShape({
+ type: tString(calendarThreadFilterTypes.COMMUNITY),
+ threadIDs: t.list(t.String),
+ }),
]),
),
});
diff --git a/lib/types/filter-types.js b/lib/types/filter-types.js
--- a/lib/types/filter-types.js
+++ b/lib/types/filter-types.js
@@ -5,16 +5,24 @@
export const calendarThreadFilterTypes = Object.freeze({
THREAD_LIST: 'threads',
NOT_DELETED: 'not_deleted',
+ COMMUNITY: 'community',
});
export type CalendarThreadFilterType = $Values<
typeof calendarThreadFilterTypes,
>;
+export type CalendarCommunityFilter = {
+ +type: 'community',
+ +threadIDs: $ReadOnlyArray<string>,
+};
export type CalendarThreadFilter = {
+type: 'threads',
+threadIDs: $ReadOnlyArray<string>,
};
-export type CalendarFilter = { +type: 'not_deleted' } | CalendarThreadFilter;
+export type CalendarFilter =
+ | { +type: 'not_deleted' }
+ | CalendarThreadFilter
+ | CalendarCommunityFilter;
export const defaultCalendarFilters: $ReadOnlyArray<CalendarFilter> = [
{ type: calendarThreadFilterTypes.NOT_DELETED },
@@ -23,6 +31,8 @@
export const updateCalendarThreadFilter = 'UPDATE_CALENDAR_THREAD_FILTER';
export const clearCalendarThreadFilter = 'CLEAR_CALENDAR_THREAD_FILTER';
export const setCalendarDeletedFilter = 'SET_CALENDAR_DELETED_FILTER';
+export const updateCalendarCommunityFilter = 'UPDATE_CALENDAR_COMMUNITY_FILTER';
+export const clearCalendarCommunityFilter = 'CLEAR_CALENDAR_COMMUNITY_FILTER';
export type SetCalendarDeletedFilterPayload = {
+includeDeleted: boolean,
diff --git a/lib/types/redux-types.js b/lib/types/redux-types.js
--- a/lib/types/redux-types.js
+++ b/lib/types/redux-types.js
@@ -30,6 +30,7 @@
CalendarFilter,
CalendarThreadFilter,
SetCalendarDeletedFilterPayload,
+ CalendarCommunityFilter,
} from './filter-types';
import type { LifecycleState } from './lifecycle-state-types';
import type { LoadingStatus, LoadingInfo } from './loading-types';
@@ -678,6 +679,14 @@
+type: 'SET_CALENDAR_DELETED_FILTER',
+payload: SetCalendarDeletedFilterPayload,
}
+ | {
+ +type: 'UPDATE_CALENDAR_COMMUNITY_FILTER',
+ +payload: CalendarCommunityFilter,
+ }
+ | {
+ +type: 'CLEAR_CALENDAR_COMMUNITY_FILTER',
+ +payload: void,
+ }
| {
+type: 'UPDATE_SUBSCRIPTION_STARTED',
+payload?: void,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 12:03 AM (17 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2684017
Default Alt Text
D6457.id21555.diff (2 KB)
Attached To
Mode
D6457: [web] Add calendar filter type for displaying only one community
Attached
Detach File
Event Timeline
Log In to Comment