Skip to content

eng: Added docs for canvas code #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

tara-natarajan
Copy link

@tara-natarajan tara-natarajan commented Jul 15, 2025

Added some comments to help understand the canvas creation code since Don was really struggling to understand this code.

Copy link
Contributor

@damola-benchling damola-benchling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my feedback is mostly nit, good to merge once the typo is fixed

@@ -16,6 +16,17 @@

from local_app.benchling_app.views.constants import SEARCH_BUTTON_ID, SEARCH_TEXT_ID

"""
This file contains examples of how create a canvas at initialization
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This file contains examples of how create a canvas at initialization
This file contains examples of how to create a canvas at initialization

For examples of updates, check out canvas_interaction.py

Use a CanvasBuilder to create or update a canvas associated with your app
This sdk tool can be used for easy creation and updates
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: instead of "sdk tool" i think "this helper" sounds a little better, neither is wrong though

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