-
Notifications
You must be signed in to change notification settings - Fork 0
Final bugfix before ecosystem release #141
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
Open
RyanCheung555
wants to merge
3
commits into
main
Choose a base branch
from
ryan/final-bugfix
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
adf50ab
fix: remove centering location button and add back buttons to setting…
RyanCheung555 98a7a1d
fix: process routes for arrive by / leave at to show more relevant re…
RyanCheung555 f5aa428
fix: address coderabbit comments, fix fallback result handling
RyanCheung555 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,7 @@ package com.cornellappdev.transit.ui.screens.settings | |
|
|
||
| import android.content.Intent | ||
| import androidx.compose.foundation.Image | ||
| import androidx.compose.foundation.layout.Arrangement | ||
| import androidx.compose.foundation.layout.Column | ||
| import androidx.compose.foundation.layout.PaddingValues | ||
| import androidx.compose.foundation.layout.Row | ||
|
|
@@ -10,9 +11,12 @@ import androidx.compose.foundation.layout.padding | |
| import androidx.compose.foundation.layout.size | ||
| import androidx.compose.foundation.layout.width | ||
| import androidx.compose.foundation.shape.RoundedCornerShape | ||
| import androidx.compose.material.icons.Icons | ||
| import androidx.compose.material.icons.automirrored.outlined.KeyboardArrowLeft | ||
| import androidx.compose.material3.Button | ||
| import androidx.compose.material3.ButtonDefaults | ||
| import androidx.compose.material3.Icon | ||
| import androidx.compose.material3.IconButton | ||
| import androidx.compose.material3.Text | ||
| import androidx.compose.runtime.Composable | ||
| import androidx.compose.ui.Alignment | ||
|
|
@@ -31,11 +35,14 @@ import androidx.compose.ui.unit.sp | |
| import androidx.core.net.toUri | ||
| import com.cornellappdev.transit.R | ||
| import com.cornellappdev.transit.ui.components.MemberList | ||
| import com.cornellappdev.transit.ui.theme.IconGray | ||
| import com.cornellappdev.transit.ui.theme.TransitBlue | ||
| import com.cornellappdev.transit.ui.theme.robotoFamily | ||
|
|
||
| private val names = mapOf( | ||
| "iOS" to listOf( | ||
| "Gabriel Castillo", | ||
| "Isha Nagireddy", | ||
| "Angelina Chen", | ||
| "Asen Ou", | ||
| "Jayson Hahn", | ||
|
|
@@ -53,6 +60,8 @@ private val names = mapOf( | |
| "Monica Ong" | ||
| ), | ||
| "Android" to listOf( | ||
| "Ryan Cheung", | ||
| "Abigail Labanok", | ||
| "Mihili Herath", | ||
| "Jonathan Chen", | ||
| "Veronica Starchenko", | ||
|
|
@@ -70,6 +79,7 @@ private val names = mapOf( | |
| "Abdullah Islam" | ||
| ), | ||
| "Design" to listOf( | ||
| "Seojin Park", | ||
| "Gillian Fang", | ||
| "Leah Kim", | ||
| "Amy Ge", | ||
|
|
@@ -81,6 +91,8 @@ private val names = mapOf( | |
| "Mind Apivessa" | ||
| ), | ||
| "Marketing" to listOf( | ||
| "Maya Levine", | ||
| "Nina Zambrano", | ||
| "Anvi Savant", | ||
| "Christine Tao", | ||
| "Luke Stewart", | ||
|
|
@@ -92,6 +104,7 @@ private val names = mapOf( | |
| "Catherine Wei" | ||
| ), | ||
| "Backend" to listOf( | ||
| "Wyatt Cox", | ||
| "Nicole Qiu", | ||
| "Daisy Chang", | ||
| "Lauren Ah-Hot", | ||
|
|
@@ -110,16 +123,25 @@ private val names = mapOf( | |
| * Composable for the About Screen of the app, which displays information about team behind it. | ||
| */ | ||
| @Composable | ||
| fun AboutScreen() { | ||
| fun AboutScreen(onBackClick: () -> Unit) { | ||
| val context = LocalContext.current | ||
|
|
||
| Column( | ||
| modifier = Modifier | ||
| .fillMaxSize() | ||
| .padding(16.dp), | ||
| ) | ||
|
|
||
| { | ||
| IconButton(onClick = onBackClick) { | ||
| Icon( | ||
| imageVector = Icons.AutoMirrored.Outlined.KeyboardArrowLeft, | ||
| contentDescription = "Go back", | ||
| tint = IconGray, | ||
| modifier = Modifier.size(24.dp) | ||
| ) | ||
| } | ||
|
|
||
| Text( | ||
| text = stringResource(R.string.about_text), | ||
| fontSize = 32.sp, | ||
|
|
@@ -180,6 +202,7 @@ fun AboutScreen() { | |
| ) | ||
| MemberList( | ||
| listOf( | ||
| "Nina Zambrano", | ||
| "Anvi Savant", | ||
| "Cindy Liang", | ||
| "Maxwell Pang", | ||
|
|
@@ -233,5 +256,5 @@ fun AboutScreen() { | |
| @Preview(showBackground = true) | ||
| @Composable | ||
| private fun PreviewAboutScreen() { | ||
|
Member
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. Nit: for consistency, should stick with Preview after AboutScreen
Member
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. Also, there's a preview rendering issue here as well. |
||
| AboutScreen() | ||
| AboutScreen {} | ||
| } | ||
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
Oops, something went wrong.
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.
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.
Nit: can probably be made into another issue but hardcoded strings like these should ideally be extracted into some sort of strings.xml or constants file instead of living in the screen