Add new fields to scene tagger (#3094)

* Add new fields to scene tagger
* Update scraper docs with new fields
* Set code and director in identify
* Add new fields to identify dialog
This commit is contained in:
WithoutPants
2022-11-10 12:51:49 +11:00
committed by GitHub
parent a2ca266cb3
commit eb795ff9ab
5 changed files with 66 additions and 3 deletions

View File

@@ -3,7 +3,12 @@ import { Form, Button, Table } from "react-bootstrap";
import { Icon } from "src/components/Shared";
import * as GQL from "src/core/generated-graphql";
import { FormattedMessage, useIntl } from "react-intl";
import { multiValueSceneFields, SceneField, sceneFields } from "./constants";
import {
multiValueSceneFields,
SceneField,
sceneFieldMessageID,
sceneFields,
} from "./constants";
import { ThreeStateBoolean } from "./ThreeStateBoolean";
import {
faCheck,
@@ -13,7 +18,7 @@ import {
interface IFieldOptionsEditor {
options: GQL.IdentifyFieldOptions | undefined;
field: string;
field: SceneField;
editField: () => void;
editOptions: (o?: GQL.IdentifyFieldOptions | null) => void;
editing: boolean;
@@ -64,7 +69,7 @@ const FieldOptionsEditor: React.FC<IFieldOptionsEditor> = ({
}, [resetOptions]);
function renderField() {
return intl.formatMessage({ id: field });
return intl.formatMessage({ id: sceneFieldMessageID(field) });
}
function renderStrategy() {