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: recent session history #2742

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Conversation

yomybaby
Copy link
Member

@yomybaby yomybaby commented Oct 10, 2024

This pull request introduces several changes to the react project to enhance the session management features and improve form handling. The most important changes include adding a new SessionTemplateModal component, and enhancing the SessionLauncherPage with session history functionality.

New Features and Components:

  • SessionTemplateModal Component: Added a new modal component to display recent session history, allowing users to apply previous session settings easily. (react/src/components/SessionTemplateModal.tsx)

Updates to Session Management:

  • Session History Handling: Introduced a new hook useRecentSessionHistory to manage recent session history, including functions to push, clear, and remove session history entries. (react/src/hooks/backendai.tsx)
  • SessionLauncherPage: Enhanced to include session history functionality, allowing users to start sessions with previously used settings and view recent session history. (react/src/pages/SessionLauncherPage.tsx) [1] [2] [3]

Minor Changes:

  • Code Cleanup and Imports: Various files updated to clean up imports and improve code readability. (react/src/pages/SessionLauncherPage.tsx, react/src/hooks/useBAISetting.tsx, react/src/hooks/backendai.tsx) [1] [2] [3] [4] [5]

These changes collectively enhance the user experience by providing better session management tools and improving the flexibility and functionality of existing components.

Copy link

graphite-app bot commented Oct 10, 2024

Your org requires the Graphite merge queue for merging into main

Add the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@yomybaby yomybaby mentioned this pull request Oct 10, 2024
6 tasks
Copy link
Member Author

yomybaby commented Oct 10, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @yomybaby and the rest of your teammates on Graphite Graphite

@github-actions github-actions bot added area:ux UI / UX issue. area:i18n Localization labels Oct 10, 2024
@github-actions github-actions bot added the size:L 100~500 LoC label Oct 10, 2024
@yomybaby yomybaby force-pushed the feature/recent-sesison-history branch from 77a14d8 to 7946fa7 Compare October 11, 2024 08:02
@github-actions github-actions bot added size:XL 500~ LoC and removed size:L 100~500 LoC labels Oct 11, 2024
@yomybaby yomybaby force-pushed the feature/recent-sesison-history branch from 7946fa7 to c00180f Compare October 11, 2024 09:24
@yomybaby yomybaby marked this pull request as ready for review October 11, 2024 09:27
@yomybaby yomybaby marked this pull request as draft October 14, 2024 01:40
@yomybaby yomybaby marked this pull request as ready for review October 14, 2024 01:47
Copy link
Contributor

@agatha197 agatha197 left a comment

Choose a reason for hiding this comment

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

Works fine. I just left minor comment to remove debugging codes.

react/src/components/VFolderTableFormItem.tsx Outdated Show resolved Hide resolved
react/src/pages/SessionLauncherPage.tsx Outdated Show resolved Hide resolved
react/src/pages/SessionLauncherPage.tsx Outdated Show resolved Hide resolved
Copy link
Member Author

Thank you for reviewing. I have accepted your suggestion.

Copy link
Contributor

@lizable lizable left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Contributor

@agatha197 agatha197 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

graphite-app bot commented Oct 21, 2024

Merge activity

This pull request introduces several changes to the `react` project to enhance the session management features and improve form handling. The most important changes include adding a new `SessionTemplateModal` component, and enhancing the `SessionLauncherPage` with session history functionality.

### New Features and Components:
* **`SessionTemplateModal` Component**: Added a new modal component to display recent session history, allowing users to apply previous session settings easily. (`react/src/components/SessionTemplateModal.tsx`)

### Updates to Session Management:
* **Session History Handling**: Introduced a new hook `useRecentSessionHistory` to manage recent session history, including functions to push, clear, and remove session history entries. (`react/src/hooks/backendai.tsx`)
* **`SessionLauncherPage`**: Enhanced to include session history functionality, allowing users to start sessions with previously used settings and view recent session history. (`react/src/pages/SessionLauncherPage.tsx`) [[1]](diffhunk://#diff-cb5aa3700f469823d540634a1acf2796ffcfa96416d6fa9333bfab0ff658b2c1R229-R239) [[2]](diffhunk://#diff-cb5aa3700f469823d540634a1acf2796ffcfa96416d6fa9333bfab0ff658b2c1L542-R575) [[3]](diffhunk://#diff-cb5aa3700f469823d540634a1acf2796ffcfa96416d6fa9333bfab0ff658b2c1L652-R694)

### Minor Changes:
* **Code Cleanup and Imports**: Various files updated to clean up imports and improve code readability. (`react/src/pages/SessionLauncherPage.tsx`, `react/src/hooks/useBAISetting.tsx`, `react/src/hooks/backendai.tsx`) [[1]](diffhunk://#diff-cb5aa3700f469823d540634a1acf2796ffcfa96416d6fa9333bfab0ff658b2c1R34) [[2]](diffhunk://#diff-cb5aa3700f469823d540634a1acf2796ffcfa96416d6fa9333bfab0ff658b2c1L48-R52) [[3]](diffhunk://#diff-cb5aa3700f469823d540634a1acf2796ffcfa96416d6fa9333bfab0ff658b2c1L62-R66) [[4]](diffhunk://#diff-cb5aa3700f469823d540634a1acf2796ffcfa96416d6fa9333bfab0ff658b2c1L72) [[5]](diffhunk://#diff-cb5aa3700f469823d540634a1acf2796ffcfa96416d6fa9333bfab0ff658b2c1L95-R98)

These changes collectively enhance the user experience by providing better session management tools and improving the flexibility and functionality of existing components.
@yomybaby yomybaby force-pushed the refactor/use-event-type-definition branch from 1d7ea84 to 253d05e Compare October 21, 2024 06:39
@yomybaby yomybaby force-pushed the feature/recent-sesison-history branch from 7fb119e to a7862fd Compare October 21, 2024 06:39
Base automatically changed from refactor/use-event-type-definition to main October 21, 2024 06:41
@graphite-app graphite-app bot merged commit a7862fd into main Oct 21, 2024
4 checks passed
@graphite-app graphite-app bot deleted the feature/recent-sesison-history branch October 21, 2024 06:42
ironAiken2 added a commit to lablup/backend.ai-docs-webui that referenced this pull request Nov 22, 2024
…modal descriptions (#86)

### This PR is about updating `sessions` section for 24.09

**Changes:**
- Starting with Backend.AI version 24.09, NEO session launcher is used as the default session launcher. 
- Added session owner setting feature. 
- Added session histyro search function. 
- Added folder explorer and vfoler creation function in session launcher page.

**Related PRs:**
- lablup/backend.ai-webui#2742 @yomybaby 
- lablup/backend.ai-webui#2766 @yomybaby 
- lablup/backend.ai-webui#2765 @yomybaby 
- lablup/backend.ai-webui#2745 @ironAiken2 

- PDF[kr] : [연산 세션 — Backend.AI Web-UI User Guide 24.03 문서.pdf](https://github.com/user-attachments/files/17486329/Backend.AI.Web-UI.User.Guide.24.03.pdf)

- PDF[en] : [Compute Sessions — Backend.AI Web-UI User Guide 24.03 documentation.pdf](https://github.com/user-attachments/files/17486331/Compute.Sessions.Backend.AI.Web-UI.User.Guide.24.03.documentation.pdf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:i18n Localization area:ux UI / UX issue. size:XL 500~ LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants