Skip to content

fix(lint): resolve follow-up review findings from #825#826

Open
bnyashwanth wants to merge 6 commits intoaccordproject:mainfrom
bnyashwanth:fix/issue-825-followup
Open

fix(lint): resolve follow-up review findings from #825#826
bnyashwanth wants to merge 6 commits intoaccordproject:mainfrom
bnyashwanth:fix/issue-825-followup

Conversation

@bnyashwanth
Copy link
Copy Markdown

Summary
Resolves follow-up cleanup items from #825 after #725.

Changes made

Removed dead empty branch in error parsing utility.
Replaced process-style mock comment with intent-focused comment in tests.
Ensured eslint disable-next-line is correctly scoped to the intended export.
Validation

npm run test
npm run lint (current repository has unrelated pre-existing lint failures in AIConfigPopup; no new errors introduced by these changes)
Closes #825

Signed-off-by: bnyashwanth <bnyashwanth2006@gmail.com>
I, bnyashwanth <bnyashwanth2006@gmail.com>, hereby add my Signed-off-by to this commit: 84fb586

Signed-off-by: bnyashwanth <bnyashwanth2006@gmail.com>
I, bnyashwanth <bnyashwanth2006@gmail.com>, hereby add my Signed-off-by to this commit

Signed-off-by: bnyashwanth <bnyashwanth2006@gmail.com>
Signed-off-by: bnyashwanth <bnyashwanth2006@gmail.com>
@bnyashwanth bnyashwanth requested a review from a team as a code owner March 15, 2026 14:46
Copilot AI review requested due to automatic review settings March 15, 2026 14:46
@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 15, 2026

Deploy Preview for ap-template-playground ready!

Name Link
🔨 Latest commit 8b607d4
🔍 Latest deploy log https://app.netlify.com/projects/ap-template-playground/deploys/69baa7163d81ae000877c735
😎 Deploy Preview https://deploy-preview-826--ap-template-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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

Follow-up cleanup PR for #825 (post-#725/#825 review findings), focused on tightening lint/test utilities and removing minor technical debt around error parsing and ESLint suppression placement.

Changes:

  • Refines test environment mocks (matchMedia + canvas) and clarifies test mock intent/comments.
  • Simplifies/cleans up extractErrorMessage JSON parsing flow and removes dead/unused branching patterns.
  • Narrows react-refresh/only-export-components suppression to the intended export.

Reviewed changes

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

Show a summary per file
File Description
src/utils/testing/setup.ts Refactors jsdom test mocks (matchMedia + HTMLCanvasElement.getContext) for clearer intent and better typing.
src/utils/helpers/errorUtils.ts Cleans up error parsing utility with typed JSON parsing structures and removed dead logic.
src/tests/components/SettingsModal.test.tsx Aligns Zustand store mock signature/types and updates comments for clarity.
src/contexts/MarkdownEditorContext.tsx Moves ESLint disable-next-line to scope it to the specific export.
.gitignore Adds a root gitignore file (note: contains unexpected trailing control characters).

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 3, 2026

This PR is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions Bot added the Stale label Apr 3, 2026
@bnyashwanth bnyashwanth closed this Apr 3, 2026
@bnyashwanth bnyashwanth reopened this Apr 3, 2026
@github-actions github-actions Bot removed the Stale label Apr 4, 2026
@github-actions
Copy link
Copy Markdown

This PR is stale because it has been open 15 days with no activity. Remove stale label or comment or this will be closed in 10 days.

@github-actions github-actions Bot added the Stale label Apr 19, 2026
@mttrbrts
Copy link
Copy Markdown
Member

Thanks for this contribution! Before we can review, please resolve the merge conflicts with the base branch.

git fetch origin main
git rebase origin/main
# Resolve conflicts
git push --force-with-lease

Once the conflicts are resolved, we'll proceed with the review.


This comment was generated by AI on behalf of @mttrbrts.

@github-actions github-actions Bot removed the Stale label Apr 27, 2026
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.

[Cleanup] Resolve follow-up review findings and technical debt from #725

3 participants