Skip to content

refactor: update SegmentActionBar to a Resources panel with improved …#408

Open
dhakar66 wants to merge 15 commits into
developfrom
feat/TextReaderDraggableNewVersion
Open

refactor: update SegmentActionBar to a Resources panel with improved …#408
dhakar66 wants to merge 15 commits into
developfrom
feat/TextReaderDraggableNewVersion

Conversation

@dhakar66

Copy link
Copy Markdown
Collaborator

…layout and functionality

  • Renamed _BottomActionPanel to _ResourcesPanel and updated its structure.
  • Introduced copy and share buttons with dedicated widgets for better clarity.
  • Enhanced the layout to include a title and improved spacing for a more user-friendly interface.
  • Updated the action handling for commentary and version selection.
  • Added a back button to the reader bottom panel for improved navigation.

…layout and functionality

- Renamed _BottomActionPanel to _ResourcesPanel and updated its structure.
- Introduced copy and share buttons with dedicated widgets for better clarity.
- Enhanced the layout to include a title and improved spacing for a more user-friendly interface.
- Updated the action handling for commentary and version selection.
- Added a back button to the reader bottom panel for improved navigation.
@dhakar66 dhakar66 requested a review from tentamdin June 22, 2026 07:38
@greptile-apps

greptile-apps Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5

The bookmark and UI changes are safe, but the removal of the duplicate-recitation guard in the routine editor can silently write duplicate entries to the user's practice routine.

The interactive _addRecitationToBlock path no longer checks whether the selected recitation is already present in that block before adding it and syncing to the API. Previously the guard produced a snackbar and returned early; now the same item can be added multiple times without any feedback. The series-enrollment code in the same file still explicitly enforces per-block deduplication, confirming this was not an intentional design change.

lib/features/practice/presentation/screens/edit_routine_screen.dart — the _addRecitationToBlock method lost its duplicate-prevention check.

Reviews (10): Last reviewed commit: "refactor: streamline recitation handling..." | Re-trigger Greptile

Comment thread lib/features/reader/presentation/widgets/reader_actions/segement_action_bar.dart Outdated
@dhakar66 dhakar66 marked this pull request as draft June 22, 2026 07:42
dhakar66 added 2 commits June 23, 2026 12:48
- Added "resources" key to localization files for multiple languages (bo, en, hi, mn, ne, zh).
- Updated pubspec.lock and Podfile.lock to reflect new package versions and checksums.
- Modified segment action bar to use localized "resources" string.
@dhakar66 dhakar66 marked this pull request as ready for review June 23, 2026 07:33
tentamdin and others added 2 commits June 23, 2026 21:35
…bottom_panel_shell.dart

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@dhakar66 dhakar66 marked this pull request as draft June 24, 2026 05:58
dhakar66 added 9 commits June 24, 2026 12:23
- Introduced a new bookmark icon in AppAssets.
- Added "Tools" and "Bookmark" translations in multiple languages.
- Updated the UI to include a bookmark button in the resources panel.
- Introduced a new button in the reader app bar to open a "more" bottom sheet for additional options.
- Implemented the `_openMoreBottomSheet` method to handle the display of the new bottom sheet.
- Removed unused font size button references from the app bar for cleaner code.
- not yet implemented the bookmark funcitonality and add to my practices logic.
- Introduced a new BookmarksScreen to manage user bookmarks with a tabbed interface.
- Updated app routing to include a new route for bookmarks.
- Modified PracticeExploreScreen to navigate to the bookmarks screen when the bookmarks button is tapped.
- Added BookmarkRemoteDatasource to handle API interactions for creating bookmarks.
- Created BookmarkRepository to manage bookmark creation logic and error handling.
- Developed BookmarkController to facilitate bookmark creation from the UI.
- Integrated bookmark functionality into SegmentActionBar and ReaderMoreBottomSheet for user interaction.
- Introduced CreateBookmarkParams for structured bookmark creation requests.
- Added initialRecitation parameter to EditRoutineScreen for better integration of recitation data.
- Updated app routing to support navigation from recitation lists to the reader screen.
- Modified PracticeChantsSection and MyRecitationsTab to utilize the new navigation context for recitations.
- Enhanced ReaderMoreBottomSheet to conditionally show "Add to my practices" option based on recitation context.
- Introduced new NavigationSource values for recitationList and routine to improve navigation context management.
@dhakar66 dhakar66 marked this pull request as ready for review June 25, 2026 07:11
…der components

- Removed duplicate recitation checks from EditRoutineScreen to simplify the injection of initial recitation data.
- Updated ReaderScreen to eliminate unnecessary routine data checks, enhancing performance and clarity.
- Adjusted ReaderMoreBottomSheet to remove the isInPractices parameter, simplifying the UI logic for adding practices.
- Improved navigation context handling for recitations in the reader flow.
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.

2 participants