Skip to content

Conversation

@dannon
Copy link
Member

@dannon dannon commented Oct 15, 2025

Work from @tcollins2011 at GCC2025 Hackathon -- I rebased this and made a few tweaks.

image

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

tcollins2011 and others added 17 commits October 14, 2025 18:09
- Fix Vue watcher to track readme_raw properly
- Use separate data property for rendered content
- Remove unused backend rendering code
- Add .markdown extension support
Moved all CSS from library-folder-table.css into LibraryFolder.vue as scoped styles. Better organization and keeps everything in one place.
Add DOMPurify sanitization to rendered markdown content from library README files. The markdown renderer doesn't sanitize HTML by default, which could allow malicious scripts in uploaded README files.
- Remove unused markdown import
- Fix readme_raw default value to None instead of empty string to match schema
- Update type hint to str | None for consistency
Implemented toggle button in toolbar with split-pane display (2:1 ratio) for README viewing, mirroring the workflow README pattern. README panel slides in from the right when toggled, showing content side-by-side with the library folder table. Table columns adjust responsively to fit the allocated space.
Previously README only appeared on pages where the file was listed.
Now uses a targeted query to find README independently of pagination.
The button now shows disabled state with 'No README available' tooltip
when there's no README content. The panel only displays when both the
toggle is on and README content exists. Toggle state persists across
folders so README automatically shows when navigating to folders that
have one.
@github-actions github-actions bot added this to the 26.0 milestone Oct 15, 2025
@dannon dannon marked this pull request as draft October 15, 2025 13:12
@jmchilton
Copy link
Member

That is such a clever idea - I love it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants