accordproject / template-playground

Web Playground for TemplateMark templates
https://playground.accordproject.org
Apache License 2.0
17 stars 19 forks source link

Conditionally render name of loaded template sample in Loaded Output #32

Open Vinyl-Davyl opened 5 months ago

Vinyl-Davyl commented 5 months ago

Context

This issue concerns the conditional rendering of the loaded template sample name within the "Loaded Output" section of the Accord Project Playground.

Expected Behavior

Upon clicking a template sample within the playground, the name of the loaded template sample should be clearly displayed within the "Loaded Output" area. This provides users with immediate confirmation of the loaded sample and enhances clarity.

Actual Behavior

Currently, clicking a template sample does not trigger the display of the sample name within the "Loaded Output" section. This leaves the user unsure of which sample is loaded and can be confusing, especially when dealing with multiple samples.

Possible Fix

The potential fix involves modifying the code responsible for rendering the "Loaded Output" section. This could involve:

Steps to Reproduce

  1. Open the Accord Project Playground.
  2. Navigate to the template library section.
  3. Click on any template sample.
  4. Observe that the name of the clicked sample is not displayed within the "Loaded Output" area.

Existing issues

Your Environment

Additional Notes:

Vinyl-Davyl commented 5 months ago

Solved in PR https://github.com/accordproject/template-playground/pull/33 āœ…

Vinyl-Davyl commented 4 months ago

Hey šŸ‘‹ @muskanbararia I fixed this issue in PR #33 already.