Commit Graph

566 Commits

Author SHA1 Message Date
Zach Alberico
9ce8b0e8c5
Merge pull request #208 from tloncorp/m/bark-unhark
bark: remove /sur/hark dependency from thread
2023-08-02 13:47:38 -07:00
Zach Alberico
9e972fe116
Merge pull request #209 from tloncorp/m/bark-safer-summary
lib: avoid crash during activity summarization
2023-08-02 13:47:30 -07:00
Zach Alberico
ddf7ab9206
Merge pull request #210 from tloncorp/m/bark-on-thread
bark: correctly handle save-summary thread results
2023-08-02 13:47:12 -07:00
fang
63396625df
bark: don't crash on no-mail summary saving
Instead, give a %no-mail response message. It's not entirely unexpected
to encounter ships that don't have a hosting account email address
associated with them, so it shouldn't be a reason to crash.

The crash is particularly problematic because as of the previous
commits, we now actually show the trace of thread crashes.
2023-07-28 21:22:17 +02:00
fang
1f0456d08b
bark: correctly handle save-summary thread results
We weren't accounting for the different wire used for this, causing us
to spill our spaghetti and redirect processing to +on-fail, which wasn't
very graceful.

Now, we can actually properly notify on failed thread runs.
2023-07-28 21:05:03 +02:00
fang
e3bb719986
bark: don't crash during +on-fail 2023-07-28 21:04:40 +02:00
fang
3b3797135a
lib: avoid crash during activity summarization
There is a (somewhat poorly understood) case where the group associated
with a chat may not actually contain that chat in its channels listing.

Here, instead of assuming the channel is always present, we ask for it
more gently, and simply skip to the next-most-active channel if it turns
out to be missing.

We also remove a stray debug printf, and add a trace print in case
anything else goes wrong here.
2023-07-28 20:43:13 +02:00
fang
cfaca77569
bark: remove /sur/hark dependency from thread
The "save summary" thread still had hark flagged as one of its dependencies,
but doesn't actually use that for anything anymore.

Here we simply remove the import.
2023-07-28 20:34:41 +02:00
jamesacklin
9b0d62e511 version bump: 1 14 0 [skip actions] 2023-07-25 17:54:27 +00:00
james acklin
b04dfc7a3c
Merge pull request #206 from tloncorp/m/bark-growl
bark, growl: activity summary logging
2023-07-25 13:38:34 -04:00
github-actions
192adcff2b update glob: [skip actions] 2023-07-25 15:17:37 +00:00
Hunter Miller
a7f306b005
Merge pull request #207 from tloncorp/land-498-show-spinner-while-loading-storage-settings
storage: show loading spinner while loading storage settings
2023-07-25 10:15:05 -05:00
Daniel Tischenko
756bce9feb Show loading spinner while loading storage settings (to make it clear that the fields are disabled) 2023-07-25 15:35:53 +03:00
fang
7455e2d778
bark, growl: activity summary logging
Includes the bark/growl system for sharing activity summaries. The growl
agent respects the "activity logging" consent flag used by groups,
defaults to not sharing if that flag is not set, and only shares with
the "bark host" when prompted. (The bark host, in turn, currently only
stores responses for hosted ships.)

Also includes all the groups-side dependencies this has, which it needs
for the chats & groups types. Hard-including those files will save us
some run-around during deploy.

