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

feat: Improve custom API URL dialog #2033

Merged
merged 9 commits into from
Jul 18, 2024

Conversation

validcube
Copy link
Member

@validcube validcube commented Jul 4, 2024

image

@ https://canary.discord.com/channels/952946952348270622/952987428786941952/1258456626457739415

Note

This PR include three changes

  • Annotate @Preview for the API URL Dialog
  • Update style for API URL Dialog
  • Update description for API URL Settings

Fix

@validcube validcube requested a review from oSumAtrIX July 4, 2024 16:23
@validcube validcube added the ReVanced Manager Compose Regarding the Compose rewrite of ReVanced Manager label Jul 4, 2024
@validcube validcube changed the title feat: Improve API URL Dialog in Settings feat: Improve the API URL dialog in Settings Jul 4, 2024
@Axelen123 Axelen123 linked an issue Jul 5, 2024 that may be closed by this pull request
4 tasks
@validcube
Copy link
Member Author

validcube commented Jul 5, 2024

@Axelen123 Is #1973 related? The issue appears to suggest replacing the pref value to actual description in the Settings page for API URL listview's description.

I could tackle that here since it's (soon-to-be:tm:) related to this PR.

@Ushie
Copy link
Member

Ushie commented Jul 5, 2024

Sure, you can do it in this PR

@Axelen123
Copy link
Member

@Axelen123 Is #1973 related? The issue appears to suggest replacing the pref value to actual description in the Settings page for API URL listview's description.

Oh, it looks like you are right. You can unlink the issue or take it on in this PR

@validcube validcube marked this pull request as draft July 5, 2024 14:02
@validcube
Copy link
Member Author

Snapshot of a822c25

image

@validcube
Copy link
Member Author

validcube commented Jul 7, 2024

Snapshot of 9fd8971

image

Snapshot of 2e04b3c

image

@validcube validcube requested a review from oSumAtrIX July 7, 2024 09:09
@validcube validcube marked this pull request as ready for review July 7, 2024 09:10
@validcube validcube changed the title feat: Improve the API URL dialog in Settings feat: Improve the API URL in Settings Jul 7, 2024
app/src/main/res/values/strings.xml Outdated Show resolved Hide resolved
@validcube validcube requested a review from Ushie July 11, 2024 01:35
@Preview
@Composable
private fun APIUrlDialogPreview() {
APIUrlDialog("https://example.com") {}
Copy link
Member

Choose a reason for hiding this comment

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

Should this not be the default API by default?

Copy link
Member Author

Choose a reason for hiding this comment

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

Any value is fine here since this is only shown to developer using Android Studio or any IDE that support rendering a composable.

Copy link
Member

Choose a reason for hiding this comment

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

I guess using default api makes more sense then

Copy link
Member

Choose a reason for hiding this comment

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

This section is only to preview the design of the composable, it can be removed from this PR with no consequence

Copy link
Member

Choose a reason for hiding this comment

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

I am not talking specifically about the section but the text shown in the section. So then either removing or using the default api here works

Copy link
Member

@oSumAtrIX oSumAtrIX left a comment

Choose a reason for hiding this comment

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

Looking good apart from the one review

Script Execution UTC Time: null

Signed-off-by: validcube <[email protected]>
@Ushie Ushie changed the title feat: Improve the API URL in Settings feat: Improve custom API URL dialog Jul 18, 2024
@Ushie Ushie merged commit 45f3204 into ReVanced:compose-dev Jul 18, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ReVanced Manager Compose Regarding the Compose rewrite of ReVanced Manager
Projects
None yet
4 participants