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: ccsync url input is added #429

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SGI-CAPP-AT2
Copy link
Contributor

Description

Input is now provided so that user can input url to ccsync server

Fixes #392

An option should be there to input the API url directly, without recompiling the app.

Screenshots

RESULT

Checklist

  • Tests have been added or updated to cover the changes
  • Documentation has been updated to reflect the changes
  • Code follows the established coding style guidelines
  • All tests are passing

@@ -3,7 +3,7 @@ import 'package:shared_preferences/shared_preferences.dart';
class CredentialsStorage {
static const String _encryptionSecretKey = 'encryptionSecret';
static const String _clientIdKey = 'clientId';

static const String _apiUrlKey = 'championApiUrl';
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that championApiUrl must be replaced with ccsyncBackendUrl, as it would be much more intuitive. championApi somewhat points towards the sync server instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -13,6 +13,7 @@ class ManageTaskChampionCreds extends StatelessWidget {
final TextEditingController _encryptionSecretController =
TextEditingController();
final TextEditingController _clientIdController = TextEditingController();
final TextEditingController _championApiUrlController = TextEditingController();
Copy link
Contributor

Choose a reason for hiding this comment

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

change this to something like ccsyncBackendUrlController as well

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@its-me-abhishek its-me-abhishek left a comment

Choose a reason for hiding this comment

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

Please make these changes

@SGI-CAPP-AT2
Copy link
Contributor Author

SGI-CAPP-AT2 commented Jan 8, 2025

@its-me-abhishek do we have to change this placeholder/label? image

@its-me-abhishek
Copy link
Contributor

Yes, the naming should be done in reference to CCSync everywhere imo

Input is now provided so that user can input url to ccsync server
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.

feat: Add an option to enter API URL manually for CCSync
2 participants