From c1a71b1192b5408c582bf70e899ecf221707db8f Mon Sep 17 00:00:00 2001 From: hz Date: Sat, 25 Jul 2026 00:30:06 -0500 Subject: [PATCH 1/3] Feature-gate Flashcards to UAT only Same treatment as Dynamic Questions and CCS Cases: hide the nav sidebar entry and the dashboard's "flashcards due" review card unless step3/deployment_environment is "uat". --- scripts/ui/dashboard_screen.gd | 9 +++++---- scripts/ui/main.gd | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/ui/dashboard_screen.gd b/scripts/ui/dashboard_screen.gd index 20d688f..56a8568 100644 --- a/scripts/ui/dashboard_screen.gd +++ b/scripts/ui/dashboard_screen.gd @@ -249,10 +249,11 @@ func _render_review(data: Dictionary) -> void: review_list.add_child(_review_action( "%d dynamic concepts due" % dynamic_due if dynamic_due > 0 else "Dynamic concepts up to date", "activity", Brand.PURPLE if dynamic_due > 0 else Brand.ROYAL_BLUE, "dynamic_questions")) - var flashcards_due := int(data.get("flashcardsDue", 0)) - review_list.add_child(_review_action( - "%d flashcards due" % flashcards_due if flashcards_due > 0 else "Flashcards up to date", - "clipboard-plus", Brand.TEAL if flashcards_due > 0 else Brand.ROYAL_BLUE, "flashcards")) + if Brand.is_uat_environment(): + var flashcards_due := int(data.get("flashcardsDue", 0)) + review_list.add_child(_review_action( + "%d flashcards due" % flashcards_due if flashcards_due > 0 else "Flashcards up to date", + "clipboard-plus", Brand.TEAL if flashcards_due > 0 else Brand.ROYAL_BLUE, "flashcards")) review_list.add_child(_review_action("%d bookmarks" % int(data.get("bookmarkCount", 0)), "bookmark", Brand.ROYAL_BLUE, "bookmarks")) review_list.add_child(_review_action("%d notes" % int(data.get("noteCount", 0)), "notebook-pen", Brand.AMBER, "notes")) diff --git a/scripts/ui/main.gd b/scripts/ui/main.gd index 511a711..b5c6669 100644 --- a/scripts/ui/main.gd +++ b/scripts/ui/main.gd @@ -419,7 +419,7 @@ func _populate_navigation(container: VBoxContainer, include_brand: bool) -> void _add_nav_button(container, "dynamic_questions", "Dynamic Questions", "activity", true, Brand.is_uat_environment()) _add_nav_button(container, "ccs", "CCS Cases", "stethoscope", true, Brand.is_uat_environment()) _add_nav_button(container, "exams", "Exam Simulations", "clipboard-list", true) - _add_nav_button(container, "flashcards", "Flashcards", "clipboard-plus", true) + _add_nav_button(container, "flashcards", "Flashcards", "clipboard-plus", true, Brand.is_uat_environment()) _add_nav_button(container, "bookmarks", "Bookmarks", "bookmark", true) _add_nav_button(container, "notes", "Notes", "notebook-pen", true) From b7b290c63bff124cea4c727114dcddc13b1e0036 Mon Sep 17 00:00:00 2001 From: hz Date: Sat, 25 Jul 2026 00:30:14 -0500 Subject: [PATCH 2/3] Fix deployment_environment default so the debugger reads UAT project.godot's API URLs already pointed at UAT (us3q.ranaze.com), but deployment_environment itself was still "development" - a leftover label that never matched the actual origin. Since the UAT-only feature gates (Dynamic Questions, CCS Cases, Flashcards) check for the literal "uat" value, running from the Godot editor/debugger hid all three even though it's UAT in every other respect. Set it to "uat" to match reality, and update the two places that sed-patch this value at build time (web/Dockerfile for the UAT/PRD web builds, tools/export_steam_release.sh for the Steam build) so they still match the source string they're replacing. --- project.godot | 2 +- tools/export_steam_release.sh | 2 +- web/Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project.godot b/project.godot index 531dbe0..9f655cb 100644 --- a/project.godot +++ b/project.godot @@ -64,7 +64,7 @@ textures/vram_compression/import_etc2_astc=true [step3] -deployment_environment="development" +deployment_environment="uat" questions_api_url="https://us3q.ranaze.com/api/questions/search" question_reports_api_url="https://us3q.ranaze.com/api/question-reports" app_feedback_api_url="https://us3q.ranaze.com/api/app-feedback" diff --git a/tools/export_steam_release.sh b/tools/export_steam_release.sh index edbe8eb..e49ee4c 100644 --- a/tools/export_steam_release.sh +++ b/tools/export_steam_release.sh @@ -24,7 +24,7 @@ cp "${PROJECT_FILE}" "${BACKUP_FILE}" BUILD_REVISION="$(git -C "${REPO_ROOT}" rev-parse HEAD)" sed -i \ - -e "s|deployment_environment=\"development\"|deployment_environment=\"prd\"|" \ + -e "s|deployment_environment=\"uat\"|deployment_environment=\"prd\"|" \ -e "s|build_revision=\"development\"|build_revision=\"${BUILD_REVISION}\"|" \ -e "s|https://us3q.ranaze.com|https://s3q.ranaze.com|g" \ "${PROJECT_FILE}" diff --git a/web/Dockerfile b/web/Dockerfile index 244e31e..b285bbd 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -32,7 +32,7 @@ WORKDIR /src COPY . . RUN mkdir -p /build \ && sed -i "s|build_revision=\"development\"|build_revision=\"${BUILD_REVISION}\"|" project.godot \ - && sed -i "s|deployment_environment=\"development\"|deployment_environment=\"${DEPLOYMENT_ENVIRONMENT}\"|" project.godot \ + && sed -i "s|deployment_environment=\"uat\"|deployment_environment=\"${DEPLOYMENT_ENVIRONMENT}\"|" project.godot \ && sed -i "s|https://us3q.ranaze.com|${PUBLIC_API_ORIGIN}|g" project.godot \ && sed -i "s|custom_template/release=\"\"|custom_template/release=\"/root/.local/share/godot/export_templates/${GODOT_TEMPLATE_DIR}/web_nothreads_release.zip\"|" export_presets.cfg \ && godot --headless --editor --path /src --quit \ From 65ae99e2ceaed75ce94057eaa531f44faadfd88f Mon Sep 17 00:00:00 2001 From: hz Date: Sat, 25 Jul 2026 00:31:57 -0500 Subject: [PATCH 3/3] Update exe boot splash to the current shield logo boot_splash/image was still on ranaze-loader-icon-v1.png, the mark from before the app rebranded to the shield "RZ" logo (c91e70d). Point it at assets/branding/ranaze-mark.png, the same mark already used for the in-app header brand throughout the current UI. --- project.godot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project.godot b/project.godot index 9f655cb..122d1a6 100644 --- a/project.godot +++ b/project.godot @@ -18,7 +18,7 @@ config/icon="res://assets/branding/ranaze-app-icon.png" config/use_custom_user_dir=true config/custom_user_dir_name="MedMind" boot_splash/bg_color=Color(0.019607844, 0.02745098, 0.05882353, 1) -boot_splash/image="res://web/ranaze-loader-icon-v1.png" +boot_splash/image="res://assets/branding/ranaze-mark.png" boot_splash/fullsize=false boot_splash/use_filter=true