-
Notifications
You must be signed in to change notification settings - Fork 789
Doc Update: feature/recent-transaction[MM-439] #3018
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
base: development
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -15,10 +15,20 @@ import androidx.navigation.compose.composable | |||||||||||||||||||||||
| import androidx.navigation.compose.navigation | ||||||||||||||||||||||||
| import org.mifos.mobile.feature.recent.transaction.screen.RecentTransactionScreen | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||
| * Navigates to the recent transactions feature graph. | ||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||
| fun NavController.navigateToRecentTransactionScreen() { | ||||||||||||||||||||||||
| navigate(RecentTransactionNavigation.RecentTransactionBase.route) | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||
| * Defines the nested navigation graph for the recent transactions feature. | ||||||||||||||||||||||||
| * | ||||||||||||||||||||||||
| * This graph includes all screens related to recent transactions. | ||||||||||||||||||||||||
| * | ||||||||||||||||||||||||
| * @param navController The [NavController] used to handle navigation events. | ||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||
| fun NavGraphBuilder.recentTransactionNavGraph( | ||||||||||||||||||||||||
| navController: NavController, | ||||||||||||||||||||||||
| navigateToDetails: (String, String, Long) -> Unit, | ||||||||||||||||||||||||
|
|
@@ -34,6 +44,11 @@ fun NavGraphBuilder.recentTransactionNavGraph( | |||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||
| * Defines the composable route for the main [RecentTransactionScreen]. | ||||||||||||||||||||||||
| * | ||||||||||||||||||||||||
| * @param navigateBack Callback to navigate back to the previous screen. | ||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||
|
Comment on lines
+47
to
+51
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Document the missing parameter. The KDoc is missing documentation for the 🔎 Suggested fix to add missing parameter documentation /**
* Defines the composable route for the main [RecentTransactionScreen].
*
* @param navigateBack Callback to navigate back to the previous screen.
+ * @param navigateToDetails Callback to navigate to transaction details screen with account type, account ID, and transaction ID.
*/📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||
| fun NavGraphBuilder.recentTransactionScreenRoute( | ||||||||||||||||||||||||
| navigateBack: () -> Unit, | ||||||||||||||||||||||||
| navigateToDetails: (String, String, Long) -> Unit, | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document the missing parameter.
The KDoc is missing documentation for the
navigateToDetailsparameter.🔎 Suggested fix to add missing parameter documentation
/** * Defines the nested navigation graph for the recent transactions feature. * * This graph includes all screens related to recent transactions. * * @param navController The [NavController] used to handle navigation events. + * @param navigateToDetails Callback to navigate to transaction details screen with account type, account ID, and transaction ID. */📝 Committable suggestion
🤖 Prompt for AI Agents