Co-authored-by: midsum-salrux <nathan@tlon.io>
2023-07-24 22:27:29 +02:00
fang
166f70578d
various: remove unused /sur/hark dependency 2023-07-24 21:44:06 +02:00
fang
b7437f5069
Merge pull request #27 from tloncorp/m/new-summaries
bark: new summaries, save to mailchimp
2023-07-24 20:22:55 +02:00
github-actions
7881436fd9 update glob: [skip actions] 2023-07-21 17:13:37 +00:00
james acklin
b781bda1ad
Merge pull request #205 from tloncorp/update-wayfinding
update wayfinding to reference Tlon Local
2023-07-21 13:11:30 -04:00
fang
70b102c818
growl: en/disable based on logActivity setting 2023-07-21 18:42:51 +02:00
fang
ba534b31cd
growl: correct defaults 2023-07-21 18:42:19 +02:00
Daniel O'Sullivan
105d849fd3 update wayfinding to reference Tlon Local 2023-07-20 22:30:59 -05:00
fang
aca4e32f91
bark: remove debug printf 2023-07-20 18:57:26 +02:00
fang
312ee60dc9
bark: assume deployment into the garden desk 2023-07-20 15:21:03 +02:00
fang
2e429f86f2
bark: update summary mark for recent changes 2023-07-19 20:23:56 +02:00
fang
6d61042794
bark: minimally viable fake-mark handling 2023-07-19 20:23:39 +02:00
fang
102c439b75
bark: clarify mandrill vs mailchimp api key
Sending on-demand emails requires a Mandrill API key, not a Mailchimp
one. (They're part of the same company/suite now, but still use
different keys and endpoints. Mandrill and Mailchimp keys are also
called "mailchimp" and "marketing" keys respectively. Yes, in that
order.)
2023-07-18 23:33:15 +02:00
fang
3945cc1f5f
bark: store mailchimp list-id in bark
Alongside the mailchimp api key, we now store the list-id for the
contacts lists which we're updating.
2023-07-18 23:31:30 +02:00
fang
244ad7e7c5
bark: fix compilation error in merge fields thread
We had removed the %hark case, but not the codepaths dealing with it.
2023-07-18 23:29:18 +02:00
fang
fa5cc3546d
lib: clarify magic numbers in /lib/summarize 2023-07-18 22:50:47 +02:00
fang
8b6d268745
bark: automatically run daily summary generation 2023-07-14 19:57:28 +02:00
fang
f2fec50b50
bark: stop handling old summary response types
Growl isn't actually live on any ships yet, so we do not need to account
for this case.
2023-07-14 19:30:58 +02:00
fang
7cfff00218
growl: use /lib/summarize to give better summaries 2023-07-14 18:08:16 +02:00
fang
2b1e185469
lib: dumb summarization utilities for groups
Helps us retrieve simple numerical summaries of groups (in)activity,
such as number of messages sent, amount of unreads, most active group,
etc.
2023-07-14 18:06:57 +02:00
fang
f5e32a54d0
bark: accept new-style summaries
And use the -save-summary thread to add the received details to our
mailchimp contact database.
2023-07-14 18:04:23 +02:00
fang
e29b6d5cdd
api: add thread for saving mailchimp merge fields
This lets us associate simple data with our mailchimp contacts.
2023-07-14 18:02:39 +02:00
github-actions
d12895c594 update glob: [skip actions] 2023-07-12 21:52:11 +00:00
Hunter Miller
34d288d4b6
Merge pull request #204 from tloncorp/po/app-install-notification
docket: notify on long-running app install
2023-07-12 16:50:04 -05:00
Hunter Miller
44a560f9c5 hark: update to new types 2023-07-12 16:08:06 -05:00
Patrick O'Sullivan
3970ace734 notify on long-running app install, use react-query for docket
- Adds a mutation to create a yarn from the frontend.
- Adds a new zustand state for tracking actions that could take a while (WatcherStore).
- Switches docket over to react-query (added a new scry endpoint as part of this).
2023-07-11 18:08:04 -05:00
github-actions
a7de1fcccd update glob: [skip actions] 2023-07-05 23:44:53 +00:00
james acklin
29037dcbe8
Merge pull request #203 from polwex/recommend-trill
added Trill to app recommendation list
2023-07-05 19:42:43 -04:00
~polwex
12e74f45c2 added Trill to app recommendation list 2023-07-03 18:13:10 +07:00
github-actions
ff8b71819e update glob: [skip actions] 2023-06-30 11:16:03 +00:00
jamesacklin
ddf3770b8f version bump: 1 13 0 [skip actions] 2023-06-29 18:47:50 +00:00
github-actions
a62990209d update glob: [skip actions] 2023-06-29 16:32:04 +00:00
Patrick O'Sullivan
fb9be7727d
Merge pull request #202 from tloncorp/hm/show-disconnect-reason
app-search: show connection issues when finished
2023-06-29 11:30:12 -05:00
Patrick O'Sullivan
929509f2d3
Merge pull request #201 from tloncorp/hm/fix-storage
storage: use correct keys
2023-06-29 11:29:43 -05:00
Hunter Miller
f874f83714 app-search: show connection issues when finished 2023-06-29 11:16:36 -05:00
Hunter Miller
a137ab6451 storage: use correct keys 2023-06-29 11:08:16 -05:00
github-actions
4ba9731339 update glob: [skip actions] 2023-06-28 22:19:43 +00:00