Skip to content

Move inline report CSS and JavaScript into package assets #196

Closed

Description

@lanyue-llk

Child of #98 for one item. The audit list comes from #98, so check it against current code.

Inline CSS and JavaScript blobs sit in renderer code, with single lines up to 8.7k characters, for example in public_webarena/report.py, trajectory_replay/report.py, webarena_report.py and browser_use/report.py.

Scope

  • Move each blob to a package asset file loaded by its renderer, and declare it as package data if that does not edit a frozen file.
  • Rendered pages keep the same bytes, so golden route hashes do not change.
  • A wheel install must still find the assets. Cover that in the packaging check.
  • Leave a file alone if a frozen binding records it, and say so in the PR.

Part of #98

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions