@lightupai/polaris 0.0.44 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: Community activity alerts
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
discussion:
|
|
5
|
+
types: [created]
|
|
6
|
+
discussion_comment:
|
|
7
|
+
types: [created]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
notify:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- name: Post to Slack
|
|
14
|
+
env:
|
|
15
|
+
SLACK_BOT_TOKEN: ${{ secrets.SIGNUP_SLACK_BOT_TOKEN }}
|
|
16
|
+
run: |
|
|
17
|
+
if [ "${{ github.event_name }}" = "discussion" ]; then
|
|
18
|
+
TITLE="${{ github.event.discussion.title }}"
|
|
19
|
+
AUTHOR="${{ github.event.discussion.user.login }}"
|
|
20
|
+
URL="${{ github.event.discussion.html_url }}"
|
|
21
|
+
CATEGORY="${{ github.event.discussion.category.name }}"
|
|
22
|
+
TEXT=":speech_balloon: New discussion in *${CATEGORY}*: <${URL}|${TITLE}> by ${AUTHOR}"
|
|
23
|
+
else
|
|
24
|
+
AUTHOR="${{ github.event.comment.user.login }}"
|
|
25
|
+
TITLE="${{ github.event.discussion.title }}"
|
|
26
|
+
URL="${{ github.event.comment.html_url }}"
|
|
27
|
+
TEXT=":left_speech_bubble: ${AUTHOR} commented on <${URL}|${TITLE}>"
|
|
28
|
+
fi
|
|
29
|
+
|
|
30
|
+
curl -s -X POST https://slack.com/api/chat.postMessage \
|
|
31
|
+
-H "Authorization: Bearer ${SLACK_BOT_TOKEN}" \
|
|
32
|
+
-H "Content-Type: application/json" \
|
|
33
|
+
-d "$(jq -n --arg channel "#alerts-mql-stream" --arg text "$TEXT" '{channel: $channel, text: $text}')"
|
package/package.json
CHANGED
package/src/web/layout.ts
CHANGED
|
@@ -69,7 +69,8 @@ export function nav(token?: string, opts?: NavOpts): string {
|
|
|
69
69
|
<a href="/" class="block px-3 py-2 text-sm text-gray-700 hover:bg-gray-50">Log out</a>
|
|
70
70
|
</div>
|
|
71
71
|
</div>`
|
|
72
|
-
: `<a href="/
|
|
72
|
+
: `<a href="https://github.com/lightup-data/polaris/discussions" class="text-sm font-medium text-gray-500 hover:text-gray-700 hidden sm:block">Community</a>
|
|
73
|
+
<a href="/login" class="text-sm font-medium text-gray-500 hover:text-gray-700 hidden sm:block">Sign in</a>
|
|
73
74
|
<a href="/signup" class="inline-flex items-center gap-2 px-3 py-1.5 sm:px-4 sm:py-2 bg-white border border-gray-300 rounded-lg shadow-sm hover:bg-gray-50 transition text-xs sm:text-sm font-medium text-gray-700">
|
|
74
75
|
<svg width="14" height="14" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg"><path d="M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844a4.14 4.14 0 01-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615z" fill="#4285F4"/><path d="M9 18c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H.957v2.332A8.997 8.997 0 009 18z" fill="#34A853"/><path d="M3.964 10.71A5.41 5.41 0 013.682 9c0-.593.102-1.17.282-1.71V4.958H.957A8.996 8.996 0 000 9c0 1.452.348 2.827.957 4.042l3.007-2.332z" fill="#FBBC05"/><path d="M9 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.463.891 11.426 0 9 0A8.997 8.997 0 00.957 4.958L3.964 6.29C4.672 4.163 6.656 2.58 9 3.58z" fill="#EA4335"/></svg>
|
|
75
76
|
Sign up
|
package/src/web/pages.ts
CHANGED
|
@@ -401,11 +401,15 @@ export function renderLandingPage(): string {
|
|
|
401
401
|
<div class="py-16 border-t border-gray-200 text-center">
|
|
402
402
|
<h2 class="text-2xl font-bold text-gray-900">Ready to try it?</h2>
|
|
403
403
|
<p class="mt-2 text-sm text-gray-500">Set up takes less than two minutes.</p>
|
|
404
|
-
<div class="mt-6">
|
|
404
|
+
<div class="mt-6 flex flex-col items-center gap-4">
|
|
405
405
|
<a href="/signup" class="inline-flex items-center gap-3 px-5 py-2.5 bg-white border border-gray-300 rounded-lg shadow-sm hover:bg-gray-50 transition text-sm font-medium text-gray-700">
|
|
406
406
|
<svg width="16" height="16" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg"><path d="M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844a4.14 4.14 0 01-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615z" fill="#4285F4"/><path d="M9 18c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H.957v2.332A8.997 8.997 0 009 18z" fill="#34A853"/><path d="M3.964 10.71A5.41 5.41 0 013.682 9c0-.593.102-1.17.282-1.71V4.958H.957A8.996 8.996 0 000 9c0 1.452.348 2.827.957 4.042l3.007-2.332z" fill="#FBBC05"/><path d="M9 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.463.891 11.426 0 9 0A8.997 8.997 0 00.957 4.958L3.964 6.29C4.672 4.163 6.656 2.58 9 3.58z" fill="#EA4335"/></svg>
|
|
407
407
|
Sign up with Google
|
|
408
408
|
</a>
|
|
409
|
+
<a href="https://github.com/lightup-data/polaris/discussions" class="inline-flex items-center gap-2 px-5 py-2.5 text-sm font-medium text-gray-500 hover:text-gray-700 transition">
|
|
410
|
+
<svg class="w-4 h-4" viewBox="0 0 16 16" fill="currentColor"><path d="M1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0zM8 0a8 8 0 100 16A8 8 0 008 0zM5 8a1 1 0 11-2 0 1 1 0 012 0zm4 0a1 1 0 11-2 0 1 1 0 012 0zm3 1a1 1 0 100-2 1 1 0 000 2z"/></svg>
|
|
411
|
+
Join the community
|
|
412
|
+
</a>
|
|
409
413
|
</div>
|
|
410
414
|
</div>
|
|
411
415
|
</div>
|
|
@@ -414,6 +418,7 @@ export function renderLandingPage(): string {
|
|
|
414
418
|
<div class="max-w-3xl mx-auto px-6 py-8 flex items-center justify-between text-sm text-gray-400">
|
|
415
419
|
<span>Polaris</span>
|
|
416
420
|
<div class="flex items-center gap-6">
|
|
421
|
+
<a href="https://github.com/lightup-data/polaris/discussions" class="hover:text-gray-600 transition">Community</a>
|
|
417
422
|
<a href="/login" class="hover:text-gray-600 transition">Sign in</a>
|
|
418
423
|
</div>
|
|
419
424
|
</div>
|