etn-ccis/blui-doc-it

Dev resource page is listing all CLI templates when a specific framework is selected

Closed this issue · 1 comments

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?

  1. Go to https://brightlayer-ui-dev.github.io/resources/developer
  2. Click on "Angular", "React" or "React Native" on the top navigation tab
  3. Look at the "CLI" templates list
  4. Notice how every single template is listed

Screenshots / Screen recording

image

Suggested fix

Everything in this clause should be properly tagged using the field applies with their appropriate framework,

{
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'],
},
],
},

Already been addressed in #670