emoss08 / Trenova

An Open Source AI-driven asset based transportation management system
http://trenova.app
Other
24 stars 5 forks source link

🪛(fix): breadcrumb not appearing on certain routes #273

Closed emoss08 closed 1 month ago

emoss08 commented 1 month ago

Summary by Sourcery

This pull request addresses the issue of breadcrumbs not appearing on certain routes by updating the route matching logic and refactoring the breadcrumb component. Additionally, it enhances the breadcrumb UI and ensures consistency in route paths.

sourcery-ai[bot] commented 1 month ago

Reviewer's Guide by Sourcery

This pull request addresses the issue of breadcrumbs not appearing on certain routes by updating the route matching logic and refactoring the breadcrumb component into a more structured and reusable format. The layout component has been updated to use the new SiteBreadcrumb component. Additionally, route titles and paths have been updated for consistency, and utility functions have been improved.

File-Level Changes

Files Changes
web/frontend/src/components/layout/breadcrumb.tsx
web/frontend/src/components/ui/breadcrumb.tsx
Refactored breadcrumb component to use a more structured approach with new sub-components and updated route matching logic.
web/frontend/src/routing/AppRoutes.tsx
web/frontend/src/lib/utils.ts
Updated route titles and paths for consistency and improved utility functions.

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.
emoss08 commented 1 month ago

@sourcery-ai review

emoss08 commented 1 month ago

@sourcery-ai review

emoss08 commented 1 month ago

@sourcery-ai review