Skip to content
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

Bug + Refactor: Features-> Auth Module . #2239

Merged
merged 12 commits into from
Nov 19, 2024

Conversation

Darkeye14
Copy link
Contributor

@Darkeye14 Darkeye14 commented Nov 14, 2024

Fixes #Issue_Number
MIFOSAC-277

1)Fixes Post Login navigation issue.
2) CleanUp of Auth Module
3)Applying Spotless and detekt
Please Add Screenshots If there are any UI changes.

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Apply the MifosStyle.xml style template to your code in Android Studio.

  • Run the unit tests with ./gradlew check to make sure you didn't break anything

  • If you have multiple commits please combine them into one commit by squashing them.

@Darkeye14 Darkeye14 changed the title Refactor: CleanUp Auth Module. Bug + Refactor: Features-> Auth Module . Nov 14, 2024
@Darkeye14
Copy link
Contributor Author

WhatsApp.Video.2024-11-14.at.23.46.50_9699878a.mp4

Comment on lines 46 to 58
fun NavController.navigateToMainGraph(){
val options = navOptions {
popUpTo(graph.findStartDestination().id) {
saveState = false
}
launchSingleTop = true
restoreState = false
}
navigate(MifosNavGraph.MAIN_GRAPH , options)



}
Copy link
Contributor

@itsPronay itsPronay Nov 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't need it.
The error can be fixed by changing the Navroute of MifosNavGraph.MainGraph or passcodegraph.mainscreengraph

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done Bhai

Comment on lines 42 to 44
composable(MifosNavGraph.MAIN_GRAPH){
HomeNavigation()
}
Copy link
Contributor

@itsPronay itsPronay Nov 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we adding this here? we already have one called homeGraph

Comment on lines 82 to 93
<activity
android:name=".activity.setting.SettingsActivity"
android:label="@string/settings"
android:parentActivityName=".activity.home.HomeActivity"
android:screenOrientation="portrait">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value=".activity.home.HomeActivity" />
</activity>



Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we already cleaned up feature settings . why are we adding this?

Comment on lines 77 to 109
<fragment
android:id="@+id/checkerInboxTasksFragment"
android:name="com.mifos.mifosxdroid.online.checkerinbox.CheckerInboxTasksFragment"
android:label="CheckerInboxTasksFragment">
<action
android:id="@+id/action_checkerInboxTasksFragment_to_checkerInboxFragment"
app:destination="@id/checkerInboxFragment" />
</fragment>


<fragment
android:id="@+id/checkerInboxFragment"
android:name="com.mifos.mifosxdroid.online.checkerinbox.CheckerInboxFragment"
android:label="CheckerInboxFragment" />


<fragment
android:id="@+id/individualCollectionSheetFragment"
android:name="com.mifos.mifosxdroid.online.collectionsheetindividual.IndividualCollectionSheetFragment"
android:label="IndividualCollectionSheetFragment">

<action
android:id="@+id/action_individualCollectionSheetFragment_to_individualCollectionSheetDetailsFragment"
app:destination="@id/individualCollectionSheetDetailsFragment" />

</fragment>


<fragment
android:id="@+id/generateCollectionSheetFragment"
android:name="com.mifos.mifosxdroid.online.generatecollectionsheet.GenerateCollectionSheetFragment"
android:label="GenerateCollectionSheetFragment" />

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we adding this again? Wasn't it already removed during the previous cleanup process?

Comment on lines 146 to 186
<fragment
android:id="@+id/individualCollectionSheetDetailsFragment"
android:name="com.mifos.mifosxdroid.online.collectionsheetindividualdetails.IndividualCollectionSheetDetailsFragment"
android:label="IndividualCollectionSheetDetailsFragment">
<argument
android:name="sheet"
app:argType="com.mifos.core.objects.collectionsheet.IndividualCollectionSheet" />
<argument
android:name="actualDisbursementDate"
app:argType="string" />
<argument
android:name="transactionDate"
app:argType="string" />
<action
android:id="@+id/action_individualCollectionSheetDetailsFragment_to_paymentDetailsFragment"
app:destination="@id/paymentDetailsFragment" />
</fragment>
<fragment
android:id="@+id/paymentDetailsFragment"
android:name="com.mifos.mifosxdroid.online.collectionsheetindividualdetails.PaymentDetailsFragment"
android:label="PaymentDetailsFragment">
<argument
android:name="position"
app:argType="integer" />
<argument
android:name="payload"
app:argType="com.mifos.core.network.model.IndividualCollectionSheetPayload" />
<argument
android:name="paymentTypeList"
app:argType="string[]" />
<argument
android:name="loanAndClientName"
app:argType="com.mifos.core.objects.collectionsheet.LoanAndClientName" />
<argument
android:name="paymentTypeOptions"
app:argType="com.mifos.core.objects.accounts.loan.PaymentTypeOptions[]" />
<argument
android:name="clientId"
app:argType="integer" />
</fragment>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here as well

@therajanmaurya therajanmaurya merged commit 619693a into openMF:master Nov 19, 2024
1 check failed
@Darkeye14 Darkeye14 deleted the Auth-Module-CleanUp branch November 28, 2024 15:59
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.

3 participants