Dev resource page is listing all CLI templates when a specific framework is selected
Closed this issue · 1 comments
huayunh commented
Describe the bug / expected behavior
The developer resources page is currently showing all CLI templates, no matter which framework is selected.
What are the steps to reproduce?
- Go to https://brightlayer-ui-dev.github.io/resources/developer
- Click on "Angular", "React" or "React Native" on the top navigation tab
- Look at the "CLI" templates list
- Notice how every single template is listed
Screenshots / Screen recording
Suggested fix
Everything in this clause should be properly tagged using the field applies
with their appropriate framework,
blui-doc-it/src/__configuration__/resources/index.tsx
Lines 218 to 287 in 2eab3e1
{ | |
name: 'CLI Templates', | |
description: 'Starter Templates for use with the Brightlayer UI CLI', | |
applies: ['all'], | |
items: [ | |
{ | |
name: '@brightlayer-ui/cra-template-authentication-typescript', | |
description: 'Typescript template for authentication workflow', | |
package: '@brightlayer-ui/cra-template-authentication-typescript', | |
repository: 'react-cli-templates', | |
bugLabels: ['authentication-ts'], | |
}, | |
{ | |
name: '@brightlayer-ui/cra-template-routing-typescript', | |
description: 'Typescript template for basic navigation', | |
package: '@brightlayer-ui/cra-template-routing-typescript', | |
repository: 'react-cli-templates', | |
bugLabels: ['routing-ts'], | |
}, | |
{ | |
name: '@brightlayer-ui/cra-template-blank-typescript', | |
description: 'Typescript template for basic app', | |
package: '@brightlayer-ui/cra-template-blank-typescript', | |
repository: 'react-cli-templates', | |
bugLabels: ['blank-ts'], | |
}, | |
{ | |
name: '@brightlayer-ui/angular-template-blank', | |
description: 'Template for a basic app', | |
package: '@brightlayer-ui/angular-template-blank', | |
repository: 'angular-cli-templates', | |
bugLabels: ['blank'], | |
}, | |
{ | |
name: '@brightlayer-ui/angular-template-routing', | |
description: 'Template for basic navigation', | |
package: '@brightlayer-ui/angular-template-routing', | |
repository: 'angular-cli-templates', | |
bugLabels: ['routing'], | |
}, | |
{ | |
name: '@brightlayer-ui/angular-template-authentication', | |
description: 'Template for authentication workflow', | |
package: '@brightlayer-ui/angular-template-authentication', | |
repository: 'angular-cli-templates', | |
bugLabels: ['authentication'], | |
}, | |
{ | |
name: '@brightlayer-ui/react-native-template-authentication-typescript', | |
description: 'Typescript template for authentication workflow', | |
package: '@brightlayer-ui/react-native-template-authentication-typescript', | |
repository: 'react-native-cli-templates', | |
bugLabels: ['authentication-ts'], | |
}, | |
{ | |
name: '@brightlayer-ui/react-native-template-routing-typescript', | |
description: 'Typescript template for basic navigation', | |
package: '@brightlayer-ui/react-native-template-routing-typescript', | |
repository: 'react-native-cli-templates', | |
bugLabels: ['routing-ts'], | |
}, | |
{ | |
name: '@brightlayer-ui/react-native-template-blank-typescript', | |
description: 'Typescript template for basic app', | |
package: '@brightlayer-ui/react-native-template-blank-typescript', | |
repository: 'react-native-cli-templates', | |
bugLabels: ['blank-ts'], | |
}, | |
], | |
}, |
surajeaton commented
Already been addressed in #670