Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions src/components/feed-sources/feed-source-manager.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ function FeedSourceManager({
api_base_uri: "",
company_id: "",
api_auth_key: "",
api_version: "1.0",
},
},
{
Expand Down
16 changes: 16 additions & 0 deletions src/components/feed-sources/templates/brnd-feed-type.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<>
Expand Down Expand Up @@ -44,6 +49,16 @@ const BrndFeedType = ({ handleInput, formStateObject, mode }) => {
}
value={formStateObject?.api_auth_key}
/>

<Select
name="api_version"
formGroupClasses="mb-2"
label={t("api-version")}
options={apiVersionOptions}
allowNull={false}
onChange={handleInput}
value={formStateObject?.api_version || "1.0"}
/>
</>
);
};
Expand All @@ -54,6 +69,7 @@ BrndFeedType.propTypes = {
api_base_uri: PropTypes.string,
company_id: PropTypes.string,
api_auth_key: PropTypes.string,
api_version: PropTypes.string,
}),
mode: PropTypes.string,
};
Expand Down
Loading