-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminutes_prep.qmd
107 lines (76 loc) · 2.46 KB
/
minutes_prep.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
---
title: "Minutes Document Writer"
format:
html:
toc: true
echo: false
---
```{r}
#| output: false
library(openxlsx2)
library(dplyr)
people_df <- read_xlsx("data/wg_attendees.xlsx", sheet = 1) |>
mutate(name2 = paste0(name, " (", affiliation, ")")) |>
arrange(name) |>
select(-affiliation_url)
ojs_define(people_data = people_df)
```
# Instructions
This interactive page creates a template Quarto document text for capturing meeting minutes associated with the Pilot 4 working group.
## Date Selection
Use the date input below to choose the date of the meeting. Click the calendar icon in the widget to launch the UI.
```{ojs}
viewof meeting_date = Inputs.date({
label: "Meeting Date",
value: "2023-08-04"
})
```
```{ojs}
meeting_year = (meeting_date.getFullYear()).toString()
meeting_month = (meeting_date.getMonth() + 1).toString().padStart(2, "0")
meeting_day = (meeting_date.getDate() + 1).toString().padStart(2, "0")
meeting_array = [meeting_year, meeting_month, meeting_day]
meeting_print = meeting_array.join("-")
```
## Attendee Selection
Use the personnel table below to select the attendees present at the meeting by checking the box that appears once you hover your cursor above a name. The table is ordered alphabetically by first name as default, but you can sort by a different column by clicking the column name.
::: {.callout-warning}
If an attendee is not listed in this table, please add their name, affiliation, and affiliation URL to the `wg_attendees.xlsx` spreadsheet located in the `data` subdirectory of this repository. After your edits to the spreadsheet are completed, re-build the Quarto site.
:::
```{ojs}
data2 = transpose(people_data)
```
```{ojs}
viewof people_selection = Inputs.table(data2, {
sort: "name",
multiple: true,
rows: 40,
required: false
})
```
# Output
## Setup
In your local copy of this repository, create a sub-directory within the `minutes` directory to hold files associated with this meeting's minutes. Based on your selection above, create the following directory:
```{ojs}
meeting_print
```
Copy the text in the output below into a new Quarto document named `index.qmd`.
```{ojs}
silly = html`${Array.from(new Set(people_selection.map(c => c.name2)))
.sort()
.map(c => `- ${c}`)
.join("\n")}`
silly2 = html`<pre>---
title: "Minutes ${meeting_print}"
date: ${meeting_print}
---
::: {.callout-tip collapse="true"}
## View Attendee List
${silly}
:::
## Add Minutes Here
</pre>`
```
```{ojs}
silly2
```