Commit Graph

37 Commits

Author SHA1 Message Date
Liam Fitzgerald
312b06a0e2 -make-glob: url encode clay built globs
This isn't supposed to work, but the check in the runtime is faulty. We
fix it here for backwards compatiblity.
2023-12-06 14:59:52 -05:00
fang
245503f5e7
bark: clear bark data on-opt-out
We shouldn't leave stale data in the mailchimp database, but rather wipe
any data we've collected for users that are explicitly opting out.
2023-10-05 10:24:31 +02:00
fang
7bd7e4f54b
bark: small tweaks to threads
The json serialization logic hadn't been updated correctly. We leave a
better comment for easier reference. And we want more details to look at
in the case something errors out.
2023-10-04 11:00:33 +02:00
Hunter Miller
539e468e49 threads: reference correct desk 2023-08-14 17:27:34 -05:00
Hunter Miller
19504208ea meta: 412 compat 2023-08-10 12:41:48 -05:00
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
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
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
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
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
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
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
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
Alex Shelkovnykov
ff3c55e6a2 vitals: initial commit of connectivity check agent 2023-06-16 12:11:52 -04:00
~midsum-salrux
cb9b9651ed Update reel set-ship URL 2023-05-25 13:04:32 -04:00
~midsum-salrux
981ca9b5b2 Send emails with notification count 2023-05-05 01:11:16 -04:00
tomholford
37b5136e89 devex: remove debug statements 2023-05-03 09:44:45 -07:00
tomholford
8af638839a api: send-template thread handles vars map 2023-05-03 09:28:44 -07:00
tomholford
49a5a1a9a7 api: send-template can send base template
Successfully sent an email like so:

```hoon
=vars `(map @t @t)`(malt ~[['name' 'john'] ['notifications' '1337']])
```

```
-bark!mailchimp-send-template "[KEY]" "tom@tlon.io" "landscape-weekly-digest" vars
```

TODO: handle the `vars` map
2023-05-03 07:05:29 -07:00
tomholford
9321c38db2 api: send-template thread (wip) 2023-04-27 20:00:44 -07:00
midsum-salrux
92fe772016
Merge pull request #9 from tloncorp/bark-and-growl-agents
Bark and growl agents & marks
2023-04-26 18:40:53 -04:00
tomholford
41589c1ff6 api: email thread returns a unit 2023-04-26 12:27:05 -07:00
tomholford
5e98330099 api: address PR feedback
- wutsigs are now one-liners
- clean up file comment
2023-04-26 12:24:54 -07:00
tomholford
9fe45707e4 api: handle null email response 2023-04-26 12:04:16 -07:00
tomholford
b0461ac810 api: hosting email thread 2023-04-26 12:01:27 -07:00
~midsum-salrux
8336208295 Bark and growl agents & marks 2023-04-24 18:41:14 -04:00
tomholford
6c2076e8b5 api: update send request payload 2023-04-21 14:11:07 -07:00
tomholford
53213e15e2 api: Mailchimp Send Email API 2023-04-19 22:22:53 -07:00
tomholford
fa17f1af9a api: initial Mailchimp API integration
Implements the health check call as described here:

https://mailchimp.com/developer/transactional/guides/quick-start/#make-your-first-api-call

The Production API key is stored in 1password under Tlon Hosting > Mailchimp Transactional API key
2023-04-19 21:17:54 -07:00
~midsum-salrux
1348cbf04e Update metadata on bait change 2023-03-31 15:36:25 -04:00
~midsum-salrux
f46038449e Add lure backend 2023-03-21 13:44:21 -04:00
tomholford
015d46afc6 garden: import clay + kiln changes
Co-authored-by: liam-fitzgerald <liam@tlon.io>
2022-12-02 10:22:52 -08:00
Patrick O'Sullivan
517fa6fa88 Add desk and ui dirs 2022-08-02 10:43:52 -05:00