8000 fix: Reset layout after click on Navigation item by dbadura · Pull Request #3726 · kyma-project/busola · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: Reset layout after click on Navigation item #3726

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

Merged
merged 25 commits into from
Mar 17, 2025

Conversation

dbadura
Copy link
Contributor
@dbadura dbadura commented Feb 21, 2025

Description

Changes proposed in this pull request:

  • Reset layout state after user clicks on navigation item
  • cleanup not used and executed code
  • fix cluster event view
  • fix custom resources routes
  • fix resouces routes

Related issue(s)
#3534

Definition of done

  • The PR's title starts with one of the following prefixes:
    • feat: A new feature
    • fix: A bug fix
    • docs: Documentation only changes
    • refactor: A code change that neither fixes a bug nor adds a feature
    • test: Adding tests
    • revert: Revert commit
    • chore: Maintainance changes to the build process or auxiliary tools, libraries, workflows, etc.
  • Related issues are linked. To link internal trackers, use the issue IDs like backlog#4567
  • Explain clearly why you created the PR and what changes it introduces
  • All necessary steps are delivered, for example, tests, documentation, merging

@kyma-bot kyma-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cla: yes Indicates the PR's author has signed the CLA. labels Feb 21, 2025
@dbadura dbadura changed the title Fix: Don't override layout settings from URL fix: Don't override layout settings from URL Feb 21, 2025
@kyma-bot kyma-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Feb 21, 2025
@dbadura dbadura marked this pull request as ready for review February 25, 2025 16:27
@kyma-bot kyma-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 25, 2025
@dbadura dbadura changed the title fix: Don't override layout settings from URL fix: Reset layout after click on Navigation item Feb 25, 2025
@dbadura dbadura added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 25, 2025
@dbadura dbadura linked an issue Feb 25, 2025 that may be closed by this pull request
@grego952 grego952 removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 26, 2025
Comment on lines 119 to 125
{resources ? (
<ResourceListRenderer
resources={(resources || []).filter(filterFn)}
{...allProps}
/>
) : (
<Resources {...allProps} />
)}
Copy link
Contributor

Choose a reason for hiding this comment

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

This couldn't be removed when you create an extension with some filter function, so it won't work. Now you are just taking this prop, pass, and don't make anything with it.

@@ -65,6 +65,7 @@ export function NavItem({ node, subItem = false }: NavItemProps) {

const handleNavigation = (isNavigatingForward?: boolean) => {
if (node.dataSources) {
const [jsonataLink, jsonataError] = jsonata(node.externalUrl || '');
Copy link
Contributor

Choose a reason for hiding this comment

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

This change is not working, I'm getting an errors on the examples
image

mrCherry97
mrCherry97 previously approved these changes Feb 26, 2025
@kyma-bot kyma-bot added the lgtm Looks good to me! label Feb 26, 2025
@kyma-bot kyma-bot removed the lgtm Looks good to me! label Mar 4, 2025
@kyma-bot
Copy link
Contributor
kyma-bot commented Mar 4, 2025

New changes are detected. LGTM label has been removed.

@kyma-bot kyma-bot removed the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 4, 2025
@kyma-bot kyma-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 4, 2025
@dbadura dbadura enabled auto-merge (squash) March 6, 2025 09:15
import { useParams } from 'react-router-dom';
import EventDetails from 'resources/Events/EventDetails';

export const ClusterEventDetails = props => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you not use props, and add proper properties that we need? resourceName etc

import { useParams } from 'react-router-dom';
import { EventsList } from 'shared/components/EventsList';

export const ClusterEventList = props => {
Copy link
Contributor

Choose a reason for hiding this comment

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

same here

6D40 @dbadura dbadura merged commit f24cd02 into kyma-project:main Mar 17, 2025
31 of 34 checks passed
@dbadura dbadura deleted the fix-3-column branch March 17, 2025 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates the PR's author has signed the CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom Resources with open details redirect incorrectly after refresh
5 participants
0