-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Ajouter la nouvelle barre de navigation dans Pix Admin (PIX-16550) #11404
base: dev
Are you sure you want to change the base?
Conversation
Une fois les applications déployées, elles seront accessibles via les liens suivants :
Les variables d'environnement seront accessibles via les liens suivants : |
a7018be
to
808f67c
Compare
}); | ||
|
||
module('Target Profiles tab', function () { | ||
module('when admin member have "SUPER_ADMIN", "SUPPORT" or "METIER" as role', function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: ici les 3 rôles sont questionnés en un seul test, et pour les parcours autonomes c'est splité. Une raison ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c'est corrigé, j'ai splité tous les tests par cohérence !
@service accessControl; | ||
|
||
get userFullName() { | ||
const adminMember = this.currentUser?.adminMember; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: si on est pas connecté, on est pas censé voir ce composant non ?
const adminMember = this.currentUser?.adminMember; | |
const adminMember = this.currentUser.adminMember; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
En effet ! J'ai laissé car il faut sinon mettre à jour tous les tests d'acceptance pour mettre des firstname / lastname à chaque adminMember 😓
const screen = await render(<template><Sidebar /></template>); | ||
|
||
// then | ||
assert.dom(screen.getByRole('link', { name: 'Se déconnecter' })).exists(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: stub le service session.invalidate
et tester le click ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'ai enlevé l'action logout car le bouton ne fait qu'une redirection vers la page /logout
f6d2bf3
to
9a6537d
Compare
Hello sur les différents retours :
![]()
![]()
![]() |
with sidebar entry
with pix admin logo
fixup! feat(api): use feature toggle for new sidebar in authenticated hbs
7510ff7
to
8127766
Compare
and correct padding for items
8127766
to
c1e0787
Compare
Je fais un message groupé par rapport à tous vos retours (merci pour les feedbacks 🙏 ). J'en ai traité une partie :
@Faraopix C'est corrigé !
@Faraopix Non ça n'a pas de rapport, c'est le composant PixSelect qui n'a pas calculé la bonne taille par rapport aux options. Je ne l'ai pas traité 😛
@AndreiaPena Fait !
@AndreiaPena C'est corrigé 😄 |
🥞 Problème
La nouvelle barre de navigation n'était pas encore utilisée sur Pix Admin
🥓 Proposition
L'ajouter avec un feature toggle (FT_PIX_ADMIN_NEW_SIDEBAR_ENABLED) le temps que ça soit validé fonctionnellement.
🧃 Remarques
😋 Pour tester
En local
FT_PIX_ADMIN_NEW_SIDEBAR_ENABLED=true
En RA