Conversation
rossdanlm
added a commit
that referenced
this pull request
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 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 --- Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/lastmile-ai/aiconfig/pull/1044). * #1045 * #1049 * __->__ #1044
rholinshead
approved these changes
Jan 27, 2024
Member
rholinshead
left a comment
There was a problem hiding this comment.
Accepting to unblock, just minor things
python/src/aiconfig/editor/client/src/components/global/ShareButton.tsx
Outdated
Show resolved
Hide resolved
python/src/aiconfig/editor/client/src/components/global/ShareButton.tsx
Outdated
Show resolved
Hide resolved
python/src/aiconfig/editor/client/src/components/global/ShareButton.tsx
Outdated
Show resolved
Hide resolved
Comment on lines
+23
to
+31
| [theme.fn.smallerThan("sm")]: { | ||
| marginLeft: "0", | ||
| display: "block", | ||
| position: "static", | ||
| bottom: -10, | ||
| left: 0, | ||
| height: 28, | ||
| margin: "10px 0", | ||
| }, |
Member
There was a problem hiding this comment.
What does this look like on small screens?
Contributor
Author
There was a problem hiding this comment.
It doesn't actually apply to us since we can never go smaller than certain width for some reason:
95d05cfd-3750-42c4-a770-e239c9af9bce.mp4
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
rossdanlm
pushed a commit
that referenced
this pull request
Jan 28, 2024
Published both pacakges to PyPi, also ran yarn build because I forgot to do that after #1049
rossdanlm
added a commit
that referenced
this pull request
Jan 29, 2024
Updating python-aiconfig to v1.1.17 and HF extension to 0.0.6 Published both pacakges to PyPi, also ran yarn build because I forgot to do that after #1049 Following instructions from https://www.notion.so/lastmile-ai/OSS-Release-process-Publishing-Guides-1260b4199f3946ff8abf5713f7c3fffc?pvs=4#b4ae95f609814f9095411c742391e915
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Test plan
46e13a39-64cf-40a7-9786-5fb78405e5f2.mp4
Stack created with Sapling. Best reviewed with ReviewStack.