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

DApp bottom sheet entry point #1731

Merged
merged 4 commits into from
Nov 26, 2024
Merged

Conversation

antonijzelinskij
Copy link
Contributor

@antonijzelinskij antonijzelinskij commented Nov 26, 2024

#8696nvaej

Base automatically changed from feature/dapp-browser-ui to sdapp-base November 26, 2024 14:56
@antonijzelinskij antonijzelinskij merged commit ae43243 into sdapp-base Nov 26, 2024
1 check passed
@antonijzelinskij antonijzelinskij deleted the feature/split-screen branch November 26, 2024 14:57
import io.novafoundation.nova.core_db.dao.BrowserTabsDao
import kotlinx.coroutines.flow.Flow

class TabsRepository(private val tabsDao: BrowserTabsDao) {
Copy link
Member

Choose a reason for hiding this comment

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

This should have an interface in dapp browser api and implementation in dapp browser impl and be provided to root

import android.view.View
import android.view.ViewOutlineProvider

class RoundCornersOutlineProvider(
Copy link
Member

Choose a reason for hiding this comment

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

This can be in common module

}

dappEntryPoint.isVisible = it > 0
dappEntryPointText.text = getString(R.string.dapp_entry_point_title, it)
Copy link
Member

Choose a reason for hiding this comment

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

Shouldnt we display a proper tab name in case there's only one tab?
AlsoI think this formatting logic can go to ViewModel (whether to make entryPointVisible, what text to set to entry point)

class Tab(val id: String) : DAppBrowserPayload

@Parcelize
class Address(val address: String) : DAppBrowserPayload
Copy link
Member

Choose a reason for hiding this comment

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

By Address you mean Url?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

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