Skip to content

fix: collapse session form when an active session exists - #84

Open
rishithareddychalla wants to merge 1 commit into
NxtLabTech:mainfrom
rishithareddychalla:feature/issue-37-collapse-session-form
Open

rishithareddychalla wants to merge 1 commit into
NxtLabTech:mainfrom
rishithareddychalla:feature/issue-37-collapse-session-form

Conversation

@rishithareddychalla

Copy link
Copy Markdown

Summary

Closes #37

Improves the mentor dashboard by making the Start a session form collapsible, reducing unnecessary screen space when an active session already exists.

Changes

  • Replaced the always-visible session creation form with a Material ExpansionTile.
  • Expanded by default when no open sessions exist.
  • Collapsed by default when at least one open session exists.
  • Preserved form state when collapsed and expanded.
  • Automatically expanded the form when the last open session is closed.
  • Kept the existing CreateSessionCard widget and its functionality unchanged.
  • Replaced the deprecated ExpansionTileController with ExpansibleController.

Tests

  • Added tests for the initial expanded state when no sessions exist.
  • Added tests for the collapsed state when an open session exists.
  • Added tests for expanding the form.
  • Added tests verifying that entered form values survive collapsing and expanding.
  • Verified existing mentor dashboard functionality.

Validation

  • dart format: Passed
  • flutter analyze: No errors; 22 informational notices related to existing Material imports.
  • Mentor screen tests: 12 passed.
  • Full Flutter test suite: 77 passed.
  • git diff --check: Passed.

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.

Collapse the Start a session form on the mentor dashboard when a session is already open

1 participant