From 0a03d6730ab9764acc41fcee6520c19046eecbfd Mon Sep 17 00:00:00 2001 From: Gabo Esquivel Date: Sat, 6 Apr 2024 02:23:25 -0600 Subject: [PATCH] devops: debug lhci results comment (#79) * devops: debug github actions * devops: debug lhci results comment --- .github/workflows/lighthouse.yml | 10 ++++++---- .../(browse)/[category]/[threadId]/page.tsx | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 apps/masterbots.ai/app/(browse)/[category]/[threadId]/page.tsx diff --git a/.github/workflows/lighthouse.yml b/.github/workflows/lighthouse.yml index bb56f08d..38956aae 100644 --- a/.github/workflows/lighthouse.yml +++ b/.github/workflows/lighthouse.yml @@ -35,9 +35,9 @@ jobs: with: urls: | "https://${{ steps.vercel_preview_url.outputs.preview_url }}" - "https://${{ steps.vercel_preview_url.outputs.preview_url }}/b/moneybot" - "https://${{ steps.vercel_preview_url.outputs.preview_url }}/u/slug-1" - "https://${{ steps.vercel_preview_url.outputs.preview_url }}/p" + # "https://${{ steps.vercel_preview_url.outputs.preview_url }}/b/moneybot" + # "https://${{ steps.vercel_preview_url.outputs.preview_url }}/u/slug-1" + # "https://${{ steps.vercel_preview_url.outputs.preview_url }}/p" # budgetPath: '.github/lighthouse/budget.json' uploadArtifacts: true temporaryPublicStorage: true @@ -72,7 +72,9 @@ jobs: # }); # }); - core.setOutput('comment', steps.lighthouse_audit.outputs.links); + # core.setOutput('comment', comment); + core.setOutput('manifest', JSON.stringify(manifest)); + core.setOutput('links', JSON.stringify(links)); - name: Add comment to PR id: comment_to_pr uses: marocchino/sticky-pull-request-comment@v2.9.0 diff --git a/apps/masterbots.ai/app/(browse)/[category]/[threadId]/page.tsx b/apps/masterbots.ai/app/(browse)/[category]/[threadId]/page.tsx new file mode 100644 index 00000000..883af356 --- /dev/null +++ b/apps/masterbots.ai/app/(browse)/[category]/[threadId]/page.tsx @@ -0,0 +1,18 @@ +import { getThread } from '@/services/hasura' + +export default async function ChatPage({ params }: ChatPageProps) { + const thread = await getThread({ + threadId: params.threadId + }) + + //TODO: handle threadId not found + + return
{}
+} + +export interface ChatPageProps { + params: { + threadId: string + chatbot: string + } +}