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.
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.