Skip to content

Refactor: Migrate About screen UI from XML to Jetpack Compose#6803

Closed
Roniscend wants to merge 1 commit into
commons-app:mainfrom
Roniscend:AboutActivity
Closed

Refactor: Migrate About screen UI from XML to Jetpack Compose#6803
Roniscend wants to merge 1 commit into
commons-app:mainfrom
Roniscend:AboutActivity

Conversation

@Roniscend
Copy link
Copy Markdown
Contributor

Description (required)

Addresses #6629 Replaced XML-based About screen with Jetpack Compose implementation for improved UI consistency and maintainability.
The reason i chose About Screen first since it is entirely a simple vertical list of TextView and ImageView elements (Credits, License, Links)

Tests performed (required)

Tested 6.4.0-debug on Pixel 9(Android 16)

Screenshots (for UI changes only)
Before
Light mode
a
Dark Mode
b

After
Light Mode
a
Dark Mode
b

Copilot AI review requested due to automatic review settings March 25, 2026 16:59
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

Migrates the app’s About screen from an XML/ViewBinding implementation to a Jetpack Compose UI, as part of the broader Compose migration effort (#6629).

Changes:

  • Replaces AboutActivity’s XML/ViewBinding layout with a Compose setContent { ... } entry point.
  • Introduces a new Compose AboutScreen with top app bar, HTML-rendered sections, external links, and a translation language picker dialog.
  • Adds a basic Compose Material3 theme (CommonsAppTheme) and custom color definitions.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 9 comments.

File Description
app/src/main/java/fr/free/nrw/commons/theme/Theme.kt Adds a Compose Material3 theme wrapper used by the new About screen.
app/src/main/java/fr/free/nrw/commons/theme/Color.kt Introduces hard-coded colors for the Compose theme.
app/src/main/java/fr/free/nrw/commons/AboutScreen.kt New Compose UI for the About screen, including HTML blocks and Translate dialog.
app/src/main/java/fr/free/nrw/commons/AboutActivity.kt Refactors AboutActivity to host the Compose AboutScreen and moves actions to callbacks.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/src/main/java/fr/free/nrw/commons/AboutScreen.kt
Comment thread app/src/main/java/fr/free/nrw/commons/AboutScreen.kt
Comment thread app/src/main/java/fr/free/nrw/commons/AboutActivity.kt
Comment thread app/src/main/java/fr/free/nrw/commons/AboutActivity.kt
Comment thread app/src/main/java/fr/free/nrw/commons/theme/Theme.kt
Comment thread app/src/main/java/fr/free/nrw/commons/AboutScreen.kt
Comment thread app/src/main/java/fr/free/nrw/commons/AboutScreen.kt
Comment thread app/src/main/java/fr/free/nrw/commons/AboutScreen.kt
Comment thread app/src/main/java/fr/free/nrw/commons/theme/Color.kt
Signed-off-by: Owm Dubey <owmdubey163@gmail.com>
@github-actions
Copy link
Copy Markdown

✅ Generated APK variants!

@Roniscend
Copy link
Copy Markdown
Contributor Author

@nicolas-raoul , @neeldoshii can you please review this pr and suggest changes if any

@neeldoshii
Copy link
Copy Markdown
Collaborator

Sure.

@neeldoshii neeldoshii self-requested a review March 25, 2026 17:38
@neeldoshii
Copy link
Copy Markdown
Collaborator

Seems like this PR is a duplicate of #6791. Could you please mention which file you are planning to pick from the referenced issue before starting work in the future? It would help avoid any duplication of effort. :-)

@Roniscend
Copy link
Copy Markdown
Contributor Author

Seems like this PR is a duplicate of #6791. Could you please mention which file you are planning to pick from the referenced issue before starting work in the future? It would help avoid any duplication of effort. :-)

Apologies, I did not notice that another PR had already been opened that is my mistake. Whichever you feel is better, you can merge it. Thanks a lot!

@RitikaPahwa4444

This comment was marked as duplicate.

@RitikaPahwa4444
Copy link
Copy Markdown
Collaborator

Closing as this is a duplicate. But @Roniscend we would love to see your review and insights on the other PR :)

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.

4 participants