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

feat(conversation): #WB-3428, folders menu navigation #566

Merged
merged 10 commits into from
Jan 13, 2025

Conversation

jcbe-ode
Copy link
Contributor

@jcbe-ode jcbe-ode commented Jan 9, 2025

Description

Navigation through a menu of system (inbox, outbox, draft and trash) and user's folders.
Displays unread messages in badges, excepting the draft folder which displays its total number of drafts.
Renders differently in desktop or mobile responsive modes.

Fixes

WB-3428

Type of change

Please check options that are relevant.

  • Chore (PATCH)
  • Doc (PATCH)
  • Bug fix (PATCH)
  • New feature (MINOR)

Which packages changed?

Please check the name of the package you changed

  • admin
  • app-registry
  • archive
  • auth
  • cas
  • common
  • communication
  • conversation
  • directory
  • feeder
  • infra
  • portal
  • session
  • test
  • tests
  • timeline
  • workspace

Tests

Added a service and a dedicated test.

Reminder

  • Security flaws

  • Performance impacts (think bulk !)

  • Unit tests were replayed

  • Unit tests were added and/or changed

  • I have updated the reminder for the version including my modifications

  • All done ! 😃

@jcbe-ode jcbe-ode changed the title Feat/wb 3428 feat(conversation): #WB-3428, folders menu navigation Jan 9, 2025
@jcbe-ode jcbe-ode requested review from ccreusat and Romu-C January 9, 2025 14:23
@jcbe-ode
Copy link
Contributor Author

jcbe-ode commented Jan 9, 2025

Draft PR ouverte, mais j'attaque le rendu du menu mobile ;-)

@jcbe-ode jcbe-ode marked this pull request as ready for review January 10, 2025 14:17
isChild?: boolean;
}) {
return (
<span className="user-folder w-100 d-flex justify-content-between align-content-center align-items-center">
Copy link
Contributor

Choose a reason for hiding this comment

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

Petit détail, mais pourquoi un span et pas un div ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A priori, ça doit être un résidu des devs itératifs effectués en local, avant que l'élément passe en d-flex


function renderFolderItem(item: FolderItem) {
return (
<span className="w-100 d-flex justify-content-between align-content-center align-items-center">
Copy link
Contributor

Choose a reason for hiding this comment

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

idem pour le span

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Même réponse... On doit pouvoir changer en div si ça chagrine certains puristes.

import { actionsQueryOptions, folderQueryOptions } from '~/services/queries';
import './index.css';
Copy link
Contributor

Choose a reason for hiding this comment

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

pourquoi importer le css?

Copy link
Contributor Author

@jcbe-ode jcbe-ode Jan 13, 2025

Choose a reason for hiding this comment

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

Clément m'a dit de faire comme ça, pour appliquer du CSS très spécifique à un composant non-réutilisable ailleurs.
(et idéalement de nommer le fichier css avec le même nom que le composant auquel il s'applique)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

si j'ai bien compris, le bundler le transforme le CSS en JS, exécuté lorsque le composant est utilisé.

@jcbe-ode jcbe-ode merged commit b63beb5 into develop-b2school Jan 13, 2025
@jcbe-ode jcbe-ode deleted the feat/WB-3428 branch January 13, 2025 17:12
jcbe-ode added a commit that referenced this pull request Mar 4, 2025
* feat(conversation): #WB-3428, left menu navigation

* wip

* wip

* Desktop Menu with counters

* Wip: Mobile Menu with counters

* wip

* feat: Mobile Menu with counters and navigation

* wip

* feat(conversation): actions on folders

* fix: feedback from PR
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.

2 participants