Feature/adc/#192 barre de recherche (#201)
* context and react query add to searchView * handle empty result + back * #192 - New card components and history fetch + dummy suggestions fetch * respoonsive design + filters map * artist details view + translations + SongData mapping fix + items limitation * history search back and front + cards + fix * fixed useless history entries * clean code * clean code * fix pr: SearchHistory new type related fixes * simplified SearchResultComponent (useEffect removed, condition simplified to trigger different 'modes' * search re-do onPress history cards + scoreView obj map * clean code API.ts * fix pr + search history behavior * added utility function to get song suggestions with artists and fixed error types along the way * fix in songrow the title didn't shrinked when not enough space on screen * removed redirect callback from ArtistCard to ArtistResults * moved the callback from genre card grid to searchresult and implemented history for songs * SearchBar is now updating input search following stringQuery * added scroll view to have the complete background * Added the route props for query in Searchview * fixed robot test --------- Co-authored-by: Clément Le Bihan <clement.lebihan773@gmail.com>
This commit is contained in:
@@ -34,6 +34,12 @@ export const en = {
|
||||
levelProgress: 'good notes',
|
||||
score: 'Score',
|
||||
|
||||
//search
|
||||
allFilter: 'All',
|
||||
artistFilter: 'Artists',
|
||||
songsFilter: 'Songs',
|
||||
genreFilter: 'Genres',
|
||||
|
||||
// profile page
|
||||
user: 'Profile',
|
||||
medals: 'Medals',
|
||||
@@ -97,6 +103,7 @@ export const en = {
|
||||
unknownError: 'Unknown error',
|
||||
errAlrdExst: 'Already exist',
|
||||
errIncrrct: 'Incorrect Credentials',
|
||||
errNoResults: 'No Results Found',
|
||||
userProfileFetchError: 'An error occured while fetching your profile',
|
||||
tryAgain: 'Try Again',
|
||||
|
||||
@@ -202,6 +209,12 @@ export const fr: typeof en = {
|
||||
longestCombo: 'Combo le plus long : ',
|
||||
favoriteGenre: 'Genre favori : ',
|
||||
|
||||
//search
|
||||
allFilter: 'Tout',
|
||||
artistFilter: 'Artistes',
|
||||
songsFilter: 'Morceaux',
|
||||
genreFilter: 'Genres',
|
||||
|
||||
// Difficulty settings
|
||||
diffBtn: 'Difficulté',
|
||||
easy: 'Débutant',
|
||||
@@ -273,6 +286,7 @@ export const fr: typeof en = {
|
||||
errAlrdExst: "Utilisateur existe déjà",
|
||||
unknownError: 'Erreur inconnue',
|
||||
errIncrrct: 'Identifiant incorrect',
|
||||
errNoResults: 'Aucun resultat',
|
||||
userProfileFetchError: 'Une erreur est survenue lors de la récupération du profil',
|
||||
tryAgain: 'Réessayer',
|
||||
|
||||
@@ -383,6 +397,12 @@ export const sp: typeof en = {
|
||||
longestCombo: 'combo más largo : ',
|
||||
favoriteGenre: 'genero favorito : ',
|
||||
|
||||
//search
|
||||
allFilter: 'Todos',
|
||||
artistFilter: 'Artistas',
|
||||
songsFilter: 'canciones',
|
||||
genreFilter: 'géneros',
|
||||
|
||||
// Difficulty settings
|
||||
diffBtn: 'Dificultad',
|
||||
easy: 'Principiante',
|
||||
@@ -435,6 +455,8 @@ export const sp: typeof en = {
|
||||
unknownError: 'Error desconocido',
|
||||
errAlrdExst: "Ya existe",
|
||||
errIncrrct: "credenciales incorrectas",
|
||||
errNoResults: 'No se han encontrado resultados',
|
||||
|
||||
userProfileFetchError: 'Ocurrió un error al obtener su perfil',
|
||||
tryAgain: 'intentar otra vez',
|
||||
|
||||
|
||||
Reference in New Issue
Block a user