Skip to content

Commit

Permalink
Update Roadmap Page (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-gordon authored Jul 11, 2023
1 parent f897dcd commit 2f38119
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 102 deletions.
38 changes: 0 additions & 38 deletions api/_lib/_linear.ts

This file was deleted.

1 change: 0 additions & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"author": "",
"license": "ISC",
"dependencies": {
"@linear/sdk": "^2.0.0",
"@notionhq/client": "^0.4.13",
"@octokit/core": "^4.2.0",
"@sendgrid/mail": "^7.4.6",
Expand Down
9 changes: 3 additions & 6 deletions api/roadmap.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { VercelRequest, VercelResponse } from "@vercel/node";
import { getIssues } from "./_lib/_linear";

import { getAreasOfResearchHtml } from "./_lib/_notion";

export default async function handler(req: VercelRequest, res: VercelResponse) {
const [issues, areasOfResearch] = await Promise.all([
getIssues(),
getAreasOfResearchHtml(),
]);
res.status(200).json({ issues, areasOfResearch });
const areasOfResearch = await getAreasOfResearchHtml();
res.status(200).json({ areasOfResearch });
}
22 changes: 0 additions & 22 deletions app/src/pages/Roadmap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,6 @@ export default function Roadmap() {
return (
<Page>
<InfoHeader title={t`Roadmap`} />
{data && data.issues.length > 0 && (
<section className="grid gap-5">
<SectionTitle>Active Tasks</SectionTitle>
<div className="issues post-content">
{data.issues.map((issue) => (
<div className="issue" key={issue.title}>
<h3>{issue.title}</h3>
<div
className="issue-description"
dangerouslySetInnerHTML={{ __html: issue.description }}
/>
</div>
))}
</div>
</section>
)}
<section className="grid gap-5">
<SectionTitle>Areas of Research</SectionTitle>
{data && (
Expand All @@ -43,15 +27,9 @@ export default function Roadmap() {
);
}

type Issue = {
title: string;
description: string;
};

async function getRoadmap() {
const roadmap = await axios.get("/api/roadmap");
return roadmap.data as {
issues: Issue[];
areasOfResearch: string;
};
}
36 changes: 1 addition & 35 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2f38119

Please sign in to comment.