Skip to content

Read the directory notification types from commons-ui - #956

Open
flomillot wants to merge 3 commits into
mainfrom
florent/share-directory-notification-types
Open

Read the directory notification types from commons-ui#956
flomillot wants to merge 3 commits into
mainfrom
florent/share-directory-notification-types

Conversation

@flomillot

@flomillot flomillot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

PR Summary

Requires gridsuite/commons-ui#1261, which holds the shared declaration.

The enum was duplicated in gridstudy and gridexplore, and the shared modification permissions hook needed it in
commons-ui. The case export type moved along with it, as it travels on the same directory channel.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 2a94dc1e-e98b-41e5-a860-b0bdd78d28e1


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

The case export notification is not a directory notification, so it stays in this app, next to the only code
reading it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
@flomillot
flomillot marked this pull request as ready for review August 17, 2026 09:17
UPDATE_DIRECTORY = 'UPDATE_DIRECTORY',
CASE_EXPORT_FINISHED = 'caseExportFinished',
}
const CASE_EXPORT_FINISHED = 'caseExportFinished';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Preferably, we should keep a single enum for all notification types intended for gridexplore-app, just like in gridstudy-app, otherwise, it will become complicated to manage and understand

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The thing is this one is not really related to the other directory enumeration. So I extracted the shared notification in the lib and I've let this one there.

@flomillot
flomillot requested a review from ghazwarhili August 20, 2026 14:35
@ghazwarhili

Copy link
Copy Markdown
Contributor

The DirectoriesNotificationType changes are unrelated to the permission work !
I think it would be better to handle this in a separate PR

*/
import type { UUID } from 'node:crypto';

export enum NotificationType {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

to be reverted

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't agree for me it's related to this work

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