Skip to content

Commit 34de261

Browse files
Merge branch 'develop' into feat/password-update-limit
2 parents 987a165 + 28c4264 commit 34de261

File tree

10 files changed

+885
-57
lines changed

10 files changed

+885
-57
lines changed

docs/docs/auto-schema/types/objects/event.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,4 +316,4 @@ Filter criteria for event volunteers.
316316

317317
### Member Of
318318

319-
[`ActionItem`](/auto-schema/types/objects/action-item.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`AgendaCategory`](/auto-schema/types/objects/agenda-category.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`AgendaFolder`](/auto-schema/types/objects/agenda-folder.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`AgendaItem`](/auto-schema/types/objects/agenda-item.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`Event`](/auto-schema/types/objects/event.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`EventAttendee`](/auto-schema/types/objects/event-attendee.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`EventVolunteer`](/auto-schema/types/objects/event-volunteer.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`EventVolunteerGroup`](/auto-schema/types/objects/event-volunteer-group.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`OrganizationEventsConnectionEdge`](/auto-schema/types/objects/organization-events-connection-edge.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`User`](/auto-schema/types/objects/user.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`VenueEventsConnectionEdge`](/auto-schema/types/objects/venue-events-connection-edge.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`VolunteerMembership`](/auto-schema/types/objects/volunteer-membership.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/>
319+
[`ActionItem`](/auto-schema/types/objects/action-item.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`AgendaCategory`](/auto-schema/types/objects/agenda-category.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`AgendaFolder`](/auto-schema/types/objects/agenda-folder.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`AgendaItem`](/auto-schema/types/objects/agenda-item.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`Event`](/auto-schema/types/objects/event.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`EventAttendee`](/auto-schema/types/objects/event-attendee.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`EventVolunteer`](/auto-schema/types/objects/event-volunteer.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`EventVolunteerGroup`](/auto-schema/types/objects/event-volunteer-group.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`OrganizationEventPreviewDay`](/auto-schema/types/objects/organization-event-preview-day.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`OrganizationEventsConnectionEdge`](/auto-schema/types/objects/organization-events-connection-edge.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`User`](/auto-schema/types/objects/user.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`VenueEventsConnectionEdge`](/auto-schema/types/objects/venue-events-connection-edge.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/><Bullet />[`VolunteerMembership`](/auto-schema/types/objects/volunteer-membership.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/>
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
---
2+
id: organization-event-preview-day
3+
title: OrganizationEventPreviewDay
4+
---
5+
6+
export const Bullet = () => (
7+
<>
8+
<span
9+
style={{
10+
fontWeight: "normal",
11+
fontSize: ".5em",
12+
color: "var(--ifm-color-secondary-darkest)",
13+
}}
14+
>
15+
&nbsp;&nbsp;
16+
</span>
17+
</>
18+
);
19+
20+
export const SpecifiedBy = (props) => (
21+
<>
22+
Specification
23+
<a
24+
className="link"
25+
style={{ fontSize: "1.5em", paddingLeft: "4px" }}
26+
target="_blank"
27+
href={props.url}
28+
title={"Specified by " + props.url}
29+
>
30+
31+
</a>
32+
</>
33+
);
34+
35+
export const Badge = (props) => (
36+
<>
37+
<span className={props.class}>{props.text}</span>
38+
</>
39+
);
40+
41+
import { useState } from "react";
42+
43+
export const Details = ({
44+
dataOpen,
45+
dataClose,
46+
children,
47+
startOpen = false,
48+
}) => {
49+
const [open, setOpen] = useState(startOpen);
50+
return (
51+
<details
52+
{...(open ? { open: true } : {})}
53+
className="details"
54+
style={{
55+
border: "none",
56+
boxShadow: "none",
57+
background: "var(--ifm-background-color)",
58+
}}
59+
>
60+
<summary
61+
onClick={(e) => {
62+
e.preventDefault();
63+
setOpen((open) => !open);
64+
}}
65+
style={{ listStyle: "none" }}
66+
>
67+
{open ? dataOpen : dataClose}
68+
</summary>
69+
{open && children}
70+
</details>
71+
);
72+
};
73+
74+
Preview data for one calendar day, including capped events and whether more events exist.
75+
76+
```graphql
77+
type OrganizationEventPreviewDay {
78+
date: String
79+
events: [Event!]
80+
hasMore: Boolean
81+
totalCount: Int
82+
}
83+
```
84+
85+
### Fields
86+
87+
#### [<code style={{ fontWeight: 'normal' }}>OrganizationEventPreviewDay.<b>date</b></code>](#)<Bullet />[<code style={{ fontWeight: 'normal' }}><b>String</b></code>](/auto-schema/types/scalars/string.mdx) <Badge class="badge badge--secondary " text="scalar"/>
88+
89+
#### [<code style={{ fontWeight: 'normal' }}>OrganizationEventPreviewDay.<b>events</b></code>](#)<Bullet />[<code style={{ fontWeight: 'normal' }}><b>[Event!]</b></code>](/auto-schema/types/objects/event.mdx) <Badge class="badge badge--secondary " text="list"/> <Badge class="badge badge--secondary " text="object"/>
90+
91+
#### [<code style={{ fontWeight: 'normal' }}>OrganizationEventPreviewDay.<b>hasMore</b></code>](#)<Bullet />[<code style={{ fontWeight: 'normal' }}><b>Boolean</b></code>](/auto-schema/types/scalars/boolean.mdx) <Badge class="badge badge--secondary " text="scalar"/>
92+
93+
#### [<code style={{ fontWeight: 'normal' }}>OrganizationEventPreviewDay.<b>totalCount</b></code>](#)<Bullet />[<code style={{ fontWeight: 'normal' }}><b>Int</b></code>](/auto-schema/types/scalars/int.mdx) <Badge class="badge badge--secondary " text="scalar"/>
94+
95+
### Member Of
96+
97+
[`Organization`](/auto-schema/types/objects/organization.mdx) <Badge class="badge badge--secondary badge--relation" text="object"/>

docs/docs/auto-schema/types/objects/organization.mdx

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,17 @@ type Organization {
118118
first: Int
119119
includeRecurring: Boolean
120120
last: Int
121+
onlyStartOnDay: Boolean
121122
startDate: DateTime
122123
upcomingOnly: Boolean
123124
): OrganizationEventsConnection
124125
eventsCount: Int
126+
eventsPreview(
127+
endDate: DateTime
128+
includeRecurring: Boolean
129+
perDayLimit: Int
130+
startDate: DateTime
131+
): [OrganizationEventPreviewDay!]
125132
funds(
126133
after: String
127134
before: String
@@ -304,6 +311,10 @@ Whether to include materialized instances from recurring events (default: true)
304311

305312
##### [<code style={{ fontWeight: 'normal' }}>Organization.events.<b>last</b></code>](#)<Bullet />[<code style={{ fontWeight: 'normal' }}><b>Int</b></code>](/auto-schema/types/scalars/int.mdx) <Badge class="badge badge--secondary " text="scalar"/>
306313

314+
##### [<code style={{ fontWeight: 'normal' }}>Organization.events.<b>onlyStartOnDay</b></code>](#)<Bullet />[<code style={{ fontWeight: 'normal' }}><b>Boolean</b></code>](/auto-schema/types/scalars/boolean.mdx) <Badge class="badge badge--secondary " text="scalar"/>
315+
316+
When true, return only events whose start day matches the requested day window.
317+
307318
##### [<code style={{ fontWeight: 'normal' }}>Organization.events.<b>startDate</b></code>](#)<Bullet />[<code style={{ fontWeight: 'normal' }}><b>DateTime</b></code>](/auto-schema/types/scalars/date-time.mdx) <Badge class="badge badge--secondary " text="scalar"/>
308319

309320
Start date for filtering events (defaults to today)
@@ -316,6 +327,26 @@ Filter to only show upcoming events (events that haven't ended yet). When true,
316327

317328
Total number of events in the organization.
318329

330+
#### [<code style={{ fontWeight: 'normal' }}>Organization.<b>eventsPreview</b></code>](#)<Bullet />[<code style={{ fontWeight: 'normal' }}><b>[OrganizationEventPreviewDay!]</b></code>](/auto-schema/types/objects/organization-event-preview-day.mdx) <Badge class="badge badge--secondary " text="list"/> <Badge class="badge badge--secondary " text="object"/>
331+
332+
Calendar preview grouped by day with a capped number of events per day.
333+
334+
##### [<code style={{ fontWeight: 'normal' }}>Organization.eventsPreview.<b>endDate</b></code>](#)<Bullet />[<code style={{ fontWeight: 'normal' }}><b>DateTime</b></code>](/auto-schema/types/scalars/date-time.mdx) <Badge class="badge badge--secondary " text="scalar"/>
335+
336+
End date for preview filtering (defaults to one month from start date)
337+
338+
##### [<code style={{ fontWeight: 'normal' }}>Organization.eventsPreview.<b>includeRecurring</b></code>](#)<Bullet />[<code style={{ fontWeight: 'normal' }}><b>Boolean</b></code>](/auto-schema/types/scalars/boolean.mdx) <Badge class="badge badge--secondary " text="scalar"/>
339+
340+
Whether recurring event instances should be included in preview.
341+
342+
##### [<code style={{ fontWeight: 'normal' }}>Organization.eventsPreview.<b>perDayLimit</b></code>](#)<Bullet />[<code style={{ fontWeight: 'normal' }}><b>Int</b></code>](/auto-schema/types/scalars/int.mdx) <Badge class="badge badge--secondary " text="scalar"/>
343+
344+
Maximum events returned per day in preview.
345+
346+
##### [<code style={{ fontWeight: 'normal' }}>Organization.eventsPreview.<b>startDate</b></code>](#)<Bullet />[<code style={{ fontWeight: 'normal' }}><b>DateTime</b></code>](/auto-schema/types/scalars/date-time.mdx) <Badge class="badge badge--secondary " text="scalar"/>
347+
348+
Start date for preview filtering (defaults to current day)
349+
319350
#### [<code style={{ fontWeight: 'normal' }}>Organization.<b>funds</b></code>](#)<Bullet />[<code style={{ fontWeight: 'normal' }}><b>OrganizationFundsConnection</b></code>](/auto-schema/types/objects/organization-funds-connection.mdx) <Badge class="badge badge--secondary " text="object"/>
320351

321352
GraphQL connection to traverse through the funds belonging to the organization.

docs/docs/auto-schema/types/scalars/boolean.mdx

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)