Skip to content

Use difficulty badge in problems table and remove unused dep#32

Merged
admclamb merged 5 commits into
mainfrom
admclamb/update-package-and-vitest
May 25, 2026
Merged

Use difficulty badge in problems table and remove unused dep#32
admclamb merged 5 commits into
mainfrom
admclamb/update-package-and-vitest

Conversation

@admclamb
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 25, 2026 18:31
@vercel
Copy link
Copy Markdown

vercel Bot commented May 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
web-aw-prod-01 Ready Ready Preview, Comment May 25, 2026 6:55pm
web-aw-scrum-01 Ready Ready Preview, Comment May 25, 2026 6:55pm

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the Problems list UI to display a difficulty badge (instead of a raw value) and adjusts test setup/dependencies around environment configuration.

Changes:

  • Render a difficulty badge in the Problems table “Difficulty” column.
  • Update Vitest setup to mock @/env values during tests.
  • Remove dotenv from devDependencies / lockfile.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

File Description
vitest.setup.ts Replaces .env.test loading with a vi.mock("@/env") test-time env stub.
src/features/problems/problems-table-v2/problems-columns-v2.tsx Renders a difficulty badge component in the Difficulty column.
package.json Removes dotenv from devDependencies.
pnpm-lock.yaml Removes dotenv entries from the lockfile.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Comment on lines 1 to 3
import { ColumnDef } from "@tanstack/react-table";
import { ProblemDifficultyBadge } from "@/features/problem/problem-difficulty-badge/problem-difficulty-badge";
import { Problem } from "../models/problem";
Comment thread package.json
Comment on lines 113 to 114
"cypress": "^15.12.0",
"dotenv": "^17.2.3",
"eslint": "^9.39.1",
Copy link
Copy Markdown
Contributor

Copilot AI commented May 25, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • download.cypress.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node dist/index.js --exec install (dns block)
  • fonts.googleapis.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/web/web/node_modules/.bin/../next/dist/bin/next build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@sonarqubecloud
Copy link
Copy Markdown

@admclamb admclamb merged commit 0905e89 into main May 25, 2026
4 checks passed
@admclamb admclamb deleted the admclamb/update-package-and-vitest branch May 25, 2026 20:58
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.

3 participants