pendulum-chain / portal

The Pendulum/Amplitude portal UI
GNU General Public License v3.0
1 stars 1 forks source link

Chore/improve paths #460

Closed Sharqiewicz closed 2 weeks ago

Sharqiewicz commented 1 month ago

What:

The paths in the app are just strings that can cause many problems, such as misspelling, pointing to a non-existent page (after renaming).

How:

✅ Change the paths to be included in the PATHS enum. Enum is used for redirection throughout the application. ✅ Remove unused Stats page ✅ Fixed error appearing in the paths that only has the network name like: portal.pendulumchain.org/amplitude portal.pendulumchain.org/pendulum portal.pendulumchain.org/foucoco - now it's redirecting to the dashboard

netlify[bot] commented 1 month ago

Deploy Preview for rococo-souffle-a625f5 ready!

Name Link
Latest commit b838454480470ea0e0c08b8c11189170ba6fa7f6
Latest deploy log https://app.netlify.com/sites/rococo-souffle-a625f5/deploys/667165f13ebfaf0008406a28
Deploy Preview https://deploy-preview-460--rococo-souffle-a625f5.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 site configuration.

Sharqiewicz commented 4 weeks ago

@ebma I have implemented dynamic imports with dynamic paths using const pages = import.meta.glob('./pages/**/index.tsx'); from ViteJS ⚡ . This approach detects and registers all the files that match the specified pattern without fetching them immediately.

✨ Key Improvements:

Sharqiewicz commented 2 weeks ago

@ebma changed ✅