opensearch-project / oui

OpenSearch UI Framework
Apache License 2.0
35 stars 69 forks source link

[BUG] Discrepancy in OUI docsite for PageTemplates #804

Open ashwin-pc opened 1 year ago

ashwin-pc commented 1 year ago

Describe the bug

The Template JS and Components JS tabs for OUI page contain different snippets where the Components JS tab does not use OUIPageTemplate and uses OuiPage and all the other page components to contruct the page.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://oui.opensearch.org/1.2/#/layout/page
  2. Click on Components JS
  3. See that OuiPageTemplate is not used to make the component

Expected behavior OuiPageTemplate is used to built the component

OpenSearch Version Please list the version of OpenSearch being used.

Dashboards Version Please list the version of OpenSearch Dashboards being used.

Plugins

Please list all plugins currently enabled.

Screenshots

If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

Additional context

Add any other context about the problem here.

BSFishy commented 1 year ago

If I'm not mistaken, the point of this demo is to show that the same thing can be implemented with OuiPageTemplate or using individual components. I.e. the different Template JS and Component JS tabs as well as the "Show with individual components" toggle.

cc @KrooshalUX for confirmation