-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Daily announcement UI improvements #74
Comments
New announcement settings:
Showcasing an event is just formatting it with If one event is happening before the next scheduled announcement (typically, if it is "today" in the local time zone, but events that begin after midnight still count, as do events that begin in more than 24 hours when If two start within that window, we have three choices:
If no events begin before the next announcement, we'll pick one from the upcoming set based on the day of the year (as is used to round robin preambles). Ideally, we might want to try to only showcase an event twice per week. (Twice per Since the number of events in the current period can change every day as the period's begin/end advances (dropping past events and adding further-away upcoming ones), the geometry of the showcase schedule could constantly change too, leading to one event possibly ending up being showcased every day for a week. This might further suggest we should actually record when an event was last showcased (per-bot and per-group, rather than in the calendar itself). The geometry of the showcase schedule could therefore change every day without risking repeating the same event (or otherwise showing them out of order). This could even be used to showcase events outside the defined An alternative to the self-configuring, probablistic approach would be to add a third new option, |
So far all I've actually come up with are "flair" banners provided (and automatically used) by Google. I haven't found any official documentation so far, but several lists include:
Not a list, but official acknowledgment:
The flair is defined as an identifier followed by one or more phrases, which presumably are checked along the lines of converting spaces to The images are hosted at |
…llowing the document:DOCUMENT_ID / photo:PHOTO_ID text. See nmlorg/metabot#74.
… announcements if the first event listed matches on of its patterns. Note that the selection of flair (both whether flair is displayed or not, and which image is used) is currently decided permanently during the initial daily announcement. If the first event is removed, pushed down by a new event, or changes its summary/description to no longer match the chosen image, the image will remain in place; only the text will be updated. See #74.
For groups that don't use the bot's daily announcements, it's very common for their manual announcements to include only one event at a time, and include a large write-up about it, sometimes additionally including a picture (either some topical clipart or an actual flier).
It might be possible to have the daily announcement format changed to reference the next upcoming event primarily, and use its
description
as the write-up.Probably only one event per announcement should be expanded, but all events that would currently be shown should still be included.
One approach would be to pick an interval (say, 5-6 days), then pick one event that starts during that interval (either arbitrarily—like the first/last/longest/shortest—or at random), and render it in long form at the stop (in place of the preamble), then the rest of the list (with or without the selected event (in its natural position)) beneath it.
Current:
possibility (assuming Alpha is in 4.5 days, Bravo is happening in 5.5 days, Charlie is in 6.5 days):
Regardless of if/how this main change is made, it might be useful to restore the behavior of adding a line to the very end saying:
For images, the announcement could be changed from a sendMessage to a sendPhoto, though the text of the message will become a "caption" instead—and will be limited to 1024 characters. Theoretically I can get manually set event images from Google Calendar API in the form of attachments, though I'll have to experiment further, and even if possible it might be the case that nobody is actually attaching relevant images to their events.
The text was updated successfully, but these errors were encountered: