Fix lint-only issues from CI checks.

Resolve naming-convention and React hook dependency warnings in SceneFileInfoPanel, and apply gofmt whitespace normalization in sqlite scene model.

Made-with: Cursor
This commit is contained in:
KennyG 2026-04-26 11:16:56 -04:00
parent 0730983171
commit d985bd7e02
2 changed files with 7 additions and 7 deletions

View file

@ -93,7 +93,7 @@ type sceneRow struct {
UpdatedAt Timestamp `db:"updated_at"`
ResumeTime float64 `db:"resume_time"`
PlayDuration float64 `db:"play_duration"`
// not used in resolutions or updates
CoverBlob zero.String `db:"cover_blob"`
}

View file

@ -66,7 +66,7 @@ interface IFileInfoPanelProps {
loading?: boolean;
}
interface CoverSourceData {
interface ICoverSourceData {
icon?: FontAwesomeIconProps["icon"];
value: string;
url?: string | null;
@ -91,16 +91,16 @@ const FileInfoPanel: React.FC<IFileInfoPanelProps> = (
const phash = props.file.fingerprints.find((f) => f.type === "phash");
const checksum = props.file.fingerprints.find((f) => f.type === "md5");
const getCoverSourceTooltip = (id: string) =>
intl.formatMessage({ id }, { image: coverImageLabel });
const coverSourceField = useMemo(() => {
const getCoverSourceTooltip = (id: string) =>
intl.formatMessage({ id }, { image: coverImageLabel });
const source = props.coverImageSource;
if (!source) {
return null;
}
let coverSourceData: CoverSourceData;
let coverSourceData: ICoverSourceData;
if (source === "default") {
coverSourceData = {
@ -430,7 +430,7 @@ const _SceneFileInfoPanel: React.FC<ISceneFileInfoPanelProps> = (
))}
</Accordion>
);
}, [props.scene, loading, Toast, deletingFile, reassigningFile]);
}, [props.scene, loading, Toast, deletingFile, reassigningFile, coverImageSource]);
return (
<>