add tooltips to the recording options in preferences page

This commit is contained in:
Nuwan 2025-02-03 12:35:26 +05:30
parent 5ff152233b
commit 71458e3983
2 changed files with 8 additions and 3 deletions

View File

@ -6,6 +6,7 @@ import { useAuth } from '../../context/UserAuth';
import { updateUser } from '../../helpers/rest';
import { toast } from 'react-toastify';
import { useForm } from 'react-hook-form';
import JKTooltip from '../common/JKTooltip';
const JKAccountPreferences = () => {
const { t } = useTranslation('account');
@ -79,7 +80,8 @@ const JKAccountPreferences = () => {
value="1"
data-testid="recording_pref_my_audio"
onClick={() => setSelectedPref(1)} />
<Label for="exampleSelect">{t('preferences.recording_preferences.options.my_audio')}</Label>
<Label for="exampleSelect" className='mr-1'>{t('preferences.recording_preferences.options.my_audio')}</Label>
<JKTooltip title={t('preferences.recording_preferences.options.my_audio_tooltip')} />
</FormGroup>
<FormGroup>
<Input
@ -89,7 +91,8 @@ const JKAccountPreferences = () => {
value="2"
data-testid="recording_pref_my_audio_and_session_mix"
onClick={() => setSelectedPref(2)} />
<Label for="exampleSelect">{t('preferences.recording_preferences.options.my_audio_and_session_mix')}</Label>
<Label for="exampleSelect" className='mr-1'>{t('preferences.recording_preferences.options.my_audio_and_session_mix')}</Label>
<JKTooltip title={t('preferences.recording_preferences.options.my_audio_and_session_mix_tooltip')} />
</FormGroup>
</Form>
</CardBody>

View File

@ -60,7 +60,9 @@
"options": {
"none": "Don't record anything on my computer",
"my_audio": "Record my own audio tracks",
"my_audio_and_session_mix": "Record my own audio tracks and the session mix"
"my_audio_tooltip": "This will save each of your own tracks in high-quality format captured straight from your audio interface. This is a good option to use if youre in a band and each band member has this preference selected, as each musician can share the high-quality recordings of their tracks with someone who then uses a DAW to mix/master a high-quality recording of the groups performance.",
"my_audio_and_session_mix": "Record my own audio tracks and the session mix",
"my_audio_and_session_mix_tooltip": "As with the option above, this will save each of your own tracks in high-quality format captured straight from your audio interface, plus youll instantly have access to a session mix made from your high-quality tracks mixed with the streamed tracks of the other musicians, with the levels controlled by your personal mix settings."
},
"save_success": "Recording preference saved successfully.",
"save_error": "Failed to save recording preference. Please try again later."