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

Separate benchmark assignment modal from trpc #489

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

nickvisut
Copy link
Contributor

Tease apart assignment modal UI from trpc request

@nickvisut nickvisut marked this pull request as draft January 24, 2025 02:47
@@ -12,6 +12,7 @@
"type-css:check": "npx tcm src --listDifferent",
"test": "next build --no-lint && ava",
"test-storybook": "test-storybook --maxWorkers=2",
"docker-reup": "docker compose -f supporting_services/docker-compose.yml up -d",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to add this script!

@@ -94,7 +94,7 @@ test("basic flow - add/get goals, benchmarks, tasks", async (t) => {
const gotBenchmark = await trpc.iep.getBenchmark.query({
benchmark_id: benchmark2Id,
});
t.is(gotBenchmark[0].description, "benchmark 2");
t.is(gotBenchmark.description, "benchmark 2");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@@ -133,55 +69,26 @@ export const BenchmarkAssignmentModal = (
<DialogContent>
<Box className={$benchmark.benchmarkDescriptionBox}>
<p className={$benchmark.benchmarkTitle}>Benchmark</p>
{benchmark?.map((thisBenchmark) => (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for separating this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants