Skip to content

refactor: Modules view#3639

Merged
dbadura merged 23 commits intokyma-project:mainfrom
mrCherry97:modules-refactor-2
Jan 31, 2025
Merged

refactor: Modules view#3639
dbadura merged 23 commits intokyma-project:mainfrom
mrCherry97:modules-refactor-2

Conversation

@mrCherry97
Copy link
Contributor

@mrCherry97 mrCherry97 commented Jan 28, 2025

Description

Changes proposed in this pull request:

  • extract small functions
  • rename Craate to Edit to reflect actual functionality
  • improve ts types

Related issue(s)

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
    • 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. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 28, 2025
@kyma-bot kyma-bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 28, 2025
@kyma-bot kyma-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 28, 2025
@kyma-bot kyma-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jan 28, 2025
const skipModuleFn = () => {
const shouldShowManagedWarning = isManagedChanged;
const shouldShowChannelWarning = isEdited;
const shouldShowChannelWarning = showChannelChangeWarning;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I

Suggested change
const shouldShowChannelWarning = showChannelChangeWarning;


useEffect(() => {
async function fetchModule() {
if (path.includes('undefined')) return;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

resource?.resource === undefined

@dbadura dbadura marked this pull request as ready for review January 30, 2025 12:25
@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 Jan 30, 2025
@dbadura dbadura changed the title Modules refactor 2 refactor: Modules view Jan 30, 2025
@akucharska akucharska self-assigned this Jan 31, 2025
@kyma-bot kyma-bot added the lgtm Looks good to me! label Jan 31, 2025
@dbadura dbadura merged commit afd2d19 into kyma-project:main Jan 31, 2025
84 of 117 checks passed
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. lgtm Looks good to me! 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.

5 participants