This pull request includes significant updates to the build and release workflow and substantial changes to the ThreadScreenState class to improve the handling of thread sections.
Workflow Improvements:
.github/workflows/build_and_release.yml: Renamed the job from version-bump-build-and-release to build-and-release and added conditions to several steps to only run on the main branch. Additionally, updated the cache path and added debugging steps. [1][2][3][4][5]
These changes collectively enhance the functionality and maintainability of the thread screen, streamline the build and release process, and improve the user experience.
This pull request includes significant updates to the build and release workflow and substantial changes to the
ThreadScreenState
class to improve the handling of thread sections.Workflow Improvements:
.github/workflows/build_and_release.yml
: Renamed the job fromversion-bump-build-and-release
tobuild-and-release
and added conditions to several steps to only run on themain
branch. Additionally, updated the cache path and added debugging steps. [1] [2] [3] [4] [5]Thread Screen Enhancements:
lib/screens/thread/thread_screen_state.dart
: Refactored theThreadScreenState
class to use a list ofThreadSection
objects, allowing for better management of related questions, images, and search results. Introduced methods for adding initial and follow-up sections and performing searches. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]Widget Updates:
lib/widgets/thread/follow_up_input.dart
: Modified theFollowUpInput
widget to accept a callback that receives the input text, improving the handling of follow-up queries. [1] [2] [3]lib/widgets/thread/related_questions.dart
: Updated theRelatedQuestions
widget to use a callback for handling question selection, removing the navigation logic. [1] [2]These changes collectively enhance the functionality and maintainability of the thread screen, streamline the build and release process, and improve the user experience.