Skip to content

Feature/UI enhance#1109

Merged
Tlaster merged 6 commits intomasterfrom
feature/ui_enhance
Jul 21, 2025
Merged

Feature/UI enhance#1109
Tlaster merged 6 commits intomasterfrom
feature/ui_enhance

Conversation

@Tlaster
Copy link
Copy Markdown
Contributor

@Tlaster Tlaster commented Jul 21, 2025

No description provided.

@Tlaster Tlaster requested a review from Copilot July 21, 2025 04:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request implements a UI enhancement feature that improves the visual design and user experience across multiple screens and components. The changes include redesigned profile headers, improved icon theming, better screen layouts, and various UI refinements.

  • Redesigned profile header components with improved layout and styling
  • Added new ThemedIcon component with color-coded icons throughout settings screens
  • Enhanced screen layouts with better spacing, padding, and visual hierarchy
  • Improved back button styling and various UI component refinements

Reviewed Changes

Copilot reviewed 29 out of 29 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
UserFields.kt Converted to ColumnScope extension and removed card wrapper styling
ProfileHeader.kt Removed Column wrapper from profile header content area
CommonProfileHeader.kt Added conditional styling for big screen vs mobile layouts
StatusDetailRemoteMediator.kt Simplified tweet detail fetching logic and removed complex ID handling
FollowingPagingSource.kt Added filtering for specific card types in VVO data processing
FansPagingSource.kt Added filtering for specific card types in VVO data processing
ThemedIcon.kt New component providing color-coded icons with themed backgrounds
Various settings screens Updated to use ThemedIcon component and improved layouts
Various screen files Added back button styling and improved navigation patterns

Comment on lines +13 to +18
internal fun ColumnScope.UserFields(fields: ImmutableMap<String, UiRichText>) {
fields.onEachIndexed { index, (key, value) ->
UserField(
key = key,
value = value,
)
Copy link

Copilot AI Jul 21, 2025

Choose a reason for hiding this comment

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

The function signature change from accepting a Modifier parameter to being a ColumnScope extension removes the ability to apply custom modifiers. This is a breaking API change that may affect existing callers who need to apply styling.

Copilot uses AI. Check for mistakes.
is TweetWithVisibilityResults ->
result.tweet.legacy?.conversationIdStr == statusKey.id
null -> false
else -> true
Copy link

Copilot AI Jul 21, 2025

Choose a reason for hiding this comment

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

The catch-all 'else -> true' condition may include unintended tweet types in the results. Consider being more explicit about which types should be included to avoid potential issues with future API changes.

Suggested change
else -> true
is KnownTweetType1 -> true // Replace with actual known tweet type
is KnownTweetType2 -> true // Replace with actual known tweet type
else -> {
// Log a warning or handle unknown types explicitly
false
}

Copilot uses AI. Check for mistakes.
} else {
it.dark
}
} ?: error("Unknown color: $color")
Copy link

Copilot AI Jul 21, 2025

Choose a reason for hiding this comment

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

The error message should be more descriptive and helpful for debugging. Consider including the actual color value that was not found.

Suggested change
} ?: error("Unknown color: $color")
} ?: error("Unknown color: $color. Available colors: ${iconColorData.keys}")

Copilot uses AI. Check for mistakes.
)
},
overlineContent = {
Text(
Copy link

Copilot AI Jul 21, 2025

Choose a reason for hiding this comment

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

The hex color conversion logic 'color.toArgb().toHexString().uppercase()' appears to use an extension function 'toHexString()' that is not imported or defined in the visible imports. This may cause compilation errors.

Copilot uses AI. Check for mistakes.
Comment on lines +161 to +173
.let {
if (isBigScreen()) {
it
} else {
it
.padding(horizontal = screenHorizontalPadding)
.padding(bottom = 8.dp)
.listCard()
.background(PlatformTheme.colorScheme.card)
.padding(horizontal = screenHorizontalPadding, vertical = 8.dp)
.fillMaxWidth()
}
},
Copy link

Copilot AI Jul 21, 2025

Choose a reason for hiding this comment

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

[nitpick] The nested conditional styling logic is complex and difficult to read. Consider extracting this into a separate modifier extension function for better maintainability.

Suggested change
.let {
if (isBigScreen()) {
it
} else {
it
.padding(horizontal = screenHorizontalPadding)
.padding(bottom = 8.dp)
.listCard()
.background(PlatformTheme.colorScheme.card)
.padding(horizontal = screenHorizontalPadding, vertical = 8.dp)
.fillMaxWidth()
}
},
.applyProfileHeaderModifiers(),

Copilot uses AI. Check for mistakes.
@Tlaster Tlaster enabled auto-merge July 21, 2025 04:49
@Tlaster Tlaster disabled auto-merge July 21, 2025 04:56
@Tlaster Tlaster enabled auto-merge July 21, 2025 05:24
@Tlaster Tlaster disabled auto-merge July 21, 2025 05:24
@Tlaster Tlaster enabled auto-merge July 21, 2025 05:28
@Tlaster Tlaster merged commit 82ae0c9 into master Jul 21, 2025
5 checks passed
@Tlaster Tlaster deleted the feature/ui_enhance branch July 21, 2025 05:53
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