Skip to content

feat: add contract views test#116

Merged
maxwellward merged 3 commits into
mainfrom
contract-views-test
Oct 27, 2025
Merged

feat: add contract views test#116
maxwellward merged 3 commits into
mainfrom
contract-views-test

Conversation

@maxwellward
Copy link
Copy Markdown
Collaborator

This pull request adds a new "Contract Views" test module to the application, allowing users to execute read-only views on Tezos smart contracts and retrieve computed data without creating transactions. The contract view functionality is separated from the TZIP-16 metadata module, with dedicated UI and logic. Related Playwright tests are updated to reflect this separation. The most important changes are grouped below:

New Contract Views Feature

  • Added a new test entry "contract-views" in tests.ts, including setup instructions, documentation links, diagrams, and the Eye icon. [1] [2]
  • Created contract-views.vue and contract-views.ts components to provide a UI and logic for fetching contract metadata and executing contract views, including result display and error handling. [1] [2]

Refactoring and Separation of Concerns

  • Removed view execution logic and UI from the TZIP-16 metadata module (tzip16-metadata.ts and tzip16-metadata.vue), focusing it solely on retrieving and displaying contract metadata. [1] [2] [3] [4] [5]
  • Updated related tests for "TZIP-16 Contract Metadata" to remove contract view execution, and added a dedicated Playwright test for the new "Contract Views" module. [1] [2]

Cross-linking and Documentation

  • Updated related tests for both modules to reference each other, improving discoverability and navigation between "Contract Views" and "TZIP-16 Contract Metadata".

UI Improvements

  • Added the Eye icon to the new module and updated icon imports.

These changes modularize contract view functionality, provide a clearer user experience, and improve maintainability.

@maxwellward maxwellward requested a review from Copilot October 27, 2025 18:58

This comment was marked as resolved.

@maxwellward maxwellward merged commit db506f8 into main Oct 27, 2025
3 checks passed
@maxwellward maxwellward deleted the contract-views-test branch October 27, 2025 19:23
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.

2 participants