Skip to content

Remove dead legacy selectors from static surfaces#16

Merged
SnorreFossland merged 1 commit into
alpha-prefrom
codex/shared-universe-surface-reads
Jun 3, 2026
Merged

Remove dead legacy selectors from static surfaces#16
SnorreFossland merged 1 commit into
alpha-prefrom
codex/shared-universe-surface-reads

Conversation

@SnorreFossland

Copy link
Copy Markdown
Contributor

Summary

This is a small follow-up cleanup slice after the shared universe bridge work.

It removes unused direct legacy Redux selectors from static surfaces that do not need model state.

Changes

  • Removed dead useSelector reads from src/components/About.tsx.
  • Removed dead useSelector reads from src/components/Index.tsx.
  • Removed now-unused React/Redux imports in those files.

Notes

This does not change rendering behavior. The removed values were not used by the components.

Validation

  • npm run build
  • npm test
  • Local browser smoke check: /about loaded successfully on localhost:3000 and browser console had no errors.

@vercel

vercel Bot commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
mimris Ready Ready Preview, Comment Jun 3, 2026 4:44pm

@SnorreFossland SnorreFossland marked this pull request as ready for review June 3, 2026 16:45
Copilot AI review requested due to automatic review settings June 3, 2026 16:45
@SnorreFossland SnorreFossland merged commit 358b0cf into alpha-pre Jun 3, 2026
2 checks passed
@SnorreFossland SnorreFossland deleted the codex/shared-universe-surface-reads branch June 3, 2026 16:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR cleans up two static surface components by removing unused direct Redux hook selectors (useSelector / useDispatch) and associated unused React/Redux hook imports, aiming to reduce unnecessary coupling to model state.

Changes:

  • Removed unused useSelector reads and related local variables from src/components/Index.tsx.
  • Removed unused useSelector / useDispatch reads and related local state from src/components/About.tsx.
  • Simplified React/Redux imports accordingly.

Reviewed changes

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

File Description
src/components/Index.tsx Removes unused Redux hook selectors/vars; still has opportunities to fully decouple from Redux and remove now-unused imports.
src/components/About.tsx Removes unused Redux hook selectors/vars; can be further simplified by removing the remaining Redux connection for a static page.

Comment thread src/components/Index.tsx
@@ -532,5 +515,3 @@ const page = (props) => {

}
export default Page(connect(state => state)(page));
Comment thread src/components/Index.tsx
Comment on lines +5 to +7
import React from "react";
import Link from 'next/link';
import { connect, useSelector, useDispatch } from 'react-redux';
import { connect } from 'react-redux';
Comment thread src/components/About.tsx
@@ -270,4 +260,3 @@ const page = (props) => {
}
export default Page(connect(state => state)(page));
Comment thread src/components/About.tsx
import React from "react";
import Link from 'next/link';
import { connect, useSelector, useDispatch } from 'react-redux';
import { connect } from 'react-redux';
Comment thread src/components/About.tsx
@@ -2,9 +2,9 @@
// Index.tsx
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