Skip to content

Prune unused files#349

Open
jpmckinney wants to merge 3 commits intodevfrom
prune-unused
Open

Prune unused files#349
jpmckinney wants to merge 3 commits intodevfrom
prune-unused

Conversation

@jpmckinney
Copy link
Copy Markdown
Collaborator

@jpmckinney jpmckinney commented Apr 21, 2026

See commit messages for details

heroimage.png is accidentally mentioned in a message, but is not actually deleted.

@jpmckinney jpmckinney changed the base branch from main to dev April 21, 2026 15:06
This was referenced Apr 29, 2026
@Abhishekfm
Copy link
Copy Markdown
Collaborator

Hi @jpmckinney , the build is currently failing on this PR. Could you please take a look?


./sentry.client.config.ts:20:3
Type error: Object literal may only specify known properties, and 'autoSessionTracking' does not exist in type 'CoreOptions<BaseTransportOptions> | BrowserOptions | NodeOptions | VercelEdgeOptions'.

  18 |
  19 |   // Track session events as well
> 20 |   autoSessionTracking: true,
     |   ^
  21 |
  22 |   // Define how likely Replay events are sampled.
  23 |   // This sets the sample rate to be 10%. You may want this to be 100% while
Next.js build worker exited with code: 1 and signal: null

jpmckinney and others added 3 commits April 29, 2026 10:12
These 27 files have been untouched since the project's first commit
(d7ca56c "drr example", 2024-03-05): Next.js template defaults
(next.svg, vercel.svg), example JSON data (files/assam*.json,
morigaon.json, nagaon.json), placeholder images from early UI mockups
(analytic(s)LinkPlaceholder*, barPlaceholder, chartPlaceholder), and
stranded TSX / logo assets (Hazard.tsx, MinusSvg.tsx, PlugSvg.tsx;
assamDRRLogo, assamTerrainLogo, CDLOfficial, IDSLogo, ASDMA2, jjm,
logo-min, mgnrega, nhm, ourEngagements1). None are referenced from
the frontend source.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
  datasetLogo.png        Early dataset listing (2024-03-11); never wired up.
  Search.tsx             Stranded TSX in public/ (2024-03-20 "fix issues").
  RFlogo.png             2024-05-27 "Enhancements and Bug Fixes #32".
  Vector1.svg            Same commit as above.
  RockefellerLogoNew.png 2024-06-12 "update RF logo", replaced two weeks
                         later by a different revision.
  RockefellerLogoW.png   2024-06-27 "update RF logo", last of several
                         Rockefeller variants before the name stabilised.
  heroimage.png          2024-10-21 "update hero section"; replaced in
  IDS-yellow.png         the same commit by IDS-yellow-new.png.
  toggle.svg             2026-03-23 "Design Updated for side panel": the
                         same commit added IconLayoutSidebarRightCollapse
                         from @tabler/icons-react; the author switched to
                         the tabler icon and never removed the SVG.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Six are residue from the initial template (2024-03-05):

  config/store.ts                           useIsNavigating zustand store.
  hooks/use-key-press.ts
  hooks/use-mounted.ts
  hooks/use-on-click-outside.tsx
  app/[locale]/components/focus-section.tsx
  app/[locale]/components/partnerships.tsx

Four were added later but never wired up:

  app/[locale]/components/video.tsx     2024-05-27 "Enhancements and Bug
                                        Fixes #32"; exported from the barrel
                                        but Video is imported nowhere.
  hooks/use-prouter.tsx                 2024-06-26 "fix build issues"; a
                                        wrapper around Next's useRouter that
                                        never got imported.
  hooks/use-navigation-event.tsx        2024-10-24 "fix css of map hove
                                        popup"; touched cosmetically in the
                                        CSS commit but never imported.
  app/backuprobots.ts                   A stale draft of a robots.ts whose
                                        body is entirely commented out; only
                                        edit since creation was a 2026-01-06
                                        lint pass running over dead code.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@jpmckinney
Copy link
Copy Markdown
Collaborator Author

jpmckinney commented Apr 29, 2026

Hi @Abhishekfm , I rebased on dev and the build (npm run build) now succeeds (the sentry.client.config.ts from the error message was replaced with instrumentation-client.ts in #356).

CI is failing, however, because package-lock.json is out of date (as described in the PR descriptions of #354 and #356).

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