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

[Playground] Parameters Tab: UI Components only #290 #333

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

Conversation

juhangil
Copy link
Contributor

@juhangil juhangil commented Oct 5, 2024

290-pr

Description

  • Layout 확인을 위해 playground page에 border line을 추가했습니다. 필요할 경우 지우겠습니다.
  • Slider에 min, max, base 값 적용 후 boundary 값을 벗어날 경우 error card를 출력하게 했습니다.
  • Azure OpenAI Studio Playground를 참고하여 Stop sequence에 multi select를 적용했습니다.

@juhangil juhangil force-pushed the feature/290-parameters-tab-ui branch from 8ed39e9 to bdff959 Compare October 6, 2024 07:37
Copy link
Contributor

@justinyoo justinyoo left a comment

Choose a reason for hiding this comment

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

이벤트 버블링 관련해서 코멘트를 남겨뒀습니다.

Comment on lines 9 to 14
<FluentGrid Spacing="0" AdaptiveRendering="true" Justify="JustifyContent.FlexStart">
<FluentGridItem Class="config-grid" xs="12" sm="12" md="4" lg="4" xl="4" xxl="4" Style="border:1px solid lightgrey">
<ConfigWindowComponent Id="config-window" OnSystemMessageChanged="SetSystemMessage" @rendermode="InteractiveServer" />
</FluentGridItem>

<FluentGridItem Class="chat-grid" xs="12" sm="12" md="8" lg="8" xl="8" xxl="8" Style="height: 900px;">
<FluentGridItem Class="chat-grid" xs="12" sm="12" md="8" lg="8" xl="8" xxl="8" Style="border:1px solid lightgrey">
Copy link
Contributor

Choose a reason for hiding this comment

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

이 스타일은 나중에 최종적으로 다시 원래대로 돌려놓을 건가요, 아니면 쭉 이대로 갈 건가요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

최종적으로는 돌려놓고 작업 도중에는 유지하는게 낫지 않을까 생각합니다

public string? Id { get; set; }

[Parameter]
public EventCallback<TValue> ValueChanged { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

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

OnValueChanged로 바꾸는 것이 좋겠습니다.


<div id="@Id" class="parameter-tab">
@* Past Messages Range *@
<ParameterRangeComponent Id="range-past-messages"
Copy link
Contributor

Choose a reason for hiding this comment

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

이 컴포넌트의 OnValueChanged 이벤트를 바인딩해서 ConfigTabComponent, ConfigWindowComponent 쪽으로 버블업 시켜줘야 합니다. 그렇게 해서 결국 Playground 페이지에서 값을 인식할 수 있어야 합니다.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

다른 컴포넌트 값들을 하나로 묶어서 처리하자니 코드가 너무 더러워지는 것 같아서 양방향 바인딩으로 처리해봤습니다

@juhangil juhangil force-pushed the feature/290-parameters-tab-ui branch from bdff959 to fb87a63 Compare October 19, 2024 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Playground] Parameters Tab: UI Components only
2 participants