Skip to content
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

Onglet satisfaction #3463

Merged
merged 10 commits into from
Jun 5, 2024
Merged

Onglet satisfaction #3463

merged 10 commits into from
Jun 5, 2024

Conversation

clairezed
Copy link
Collaborator

@clairezed clairezed commented May 27, 2024

close #3451

Tests

  • company_satisfaction.rb

    • scope shared
    • scope unshared
    • share
      • it doesnt share when no comment
      • it doesnt share when already shared
      • it shares only to done_users
  • expert.rb

    • shared_satisfactions
    • shared_company_satisfactions
    • without_shared_satisfaction
  • need.rb

    • shared_satisfactions
  • shared_satisfaction.rb

    • scope seen
    • scope unseen
    • validates user_id, uniqueness: { scope: [:company_satisfaction_id, :expert_id] }
  • user.rb

    • shared_satisfactions
    • shared_company_satisfactions
  • shared_satisfactions_controller.rb

    • index
    • unseen
    • seen
    • mark_as_seen

Context :
- un besoin unseen user A
- 2 besoins seen user A
- 1 besoin unseen user B

  • feature shared satisfaction
    • it displays comment
    • it displays mark_as_seen button
    • when button clicked, it changes counters

@clairezed clairezed changed the title Creation onglet satisfaction WIP Onglet satisfaction May 28, 2024
@clairezed clairezed force-pushed the onglet-satisfaction branch from 44c6ec3 to ca9a61b Compare May 29, 2024 12:43
@clairezed clairezed requested a review from LucienMLD May 30, 2024 15:20
@clairezed clairezed changed the title WIP Onglet satisfaction Onglet satisfaction May 30, 2024
@clairezed clairezed force-pushed the onglet-satisfaction branch from 1beeaec to 41d50ff Compare May 30, 2024 15:29
@clairezed
Copy link
Collaborator Author

@LucienMLD tu pourras faire ta revue avec le cache activé ? J'ai pas pensé à le faire de mon côté

@clairezed clairezed force-pushed the onglet-satisfaction branch from 41d50ff to 07c72df Compare June 4, 2024 05:52
Copy link
Collaborator

@LucienMLD LucienMLD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il manque une traduction dans le message d'ActiveAdmin
Capture d’écran 2024-06-04 à 10 57 08

Tous les utilisateurs vont se retrouver avec un onglet "Retours" et une bonne partie n'aura sans doute jamais rien dans cet onglet. Alors qu'il est mentionné dans le message que les entreprises peuvent donner leur avis avec quand le besoins est cloturé avec aide. Ca va peut-être paraitre bizarre pour certains qu'ils n'ont jamais rien alors qu'ils clôturent bien avec aide.

On sait pas trop à quoi correspond la date en haut à gauche des cartes, surtout s'il y a de l'écart avec le besoins. Peut être indiqué "Partagé le .." ?
Capture d’écran 2024-06-04 à 11 21 21

app/admin/helpers/links.rb Outdated Show resolved Hide resolved
app/admin/helpers/links.rb Outdated Show resolved Hide resolved
app/views/conseiller/shared_satisfactions/_need.haml Outdated Show resolved Hide resolved
- content_for :menu, render('menu', collections_count: @satisfaction_collections_count)
- content_for :callout, render('callout')

- if @needs.to_a.size == 0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ça sert à quoi de mettre .size ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

il me semble que c'est + rapide / déjà chargé en mémoire, un truc du genre. On avait commencé à le rajouter avec Julien, non ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

je me suis trompé, c'etait pourquoi mettre to_a ?

app/views/shared/_user_impersonate.html.haml Outdated Show resolved Hide resolved
@clairezed
Copy link
Collaborator Author

Tu veux revoir la revue de la revue, @LucienMLD ?

@LucienMLD
Copy link
Collaborator

Deuxième revu avec le cache activé ok
Il reste des trucs pas coché dans la Todo c'est normal ?

@clairezed clairezed force-pushed the onglet-satisfaction branch from 86091ca to 74838a2 Compare June 5, 2024 12:37
@clairezed
Copy link
Collaborator Author

Les cases non cochées : j'avais listé tous les tests possibles, mais me suis concentrée sur ceux qui, à mon sens, apportaient vraiment de la valeur

@clairezed clairezed merged commit 9bcbd82 into main Jun 5, 2024
3 checks passed
@clairezed clairezed deleted the onglet-satisfaction branch June 5, 2024 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CHANTIER SATISFACTION pour les conseillers :
2 participants