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

Share Button [7/n]: Display loading UI #1044

Merged
merged 1 commit into from
Jan 26, 2024
Merged

Share Button [7/n]: Display loading UI #1044

merged 1 commit into from
Jan 26, 2024

Conversation

rossdanlm
Copy link
Contributor

@rossdanlm rossdanlm commented Jan 26, 2024

Share Button [7/n]: Display loading UI

Created a separate component for the shareButton to manage the isLoading state and show that in the UI

Test Plan

Rebase on then do: #1045

Go to aiconfig/python/src/aiconfig/editor/client and run this command:

rm -rf node_modules && yarn && yarn build

Then go to aiconfig dir and run this command:

aiconfig_path  =./cookbooks/Gradio/huggingface.aiconfig.json
parsers_path=./cookbooks/Gradio/hf_model_parsers.py
aiconfig edit --aiconfig-path=$aiconfig_path --server-port=8080 --server-mode=debug_servers --parsers-module-path=$parsers_path

No Error Testing

863f52e7-2c4a-4d8c-b931-40151e4dfc64.mp4

Error Testing

3c4753b9-4f63-4856-a188-2874ef519f54.mp4

Stack created with Sapling. Best reviewed with ReviewStack.

Created a separate component for the shareButton to manage the `isLoading` state and show that in the UI

## Test Plan
Rebase on then do: #1045

Go to `aiconfig/python/src/aiconfig/editor/client` and run this command:
```
rm -rf node_modules && yarn && yarn build
```

Then go to `aiconfig` dir and run this command:
```
aiconfig_path  =./cookbooks/Gradio/huggingface.aiconfig.json
parsers_path=./cookbooks/Gradio/hf_model_parsers.py
aiconfig edit --aiconfig-path=$aiconfig_path --server-port=8080 --server-mode=debug_servers --parsers-module-path=$parsers_path
```

No Error Testing

https://github.com/lastmile-ai/aiconfig/assets/151060367/1e9f4b90-a9e9-4c60-a813-afa2a46a1b5a

Error Testing

https://github.com/lastmile-ai/aiconfig/assets/151060367/1abcce37-8ba4-4513-b826-ea0f9d7bb720
@rossdanlm rossdanlm merged commit 51fb8fd into main Jan 26, 2024
1 check passed
@rossdanlm rossdanlm deleted the pr1044 branch January 26, 2024 23:40
rossdanlm added a commit that referenced this pull request Jan 28, 2024
Share Button [8/n] Show modal on UI click




Showing the modal after button returns a URL. I'm pretty annoyed, wasn't
able to get it:

1. Show up right beside the Share button
2. Have it look beautiful in the modal
3. Have the copy button be displayed on the right side (I was able to
use position absolute, but now the label does not work and it's also not
aligned with the padding for the X close button)

## Test plan


https://github.com/lastmile-ai/aiconfig/assets/151060367/9fba2b38-0602-4a92-b77a-2d8624d8fe34

---
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with
[ReviewStack](https://reviewstack.dev/lastmile-ai/aiconfig/pull/1049).
* __->__ #1049
* #1044
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

2 participants