diff --git a/CHANGELOG.md b/CHANGELOG.md index 26a02ff4..4f89fea2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +- [#299](https://github.com/os2display/display-admin-client/pull/299) + - Added api_version configuration field to BRND feed source settings, allowing administrators to specify which BRND API version to use. + ## [2.6.1] - 2026-03-06 - [#295](https://github.com/os2display/display-admin-client/pull/295) diff --git a/src/components/feed-sources/feed-source-manager.jsx b/src/components/feed-sources/feed-source-manager.jsx index aac3663a..e3bac791 100644 --- a/src/components/feed-sources/feed-source-manager.jsx +++ b/src/components/feed-sources/feed-source-manager.jsx @@ -88,6 +88,7 @@ function FeedSourceManager({ api_base_uri: "", company_id: "", api_auth_key: "", + api_version: "1.0", }, }, { diff --git a/src/components/feed-sources/templates/brnd-feed-type.jsx b/src/components/feed-sources/templates/brnd-feed-type.jsx index 8143dfd6..d20aec26 100644 --- a/src/components/feed-sources/templates/brnd-feed-type.jsx +++ b/src/components/feed-sources/templates/brnd-feed-type.jsx @@ -2,11 +2,16 @@ import React from "react"; import PropTypes from "prop-types"; import { useTranslation } from "react-i18next"; import FormInput from "../../util/forms/form-input"; +import Select from "../../util/forms/select"; const BrndFeedType = ({ handleInput, formStateObject, mode }) => { const { t } = useTranslation("common", { keyPrefix: "brnd-feed-type", }); + const apiVersionOptions = [ + { key: "api-version-1-0", title: "1.0", value: "1.0" }, + { key: "api-version-2-0", title: "2.0", value: "2.0" }, + ]; return ( <> @@ -44,6 +49,16 @@ const BrndFeedType = ({ handleInput, formStateObject, mode }) => { } value={formStateObject?.api_auth_key} /> + +