Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Roadmap Page #542

Merged
merged 1 commit into from
Jul 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading