Skip to content

Simplify routing layout(s)#450

Merged
BboyAkers merged 4 commits into
stagefrom
aakers/simplify-routing-layouts
Dec 17, 2024
Merged

Simplify routing layout(s)#450
BboyAkers merged 4 commits into
stagefrom
aakers/simplify-routing-layouts

Conversation

@BboyAkers

@BboyAkers BboyAkers commented Dec 16, 2024

Copy link
Copy Markdown
Member

Ticket

None

Overview

  • Simplified the layout in layouts/App.js
    • Auth Layout for our public routes (Sign-in, Sign-up, etc.) has be separated into it's own file to reduce verbosity and improve clarity for App.js file
  • Simplified ErrorBoundary use and Loading.

Manual Testing

  1. Run locally and view auth(public) routes and login to view protected routes(organizations, browse, etc.)

Expected Result:
Nothing should've changed in terms of functionality and views.

@sonarqubecloud

Copy link
Copy Markdown

>
{/* can we put instance routes in here, each in a suspense tag (since they're lazily loaded) */}
) : (
<main id={loggedIn ? 'app-container' : ''} className={!loggedIn ? 'auth-container' : ''}>

@BboyAkers BboyAkers Dec 17, 2024

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not the most ideal and it works! My objective was to simplify the layout/routing and reduce the amount of used buttttt if ya'll have any better suggestions please let me know! 🙂

@BboyAkers
BboyAkers changed the base branch from master to stage December 17, 2024 19:41
@BboyAkers
BboyAkers merged commit ecb3ffd into stage Dec 17, 2024
@BboyAkers BboyAkers mentioned this pull request Jan 16, 2025
@dawsontoth
dawsontoth deleted the aakers/simplify-routing-layouts branch June 20, 2025 20:18
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