Skip to content

fix: remove duplicated JSX breaking the Dashboard build#333

Merged
arifulhoque7 merged 1 commit into
weDevsOfficial:developfrom
arifulhoque7:fix/dashboard-jsx-build
Jul 21, 2026
Merged

fix: remove duplicated JSX breaking the Dashboard build#333
arifulhoque7 merged 1 commit into
weDevsOfficial:developfrom
arifulhoque7:fix/dashboard-jsx-build

Conversation

@arifulhoque7

@arifulhoque7 arifulhoque7 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Problem

develop does not build. The Dashboard merge (#327) left a duplicated closing </a> plus a stray ArrowTopRightOnSquareIcon in the Recently Updated table:

ERROR in ./src/components/Dashboard/index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
> 251 |                           </a>

Since assets/build/ is CI-generated and the 10up deploy ships the built working tree, a failing npm run build blocks the wp.org release entirely.

Fix

Remove the two stray lines in src/components/Dashboard/index.js.

Verification

npm run build — webpack compiles clean (warnings only, no errors).

Blocks the 2.4.0 release.

Summary by CodeRabbit

  • Bug Fixes
    • Corrected the icon display for “View” links in the “Recently Updated” table.
    • Improved markup formatting to ensure the link renders cleanly.

The Dashboard merge (weDevsOfficial#327) left a duplicated closing </a> and a stray
ArrowTopRightOnSquareIcon in the Recently Updated table, so
`npm run build` failed with a Babel syntax error:

  ERROR in ./src/components/Dashboard/index.js
  Module build failed ... Unexpected token (251:26)

develop could not produce a build, which blocks the wp.org deploy
workflow. Removing the two stray lines restores a clean compile.
@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 91af82a5-10de-4778-90fe-112abb3c44ef

📥 Commits

Reviewing files that changed from the base of the PR and between 03f3b9c and a8e4d13.

📒 Files selected for processing (1)
  • src/components/Dashboard/index.js
💤 Files with no reviewable changes (1)
  • src/components/Dashboard/index.js

Walkthrough

The Dashboard’s “Recently Updated” table now renders the “View” link with corrected icon markup. No state, data-fetching, or component-structure changes are included.

Changes

Dashboard Link Markup

Layer / File(s) Summary
Correct View link icon nesting
src/components/Dashboard/index.js
The “View” anchor content removes the extraneous line-break/angle-bracket artifact and properly nests ArrowTopRightOnSquareIcon.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Poem

I’m a bunny with a tidy view,
An icon nestled where it’s due.
No stray marks hop through the line,
The Dashboard link now looks just fine.
Nibble, click, and all align!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main fix: duplicated JSX in Dashboard that was breaking the build.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@arifulhoque7
arifulhoque7 merged commit 437fd1d into weDevsOfficial:develop Jul 21, 2026
1 check passed
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.

1 participant