Skip to content

fix: remove unused dark mode tour step and dead code#709

Merged
mttrbrts merged 3 commits intoaccordproject:mainfrom
Rahul-R79:fix/tour-dark-mode-cleanup
Feb 25, 2026
Merged

fix: remove unused dark mode tour step and dead code#709
mttrbrts merged 3 commits intoaccordproject:mainfrom
Rahul-R79:fix/tour-dark-mode-cleanup

Conversation

@Rahul-R79
Copy link
Contributor

@Rahul-R79 Rahul-R79 commented Feb 17, 2026

Changes

  • Removed the dark-mode-toggle step from src/components/Tour.ts as the toggle is no longer visible on the main screen.
  • Updated the editor-settings tour step description in src/components/Tour.ts to inform users that Dark Mode is now available within the Settings modal.
  • Deleted src/components/ToggleDarkMode.tsx and src/styles/components/ToggleDarkMode.ts as this component was unused and replaced by the implementation in SettingsModal.tsx.

Screenshots or Video

N/A (Cleanup task)

Related Issues

  • N/A

Author Checklist

  • Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
  • Vital features and changes captured in unit and/or integration tests
  • Commits messages follow AP format
  • Extend the documentation, if necessary
  • Merging to main from fork:fix/tour-dark-mode-cleanup

Signed-off-by: Rahul-R79 <rahul.devworks@gmail.com>
@Rahul-R79 Rahul-R79 requested a review from a team as a code owner February 17, 2026 17:16
@netlify
Copy link

netlify bot commented Feb 17, 2026

Deploy Preview for ap-template-playground ready!

Name Link
🔨 Latest commit 61f2e4d
🔍 Latest deploy log https://app.netlify.com/projects/ap-template-playground/deploys/699f695ae0b240000846e59f
😎 Deploy Preview https://deploy-preview-709--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
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

This PR performs a cleanup task by removing the unused ToggleDarkMode component and its associated tour step, as the dark mode functionality has been consolidated into the SettingsModal component. The changes streamline the codebase by eliminating dead code while preserving the dark mode feature in its new location.

Changes:

  • Removed the dark-mode-toggle tour step from the guided tour
  • Deleted the unused ToggleDarkMode.tsx component file
  • Deleted the unused ToggleDarkMode.ts styled-components file

Reviewed changes

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

File Description
src/components/Tour.ts Removed the dark-mode-toggle tour step (lines 300-321) that referenced the now-deleted standalone toggle component
src/components/ToggleDarkMode.tsx Deleted entire component file that provided standalone dark mode toggle functionality now available in SettingsModal
src/styles/components/ToggleDarkMode.ts Deleted styled-components file that defined the styling for the removed ToggleDarkMode component

@mttrbrts mttrbrts enabled auto-merge (squash) February 25, 2026 21:28
@mttrbrts mttrbrts merged commit bc50df6 into accordproject:main Feb 25, 2026
9 checks passed
@Rahul-R79 Rahul-R79 deleted the fix/tour-dark-mode-cleanup branch February 26, 2026 05:17
Shubh-Raj pushed a commit to Shubh-Raj/playground that referenced this pull request Mar 4, 2026
Signed-off-by: Rahul-R79 <rahul.devworks@gmail.com>
Co-authored-by: Matt Roberts <7544022+mttrbrts@users.noreply.github.com>
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