Rename project to "Freqtrade - Crypto P Edition" in GUI and UX

Updated user-facing strings in fallback UI, Telegram, API, and console output to reflect the new project name. Also updated configuration and tests.

Co-authored-by: Corax-CoLAB <239841157+Corax-CoLAB@users.noreply.github.com>
pull/12809/head
google-labs-jules[bot] 3 months ago
parent bb8e45427c
commit b07c07ca5a

@ -12,7 +12,7 @@ req_timeout = 30
def clean_ui_subdir(directory: Path):
if directory.is_dir():
logger.info("Removing UI directory content.")
logger.info("Removing Freqtrade - Crypto P Edition UI directory content.")
for p in reversed(list(directory.glob("**/*"))): # iterate contents from leaves to root
if p.name in (".gitkeep", "fallback_file.html"):
@ -60,7 +60,9 @@ def download_and_install_ui(dest_folder: Path, dl_url: str, version: str):
TimeRemainingColumn(),
transient=True,
) as progress:
task = progress.add_task("Downloading FreqUI...", total=total_length)
task = progress.add_task(
"Downloading Freqtrade - Crypto P Edition UI...", total=total_length
)
for chunk in resp.iter_content(chunk_size=8192):
if chunk:
@ -84,7 +86,9 @@ def download_and_install_ui(dest_folder: Path, dl_url: str, version: str):
console = get_rich_console()
console.print()
console.print(f"[bold green]✅ FreqUI {version} installed successfully![/bold green]")
console.print(
f"[bold green]✅ Freqtrade - Crypto P Edition UI {version} installed successfully![/bold green]"
)
console.print(f"Installed to: [bold]{dest_folder}[/bold]")
console.print("\n[bold]Next steps:[/bold]")
console.print("1. Restart your bot to load the new UI.")

@ -47,14 +47,14 @@ def main(sysargv: list[str] | None = None) -> None:
print_version_info()
return_code = 0
elif "func" in args:
logger.info(f"freqtrade {__version__}")
logger.info(f"Freqtrade - Crypto P Edition {__version__}")
gc_set_threshold()
set_mp_start_method()
return_code = args["func"](args)
else:
# No subcommand was issued.
raise OperationalException(
"Usage of Freqtrade requires a subcommand to be specified.\n"
"Usage of Freqtrade - Crypto P Edition requires a subcommand to be specified.\n"
"To have the bot executing trades in live/dry-run modes, "
"depending on the value of the `dry_run` setting in the config, run Freqtrade "
"as `freqtrade trade [options...]`.\n"

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Freqtrade - UI Not Installed</title>
<title>Freqtrade - Crypto P Edition - UI Not Installed</title>
<style>
:root {
--bg-color: #121212;
@ -199,7 +199,7 @@
</button>
<div class="main-container">
<h1>Freqtrade UI Not Installed</h1>
<h1>Freqtrade - Crypto P Edition UI Not Installed</h1>
<p class="subtitle">The web interface files are missing from your installation.</p>
<p>To install the UI, please run the following command in your terminal and restart your bot:</p>

@ -132,7 +132,7 @@ class ApiServer(RPCHandler):
api_config = self._config["api_server"]
self.app = FastAPI(
title="Freqtrade API",
title="Freqtrade - Crypto P Edition API",
docs_url="/docs" if api_config.get("enable_openapi", False) else None,
redoc_url=None,
default_response_class=FTJSONResponse,

@ -2259,7 +2259,7 @@ class Telegram(RPCHandler):
update.effective_user.id if topic_id is not None and update.effective_user else None
)
msg = f"""Freqtrade Bot Info:
msg = f"""Freqtrade - Crypto P Edition Bot Info:
```json
{{
"enabled": true,

@ -12,4 +12,4 @@ def print_version_info():
print(f"Python Version:\t\tPython {sys.version.split(' ')[0]}")
print(f"CCXT Version:\t\t{ccxt.__version__}")
print()
print(f"Freqtrade Version:\tfreqtrade {__version__}")
print(f"Freqtrade - Crypto P Edition Version:\tfreqtrade {__version__}")

@ -1,6 +1,6 @@
site_name: Freqtrade
site_name: Freqtrade - Crypto P Edition
site_url: !ENV [READTHEDOCS_CANONICAL_URL, 'https://www.freqtrade.io/en/']
site_description: Freqtrade is a free and open source crypto trading bot written in Python, designed to support all major exchanges and be controlled via Telegram or builtin Web UI
site_description: Freqtrade - Crypto P Edition is a free and open source crypto trading bot written in Python, designed to support all major exchanges and be controlled via Telegram or builtin Web UI
repo_url: https://github.com/freqtrade/freqtrade
edit_uri: edit/develop/docs/
use_directory_urls: True

@ -3064,5 +3064,5 @@ async def test__tg_info(default_conf_usdt, mocker, update):
assert context.bot.send_message.call_count == 1
content = context.bot.send_message.call_args[1]["text"]
assert "Freqtrade Bot Info:\n" in content
assert "Freqtrade - Crypto P Edition Bot Info:\n" in content
assert '"chat_id": "1235"' in content

@ -24,7 +24,7 @@ from tests.conftest import (
def test_parse_args_None(caplog) -> None:
with pytest.raises(SystemExit):
main([])
assert log_has_re(r"Usage of Freqtrade requires a subcommand.*", caplog)
assert log_has_re(r"Usage of Freqtrade - Crypto P Edition requires a subcommand.*", caplog)
def test_parse_args_version(capsys) -> None:
@ -32,7 +32,9 @@ def test_parse_args_version(capsys) -> None:
main(["-V"])
captured = capsys.readouterr()
assert re.search(r"CCXT Version:\s.*", captured.out, re.MULTILINE)
assert re.search(r"Freqtrade Version:\s+freqtrade\s.*", captured.out, re.MULTILINE)
assert re.search(
r"Freqtrade - Crypto P Edition Version:\s+freqtrade\s.*", captured.out, re.MULTILINE
)
def test_parse_args_backtesting(mocker) -> None:

Loading…
Cancel
Save