Skip to content

Conversation

@jjroelofs
Copy link
Contributor

@jjroelofs jjroelofs commented Jan 27, 2026

Summary

The status report references the README for Plotly.js installation details, but the documentation was missing. Also, users got a confusing JavaScript error when viewing experiment charts without Plotly installed.

Changes

README documentation:

  • Add CLI commands for installing Plotly.js via Asset Packagist

User experience:

  • Add Drupal messenger warning on experiment detail page when Plotly.js is missing
  • Warning links to Status report for installation instructions

Code quality:

  • Use library.libraries_directory_file_finder service instead of hardcoded path
  • Searches multiple locations: sites/{site}/libraries/, libraries/, profiles/{profile}/libraries/

Test Plan

  • Verify README instructions work on a fresh Drupal project
  • Confirm Plotly.js installs to web/libraries/plotly.js-dist-min/
  • Without Plotly installed, visit experiment detail page and verify warning message appears
  • Verify warning links to Status report page

Closes #21

@jjroelofs jjroelofs force-pushed the fix/readme-plotly-docs branch from a9807d0 to 8587911 Compare January 27, 2026 12:43
The status report references the README for installation details,
but the documentation was missing. Add CLI commands for:
- Asset Packagist repository configuration
- oomphinc/composer-installers-extender setup
- Plotly.js installation

Closes #21
@jjroelofs jjroelofs force-pushed the fix/readme-plotly-docs branch from 8587911 to 4fd89f7 Compare January 27, 2026 12:45
@jjroelofs jjroelofs changed the title docs: add Plotly.js installation instructions to README fix: add Plotly.js installation docs and missing library warning Jan 27, 2026
Replace \Drupal::service() call with injected LibrariesDirectoryFileFinder
to follow Drupal coding standards.
@jjroelofs jjroelofs merged commit 1d9c646 into 1.x Jan 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: add Plotly.js installation instructions to README

2 participants