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

Create search screen #278

Merged
merged 20 commits into from
Sep 9, 2022
Merged

Create search screen #278

merged 20 commits into from
Sep 9, 2022

Conversation

mtkw0127
Copy link
Contributor

@mtkw0127 mtkw0127 commented Sep 8, 2022

Issue

Overview (Required)

  • Add search screen by search icon
  • You can search session by title

Links

  • Nothing

Screenshot

Before After (pre search) After (searched)
nothing

@mtkw0127 mtkw0127 marked this pull request as ready for review September 8, 2022 01:00
@mtkw0127 mtkw0127 changed the title Feature/create search screen Create search screen Sep 8, 2022
@takahirom
Copy link
Member

👀

@takahirom
Copy link
Member

Sessions.kt: (447, 9): No value passed for parameter 'showNavigationIcon'
Can you take a look at this error? 🙏

@mtkw0127
Copy link
Contributor Author

mtkw0127 commented Sep 8, 2022

@takahirom
I could fix the error. please help to review 🙏 This is my first time OSS commit 🙏

Copy link
Member

@takahirom takahirom left a comment

Choose a reason for hiding this comment

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

I wrote small comments. But it is almost LGTM! I heard you are a beginner. But your code is clean. 👍


@OptIn(ExperimentalMaterial3Api::class, ExperimentalComposeUiApi::class)
@Composable
private fun SearchTextField(searchWord: String, updateSearchWord: (String) -> Unit) {
Copy link
Member

Choose a reason for hiding this comment

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

We use on〜 for state hoisting lambda variables. Because it is event. So How about changing onSearchWordChange from updateSearchWord?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

647bf0e

I changed method name.

}

@Composable
fun SearchScreen(
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a Preview function? If we have that, it will be easy to improve it 🙏

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ab130cf

I added preview:pray:

onItemClick: () -> Unit,
onBookMarkClick: () -> Unit,
) {
var contentHeight = 100.dp
Copy link
Member

Choose a reason for hiding this comment

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

I don't think this is needed. But it is ok now. We can do it later 👍

@mtkw0127 mtkw0127 requested review from takahirom and removed request for takahirom September 8, 2022 23:52
@mtkw0127
Copy link
Contributor Author

mtkw0127 commented Sep 8, 2022

@takahirom
I fixed codes. please help to review 🙏

@mtkw0127
Copy link
Contributor Author

mtkw0127 commented Sep 9, 2022

@takahirom
sorry 🙏 I continue to fix build error.

@takahirom
Copy link
Member

takahirom commented Sep 9, 2022

I recommend that you run ./gradlew spotlessKotlinApply 🙏

@mtkw0127
Copy link
Contributor Author

mtkw0127 commented Sep 9, 2022

@takahirom
I fixed format violation code 🙏 I checked in local by gradle :feature-sessions:spotlessKotlinCheck
please help to review 🙏

Copy link
Member

@takahirom takahirom left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Thank you for tackling this issue!

@takahirom takahirom merged commit 1c152b6 into DroidKaigi:main Sep 9, 2022
) {
Text(
text = timeTable.title.currentLangTitle,
onTextLayout = {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ここ

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.

None yet

2 participants