Skip to content

feat(routing): fix tsconfig deprecations, resolve Navbar runtime crashes, and implement 404 fallback#105

Open
Nacho1499 wants to merge 1 commit into
MindFlowInteractive:mainfrom
Nacho1499:feat/404-Recovery
Open

feat(routing): fix tsconfig deprecations, resolve Navbar runtime crashes, and implement 404 fallback#105
Nacho1499 wants to merge 1 commit into
MindFlowInteractive:mainfrom
Nacho1499:feat/404-Recovery

Conversation

@Nacho1499
Copy link
Copy Markdown
Contributor

Closes #83

PR Description:
This PR resolves modern environment configuration warnings, fixes immediate app-crashing bugs inside the primary navigation component, and sets up a bulletproof fallback architecture for handling invalid route errors.

Changes Checklist:
Compiler & Config:
--tsconfig.json: Removed the deprecated "baseUrl" option to prevent upcoming compilation errors in TypeScript 7.0+. Added "ignoreDeprecations": "6.0" to silence the modern compiler error block.

--Route & Fallback Infrastructure:
src/App.jsx: Stripped out legacy, complex window hash checks to rely completely on clean, browser-native routing context path trackers.

--404 Catch-All: Structured a native universal catch-all route (<Route path="*" element={} />) inside your core engine to gracefully intercept unrecognized application routing states.

Navbar Component Repair:
-Fixed a runtime application crash by explicitly importing Link from react-router-dom.
-Generated a missing unique accessibility ID (mobileMenuId) using React's useId() hook to cleanly link the mobile hamburger menu buttons.
-Added a functional handleLogout code stub to prevent breaking click executions when interacting with the dashboard log-out utility.
-Corrected broken mobile drawer panel asset paths from .png formats back to their primary .svg variations.

@Nacho1499
Copy link
Copy Markdown
Contributor Author

Screenshot_27-5-2026_122756_localhost

@Nacho1499
Copy link
Copy Markdown
Contributor Author

Screenshot_27-5-2026_12378_localhost

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.

[P0][UX] Add a Real 404 / Recovery Experience for Unknown Routes

1 participant