Skip to content
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

Adds extension point for custom environment UI #24

Merged
merged 13 commits into from
Sep 23, 2022

Conversation

JasonWeill
Copy link
Collaborator

@JasonWeill JasonWeill commented Sep 20, 2022

Adds an extension point based on the sample extension point repo.

In the image below, the component displays an informative message.

image

@github-actions
Copy link
Contributor

Binder 👈 Launch a Binder on branch jupyter-server/jupyter-scheduler/environment-extension

@dlqqq dlqqq self-requested a review September 20, 2022 17:14
src/tokens.ts Outdated Show resolved Hide resolved
src/create-job-form.tsx Outdated Show resolved Hide resolved
src/create-job-form.tsx Outdated Show resolved Hide resolved
src/tokens.ts Outdated Show resolved Hide resolved
src/tokens.ts Outdated Show resolved Hide resolved
src/tokens.ts Outdated Show resolved Hide resolved
andrii-i and others added 11 commits September 22, 2022 16:14
* collapsible panel and styling

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Move optional attributes after required ones

* use jupyterlab css var for bold font

* rename expandedByDefault? prop to expanded?

* Update src/components/collapsible-panel.tsx

Co-authored-by: Piyush Jain <piyushjain@duck.com>

* propagete function name change

* make content conditionaly-visible instead of creating/destroying it on CollapsiblePanel open/close

* render icons directly without ToolbarButtonComponent

* Fix icon onClick

* add padding on icon as before

* fix content rendering

* use font weight variable on title too

* rename summary into header

* simplify divs and css classes

* simplify css even further

* use h2 instead of div, remove associated css styling

* remove handleChange function

* remove inremental inline padding on icon

* remove top expanded class variant, rename classes to follow .jp-jobs-<Component> convention

* move CollapsiblePanel css into separate file

* restrict title to string only

* add optional children props

* render props.children as content

* use children directly without converting them to array

* remove onClick console.log

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Piyush Jain <piyushjain@duck.com>
* Remove tab bar from notebook job panel.

* Change overflow-y on job panel to auto.

* Minor updates to empty state text.

* Simpify card text.

* Use MD Cyan 700 for icons.

* Size utility.

* Box component.

* Adding css variables.

* Stack component.

* Heading component.

* Cluster component.

* Updating UI based on new components.

* Ad button component.

* Use button component.

* Minor update to form widths.

* Update CSS classes to avoid global conficts.

* Adding MUI.

* Add JupyterLab->MUI theme adapter.

* Update theme provider.

* Test basic MUI components.

* Working theme adaptation.

* More explorations with MUI.

* Refactoring models.

* Update import.

* fix MUI build

* set builder to ^3.4.7

* update yarn lock

* fix notebook jobs command

Co-authored-by: Brian E. Granger <brgrange@amazon.com>
Reinstates functionality of the create job form with MUI components
export type EnvironmentParameterValue = string | number | boolean

export interface IAdvancedOptionsProps {
mode: JobsView
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are we offering an extension point for "ListJobs"?


export interface IAdvancedOptionsProps {
mode: JobsView
model: ICreateJobModel
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is likely going to be support in addition to ICreateJobModel, an analogous to the IJobDetailModel with all properties from the IDescribeJob.

@3coins
Copy link
Collaborator

3coins commented Sep 23, 2022

Discussed my comments offline with the team, and iterating on this in another PR is okay as this will need changes at other places as well.

@JasonWeill JasonWeill merged commit d965be7 into main Sep 23, 2022
@dlqqq dlqqq deleted the environment-extension branch February 24, 2023 22:08
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.

None yet

5 participants