Currently, connectors in our project do not utilize the full potential of Next.js routing. Connector types are hardcoded, but they should be passed as router parameters in the application for better flexibility and maintainability.
now we have this:
project-root
_app
connectors
____/axero
/google
/gitHub
___...(+20 other connectors)
and can make this:
project-root
_app
connectors
____[connectorType]
Tasks:
Refactor the current structure under /connectors to a more unified approach where each connector type is dynamically handled.
Create a single [connectorType] page/component that can handle various connector types dynamically.
Update the routing logic to dynamically render connector types based on router parameters.
Ensure all connector functionality remains intact after refactoring.
Test the application thoroughly to verify that routing and functionality for each connector type work as expected.
Currently, connectors in our project do not utilize the full potential of Next.js routing. Connector types are hardcoded, but they should be passed as router parameters in the application for better flexibility and maintainability.
now we have this:
project-root _app connectors ____/axero /google /gitHub ___...(+20 other connectors)
and can make this:
project-root _app connectors ____[connectorType]
Tasks: