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

feat: ui.progress_bar and ui.progress_circle #892

Merged
merged 20 commits into from
Oct 4, 2024

Conversation

wusteven815
Copy link
Contributor

@wusteven815 wusteven815 commented Sep 17, 2024

@wusteven815 wusteven815 self-assigned this Sep 17, 2024
@wusteven815 wusteven815 linked an issue Sep 17, 2024 that may be closed by this pull request
@wusteven815 wusteven815 marked this pull request as ready for review September 18, 2024 14:28
@wusteven815 wusteven815 requested review from a team, vbabich and jnumainville and removed request for a team September 18, 2024 14:28
@vbabich
Copy link
Contributor

vbabich commented Sep 19, 2024

Approved js changes, haven't looked at python.

vbabich
vbabich previously approved these changes Sep 19, 2024
@mofojed
Copy link
Member

mofojed commented Sep 19, 2024

@wusteven815 include docs for these as well. We should be adding docs for every new component we add. Will close #871 and #872 as well.
Something similar to https://react-spectrum.adobe.com/react-spectrum/ProgressCircle.html in our existing docs format (e.g. image.md)

Copy link
Member

@mofojed mofojed left a comment

Choose a reason for hiding this comment

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

Add docs

plugins/ui/docs/components/progress_bar.md Outdated Show resolved Hide resolved
plugins/ui/docs/components/progress_bar.md Outdated Show resolved Hide resolved
plugins/ui/docs/components/progress_bar.md Outdated Show resolved Hide resolved
plugins/ui/docs/components/progress_bar.md Outdated Show resolved Hide resolved
plugins/ui/docs/components/progress_circle.md Outdated Show resolved Hide resolved
plugins/ui/docs/components/progress_circle.md Outdated Show resolved Hide resolved
plugins/ui/docs/components/progress_circle.md Outdated Show resolved Hide resolved
plugins/ui/docs/components/progress_circle.md Outdated Show resolved Hide resolved
plugins/ui/docs/components/progress_circle.md Outdated Show resolved Hide resolved
mofojed
mofojed previously approved these changes Sep 20, 2024
label_position: LabelPosition = "top",
show_value_label: bool | None = None,
label: Element | None = None,
# format_options, # omitted because need to connect it to Deephaven formatting options as well
Copy link
Member

Choose a reason for hiding this comment

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

@ethanalvizo is adding this to number_field right now, can add it to progress_bar when he's done that.

plugins/ui/docs/components/progress_bar.md Outdated Show resolved Hide resolved
Copy link
Contributor

@dsmmcken dsmmcken left a comment

Choose a reason for hiding this comment

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

Every example should be standalone runnable, therefor needs import statements.

plugins/ui/docs/components/progress_circle.md Outdated Show resolved Hide resolved
plugins/ui/docs/components/progress_circle.md Outdated Show resolved Hide resolved
plugins/ui/docs/components/progress_circle.md Show resolved Hide resolved
plugins/ui/docs/components/progress_circle.md Outdated Show resolved Hide resolved
plugins/ui/docs/components/progress_circle.md Outdated Show resolved Hide resolved
plugins/ui/docs/components/progress_bar.md Outdated Show resolved Hide resolved
plugins/ui/docs/components/progress_bar.md Outdated Show resolved Hide resolved
plugins/ui/docs/components/progress_bar.md Outdated Show resolved Hide resolved
plugins/ui/docs/components/progress_bar.md Show resolved Hide resolved
plugins/ui/docs/components/progress_bar.md Outdated Show resolved Hide resolved
wusteven815 and others added 9 commits September 24, 2024 15:58
Co-authored-by: margaretkennedy <[email protected]>
- Fixes deephaven#731 
  - Extract and save `key` prop
  - Modify key generation to use the `key` prop if it exists
- Allow `map` to be a valid component
  - Converts directly to a list while checking for unique props
- Fixes deephaven#744 
- Update props types to convert `renderEmptyState` from `Element` in
Python to `() => Element` in TypeScript
  - Throw error if `children` is undefined
Upgrades and centralizes the Vite version since we want to use the same
version across all plugins
Copy link
Collaborator

@jnumainville jnumainville left a comment

Choose a reason for hiding this comment

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

Only reviewed the documentation and python. Mostly minor details.

plugins/ui/docs/components/progress_bar.md Outdated Show resolved Hide resolved
@@ -0,0 +1,112 @@
# Progress Circle

Progress circles show the progression of a system operation such as downloading, uploading, or processing, in a visual way. They can represent determinate or indeterminate progress.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there any differentiation that should be made when picking between progres_bar and progress_circle or are they completely interchangeable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so, React Spectrum doesn't say anything either

plugins/ui/docs/components/progress_circle.md Outdated Show resolved Hide resolved
plugins/ui/src/deephaven/ui/components/progress_bar.py Outdated Show resolved Hide resolved
@wusteven815 wusteven815 changed the title feat: progress_bar and progress_circle feat: ui.progress_bar and ui.progress_circle Oct 4, 2024
@wusteven815 wusteven815 merged commit 1ea206e into deephaven:main Oct 4, 2024
18 checks passed
@wusteven815 wusteven815 deleted the 826-progress-bar-circle branch October 21, 2024 13:47
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.

docs: ui.progress_circle docs: ui.progress_bar ui.progress_circle and ui.progress_bar
8 participants