diff --git a/frontend/src/api/api.js b/frontend/src/api/api.js index 9234beb..b8d1830 100644 --- a/frontend/src/api/api.js +++ b/frontend/src/api/api.js @@ -173,11 +173,6 @@ export const pushFiles = async () => { const response = await axios.post(`/api/git/push`); return response.data; } catch (error) { - console.log( - 'Push error full structure:', - JSON.stringify(error.response?.data, null, 2) - ); - if (error.response?.data?.error) { return error.response.data; } diff --git a/frontend/src/api/arr.js b/frontend/src/api/arr.js index 796a4f4..f6fe5fe 100644 --- a/frontend/src/api/arr.js +++ b/frontend/src/api/arr.js @@ -76,8 +76,6 @@ export const updateArrConfig = async (id, config) => { export const getArrConfigs = async () => { try { const response = await axios.get(`/api/arr/config`); - console.log('Raw axios response:', response); - console.log('Response data:', response.data); return response.data; } catch (error) { console.error('Error fetching arr configs:', error); diff --git a/frontend/src/components/profile/scoring/FormatSettings.jsx b/frontend/src/components/profile/scoring/FormatSettings.jsx index 1739715..8e632f1 100644 --- a/frontend/src/components/profile/scoring/FormatSettings.jsx +++ b/frontend/src/components/profile/scoring/FormatSettings.jsx @@ -1,4 +1,4 @@ -import React, {useState} from 'react'; +import React, {useState, useEffect} from 'react'; import PropTypes from 'prop-types'; import SearchBar from '@ui/DataBar/SearchBar'; import useSearch from '@hooks/useSearch'; @@ -7,9 +7,21 @@ import BasicView from './BasicView'; import {ChevronDown, Settings, List} from 'lucide-react'; const FormatSettings = ({formats, onScoreChange}) => { - const [isAdvancedView, setIsAdvancedView] = useState(false); + // Initialize state from localStorage, falling back to true if no value is stored + const [isAdvancedView, setIsAdvancedView] = useState(() => { + const stored = localStorage.getItem('formatSettingsView'); + return stored === null ? true : JSON.parse(stored); + }); const [isDropdownOpen, setIsDropdownOpen] = useState(false); + // Save to localStorage whenever isAdvancedView changes + useEffect(() => { + localStorage.setItem( + 'formatSettingsView', + JSON.stringify(isAdvancedView) + ); + }, [isAdvancedView]); + const { searchTerms, currentInput, diff --git a/frontend/src/components/profile/scoring/ProfileScoringTab.jsx b/frontend/src/components/profile/scoring/ProfileScoringTab.jsx index e32d462..1b34fb3 100644 --- a/frontend/src/components/profile/scoring/ProfileScoringTab.jsx +++ b/frontend/src/components/profile/scoring/ProfileScoringTab.jsx @@ -25,8 +25,8 @@ const ProfileScoringTab = ({ Upgrade Settings

- Assign scores to different formats to control - download preferences + Configure when upgrades should be downloaded and + what scores are required

@@ -70,8 +70,9 @@ const ProfileScoringTab = ({ Format Settings

- Configure when upgrades should be downloaded and what - scores are required + Assign scores to different formats to control download + preferences. View formats in the traditional arr style, + or in filtered A/V grids.

diff --git a/frontend/src/components/settings/git/status/PushRow.jsx b/frontend/src/components/settings/git/status/PushRow.jsx index d342dde..3f3365e 100644 --- a/frontend/src/components/settings/git/status/PushRow.jsx +++ b/frontend/src/components/settings/git/status/PushRow.jsx @@ -2,8 +2,6 @@ import React from 'react'; import {GitCommit, Code, FileText, Settings, File} from 'lucide-react'; const PushRow = ({change}) => { - console.log('Push Row Change:', change); - const getTypeIcon = type => { switch (type) { case 'Regex Pattern':