From 61327401b09c703504e52aab5c99c8cd6714fc6a Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sun, 19 Nov 2023 18:30:29 -0500 Subject: [PATCH] Rename version to app_version --- CHANGELOG.md | 2 ++ .../src/components/Screens/AppInfoScreen/AppInfoScreen.bs | 3 +-- playlet-lib/src/components/VideoFeed/VideoRowList.bs | 2 ++ playlet-lib/src/source/services/ApplicationInfo.bs | 2 +- playlet-web/src/lib/Screens/InfoScreen.svelte | 4 ++-- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 422a313d..3458f485 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + ## [0.17.0] - 2023-11-17 ### Added diff --git a/playlet-lib/src/components/Screens/AppInfoScreen/AppInfoScreen.bs b/playlet-lib/src/components/Screens/AppInfoScreen/AppInfoScreen.bs index 9347c3bc..6744d318 100644 --- a/playlet-lib/src/components/Screens/AppInfoScreen/AppInfoScreen.bs +++ b/playlet-lib/src/components/Screens/AppInfoScreen/AppInfoScreen.bs @@ -1,10 +1,9 @@ import "pkg:/source/asyncTask/asyncTask.bs" function Init() - ' TODO:P2 rename "Playlet Version" to "Playlet App Version" ' TODO:P2 rename Add tooltip to each field with description of what it means m.displayNames = { - "version": "Playlet Version", + "app_version": "Playlet App Version", "lib_version": "Playlet Library Version", "lib_version_latest": "Playlet Library Latest Version", "lib_url": "Playlet Library URL", diff --git a/playlet-lib/src/components/VideoFeed/VideoRowList.bs b/playlet-lib/src/components/VideoFeed/VideoRowList.bs index 81c5a801..b18d0136 100644 --- a/playlet-lib/src/components/VideoFeed/VideoRowList.bs +++ b/playlet-lib/src/components/VideoFeed/VideoRowList.bs @@ -13,6 +13,8 @@ import "pkg:/source/utils/Types.bs" ' TODO:P1 add the option to remove a row if it does not have any content ' E.g. NBC News does not return any related chnanels +' The "Continue Watching" feed source might return nothing. In this case, +' it should be removed. function Init() m.pendingLoadTasks = {} end function diff --git a/playlet-lib/src/source/services/ApplicationInfo.bs b/playlet-lib/src/source/services/ApplicationInfo.bs index 9bd0f29a..deec6827 100644 --- a/playlet-lib/src/source/services/ApplicationInfo.bs +++ b/playlet-lib/src/source/services/ApplicationInfo.bs @@ -33,7 +33,7 @@ class ApplicationInfo if m.appInfo = invalid m.appInfo = { id: m.roAppInfo.GetID(), - version: m.roAppInfo.GetVersion(), + app_version: m.roAppInfo.GetVersion(), git_commit_hash: m.roAppInfo.GetValue("git_commit_sha"), lib_version: m.GetLibVersion(), lib_git_commit_hash: m.GetLibGitCommitHash() diff --git a/playlet-web/src/lib/Screens/InfoScreen.svelte b/playlet-web/src/lib/Screens/InfoScreen.svelte index 5aca6402..9e709583 100644 --- a/playlet-web/src/lib/Screens/InfoScreen.svelte +++ b/playlet-web/src/lib/Screens/InfoScreen.svelte @@ -4,7 +4,7 @@ export let visibility: boolean; const displayNames = { - version: "Playlet Version", + app_version: "Playlet App Version", lib_version: "Playlet Library Version", lib_version_latest: "Playlet Library Latest Version", lib_url: "Playlet Library URL", @@ -16,7 +16,7 @@ function transformValue(key, value) { switch (key) { - case "version": + case "app_version": case "lib_version": case "lib_version_latest": return `${value}`;