-
Notifications
You must be signed in to change notification settings - Fork 186
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] Refactor the layout of modules #3494
Conversation
… and view are redered. - Moved view to each tab in tab for each module - Now each module tab defines its buttons to display in the header - Adapted custom tab components adding the `withAgentSupportModule` - Created and refactor the logic of `Loader` component to a HOC `withModuleTabLoader` - Removed `Settings` and `Loader` components duw to are not used - Removed not used imports
- Refactor `Explore agent` button - Added `availabeFor` propery to `modules-defaults.json` used by `Explore agent` button. - Created `PromptModuleNotForAgent` component - Created `withModuleNotForAgent` HOC - Removed no used code and use component props intead use `store` in `public/components/common/modules/main.tsx`
…into feat/3485-enhance-module-tab-buttons
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.
CR & Test: LGTM
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.
CR: LGTM ✔️
Testing: LGTM ✔️
|
||
export const PromptModuleNotForAgent = ({ body, title, ...agentSelectionProps }: PromptSelectAgentProps) => { | ||
const dispatch = useDispatch(); | ||
const filterManager = useFilterManager(); |
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.
This has changed in the office365 branch. Noting it so we are mindful when merging there.
Changes applied:
|
…nd `with_module_tab_loader.tsx`
….com/wazuh/wazuh-kibana-app into feat/3485-enhance-module-tab-buttons
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.
CR: LGTM ✔️
…into feat/3485-enhance-module-tab-buttons
Changes
|
|
Changes
modules-defaults.js
to define what buttons and components are rendered in each module tab.Explore agent
button fromModules/MITRE ATT&CK/Intelligence
.PromptModuleNotForAgent
component.withModuleNotForAgent
HOC.Tests
Explore agent
is working as usual.Generate report
is working as usual.Modules/MITRE ATT&CK/Intelligence
is not displaying theExplore agent
button.Closes #3485