Feature/decompose root#63
Open
eerterr wants to merge 5 commits into
Open
Conversation
PavMash
reviewed
Jun 16, 2026
Comment on lines
+19
to
+21
| class Authentication( | ||
| val component: IAuthenticationComponent | ||
| ) : Child() |
Contributor
There was a problem hiding this comment.
Пиши в одну строку, тут не так длинно получается
class Authentication(val component: IAuthenticationComponent): Child()
|
|
||
| val stack: Value<ChildStack<*, Child>> | ||
|
|
||
| sealed class Child { |
Contributor
There was a problem hiding this comment.
Добавь наследников Child для ai_interactions, quiz_edit, quiz_list, quiz_solve и settings. По такому же принципу как authentication
Comment on lines
+30
to
+34
| @Serializable | ||
| sealed class Config { | ||
| @Serializable | ||
| data object Authentication : Config() | ||
| } |
Contributor
There was a problem hiding this comment.
Убери Config в самый низ. Добавь еще остальных наследников как в Child
| source = navigation, | ||
| serializer = null, | ||
| initialConfiguration = Config.Authentication, | ||
| handleBackButton = true, |
Contributor
There was a problem hiding this comment.
Лучше сделай false. Добавим потом функцию back и будем вручную на каждый экран прокидывать. Тогда при нажатии back можно будет дополнительно какую то логику исполнять
Comment on lines
+48
to
+52
| Config.Authentication -> | ||
| IRootComponent.Child.Authentication( | ||
| AuthenticationComponent(componentContext) | ||
| ) | ||
| } |
Contributor
There was a problem hiding this comment.
Добавь по такому же принципу для остальных фич
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Implemented root navigation for the mobile application using Decompose. Added Authentication as the initial destination and prepared the navigation structure for future screens.
Changes
RootComponentwith stack-based navigation.Authenticationas the initial navigation configuration.AuthenticationComponentinRootComponent.@Serializableannotations for navigation configurations.Related Issues
Closes #54