Skip to content

Conversation

@rameshmane7218
Copy link
Member

Change Summary

Change type

  • feat: (new feature for the user, not a new feature for build script)
  • fix: (bug fix for the user, not a fix to a build script)
  • docs: (changes to the documentation)
  • style: (formatting, missing semi colons, etc; no production code change)
  • refactor: (refactoring production code, eg. renaming a variable)
  • test: (adding missing tests, refactoring tests; no production code change)
  • chore: (updating grunt tasks etc; no production code change)

Test/ Verification

Provide summary of changes.

Additional information / screenshots (optional)

Anything for maintainers to be made aware of

@rameshmane7218 rameshmane7218 self-assigned this Jul 4, 2024
@rameshmane7218 rameshmane7218 requested a review from dstala July 4, 2024 08:34
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 4, 2024

Walkthrough

Walkthrough

The project enhancements include dynamic adjustments for the left sidebar in View.vue based on viewport and sidebar size changes, achieving a responsive layout. New functions and properties were added to the global state and actions to support these updates. Several test scripts were updated to include scrolling functionality in assertions.

Changes

File(s) Change Summary
.../View.vue Enhanced to dynamically update the sidebar size with new computed properties for better responsiveness.
.../useGlobal/actions.ts Introduced setLeftSidebarSize function to adjust sidebar size in the global state.
.../useGlobal/state.ts Added leftSidebarSize property to manage the sidebar's width in the state object.
.../types.ts Updated StoredState and Actions interfaces to include leftSidebarSize property and method.
.../constants.ts Added INITIAL_LEFT_SIDEBAR_WIDTH constant with a set value for the sidebar width.
.../sidebar.ts Modified useSidebarStore to use the new global state properties and enhanced sidebar size calculations based on viewport.
.../Grid/Column/index.ts, .../commonTest.ts Adjusted test scripts to include the scroll parameter for verifying elements, enhancing UI testing accuracy.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between e0a3d67 and 3af925b.

Files selected for processing (5)
  • packages/nc-gui/components/dashboard/View.vue (7 hunks)
  • packages/nc-gui/composables/useGlobal/actions.ts (2 hunks)
  • packages/nc-gui/composables/useGlobal/state.ts (1 hunks)
  • packages/nc-gui/composables/useGlobal/types.ts (2 hunks)
  • packages/nc-gui/store/sidebar.ts (4 hunks)
Files skipped from review due to trivial changes (1)
  • packages/nc-gui/composables/useGlobal/state.ts
Additional comments not posted (15)
packages/nc-gui/store/sidebar.ts (4)

29-29: Ensure leftSidebarWidthPercent is updated appropriately.

The leftSidebarWidthPercent calculation relies on leftSideBarSize.value.current and width.value. Ensure these values are correctly updated whenever the sidebar size changes.

Verification successful

We need to verify that leftSidebarWidthPercent is updated appropriately when leftSideBarSize.value.current or width.value changes. The search results show updates to leftSidebarWidthPercent.value in the packages/nc-gui/components/dashboard/View.vue file. Let's examine this file to ensure the updates are correctly tied to changes in leftSideBarSize.value.current and width.value.


Verified: leftSidebarWidthPercent is updated appropriately.

The updates to leftSidebarWidthPercent in packages/nc-gui/components/dashboard/View.vue are correctly tied to changes in currentSidebarSize.value and viewportWidth.value.

  • watch(currentSidebarSize, () => { leftSidebarWidthPercent.value = (currentSidebarSize.value / viewportWidth.value) * 100 })
  • onWindowResize(e?: any): void { viewportWidth.value = window.innerWidth; leftSidebarWidthPercent.value = (currentSidebarSize.value / viewportWidth.value) * 100 }

These updates ensure that leftSidebarWidthPercent is recalculated whenever the sidebar size or viewport width changes.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify updates to leftSidebarWidthPercent.

# Test: Search for updates to leftSidebarWidthPercent. Expect: Correct updates in the codebase.
rg --type js --type ts $'leftSidebarWidthPercent.value ='

Length of output: 328


Script:

#!/bin/bash
# Locate the exact lines of code where leftSidebarWidthPercent is updated in View.vue
rg --line-number --context 5 'leftSidebarWidthPercent.value =' packages/nc-gui/components/dashboard/View.vue

Length of output: 884


53-58: Ensure nonHiddenLeftSidebarWidth is correctly computed.

The computed property nonHiddenLeftSidebarWidth returns width.value in mobile mode and nonHiddenMobileSidebarSize.value otherwise. Ensure this calculation is correct and aligns with the expected behavior.


40-40: Ensure mobileNormalizedSidebarSize calculation is correct.

The computed property mobileNormalizedSidebarSize returns leftSidebarWidthPercent.value when not in mobile mode. Ensure this calculation is correct and aligns with the expected behavior.

Verification successful

The calculation of mobileNormalizedSidebarSize is correct and aligns with the expected behavior. The computed property correctly adjusts the sidebar width based on the mobile mode status and the sidebar's open state.

  • Implementation in sidebar.ts aligns with the expected logic.
  • Usage in View.vue correctly applies the computed value to the sidebar component.
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the calculation of mobileNormalizedSidebarSize.

# Test: Search for the usage of mobileNormalizedSidebarSize. Expect: Correct usage and calculation.
rg --type js --type ts $'mobileNormalizedSidebarSize'

Length of output: 571


Script:

#!/bin/bash
# Extract the implementation of mobileNormalizedSidebarSize in sidebar.ts
echo "Implementation in sidebar.ts:"
ast-grep --lang typescript --pattern $'const mobileNormalizedSidebarSize = computed(() => $_)' packages/nc-gui/store/sidebar.ts

# Extract the usage of mobileNormalizedSidebarSize in View.vue
echo "Usage in View.vue:"
rg --type vue 'mobileNormalizedSidebarSize' packages/nc-gui/components/dashboard/View.vue -A 5 -B 5

Length of output: 809


Script:

#!/bin/bash
# Extract the implementation of mobileNormalizedSidebarSize in sidebar.ts
echo "Implementation in sidebar.ts:"
ast-grep --lang typescript --pattern $'const mobileNormalizedSidebarSize = computed(() => $_)' packages/nc-gui/store/sidebar.ts

# Extract the usage of mobileNormalizedSidebarSize in View.vue
echo "Usage in View.vue:"
rg 'mobileNormalizedSidebarSize' packages/nc-gui/components/dashboard/View.vue -A 5 -B 5

Length of output: 1600


9-9: Ensure useGlobal is properly imported.

The useGlobal function is used to destructure isMobileMode, leftSidebarSize, and setLeftSidebarSize. Ensure that useGlobal is correctly imported and defined.

packages/nc-gui/composables/useGlobal/types.ts (2)

56-56: Ensure leftSidebarSize has a default value.

The leftSidebarSize property is added to StoredState. Ensure it has a default value to avoid undefined behavior.

Verification successful

Verified: leftSidebarSize has a default value set.

The property leftSidebarSize is initialized with a default value of 288 in packages/nc-gui/composables/useGlobal/state.ts, ensuring it is not undefined.

  • packages/nc-gui/composables/useGlobal/state.ts: leftSidebarSize: 288,
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the default value of leftSidebarSize.

# Test: Search for the initialization of leftSidebarSize. Expect: Correct default value.
rg --type js --type ts $'leftSidebarSize:'

Length of output: 314


93-93: Ensure setLeftSidebarSize is correctly implemented.

The setLeftSidebarSize method is added to Actions. Ensure it is correctly implemented and used in the codebase.

Verification successful

setLeftSidebarSize is correctly implemented and used.

The method setLeftSidebarSize is defined in actions.ts to update the leftSidebarSize state. It is used in:

  • sidebar.ts within the useSidebarStore function.
  • View.vue to update the sidebar size based on the current sidebar size.

The implementation and usage of setLeftSidebarSize are consistent and correctly integrated.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the implementation of setLeftSidebarSize.

# Test: Search for the implementation of setLeftSidebarSize. Expect: Correct implementation and usage.
rg --type js --type ts $'setLeftSidebarSize'

Length of output: 615


Script:

#!/bin/bash
# Extract the definition of setLeftSidebarSize from actions.ts
echo "Definition in actions.ts:"
rg --type ts --after-context=5 --before-context=5 'const setLeftSidebarSize' packages/nc-gui/composables/useGlobal/actions.ts

# Extract the usage of setLeftSidebarSize in sidebar.ts
echo -e "\nUsage in sidebar.ts:"
rg --type ts --after-context=5 --before-context=5 'setLeftSidebarSize' packages/nc-gui/store/sidebar.ts

# Extract the usage of setLeftSidebarSize in View.vue
echo -e "\nUsage in View.vue:"
rg --type vue --after-context=5 --before-context=5 'setLeftSidebarSize' packages/nc-gui/components/dashboard/View.vue

Length of output: 1200


Script:

#!/bin/bash
# Define .vue file type and search for the usage of setLeftSidebarSize in View.vue
echo -e "\nUsage in View.vue:"
rg --type-add 'vue:*.vue' --type vue --after-context=5 --before-context=5 'setLeftSidebarSize' packages/nc-gui/components/dashboard/View.vue

Length of output: 797

packages/nc-gui/composables/useGlobal/actions.ts (1)

163-165: Ensure setLeftSidebarSize correctly updates the state.

The setLeftSidebarSize function updates state.leftSidebarSize.value. Ensure this update is correctly reflected in the state and used appropriately in the codebase.

Verification successful

Verified: The setLeftSidebarSize function correctly updates the state.

The leftSidebarSize state is accessed and used in various parts of the codebase, confirming that the state update is reflected correctly and used appropriately.

  • packages/nc-gui/store/sidebar.ts
  • packages/nc-gui/composables/useGlobal/state.ts
  • packages/nc-gui/composables/useGlobal/types.ts
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the state update by setLeftSidebarSize.

# Test: Search for the state update by setLeftSidebarSize. Expect: Correct state update and usage.
rg --type js --type ts $'state.leftSidebarSize.value ='

Length of output: 144


Script:

#!/bin/bash
# Description: Verify the usage of the updated state by setLeftSidebarSize.

# Test: Search for the usage of state.leftSidebarSize. Expect: Correct usage in the codebase.
rg --type js --type ts 'state.leftSidebarSize'

Length of output: 134


Script:

#!/bin/bash
# Description: Verify the usage of leftSidebarSize in the codebase.

# Test: Search for the usage of leftSidebarSize. Expect: Correct usage in the codebase.
rg --type js --type ts 'leftSidebarSize'

Length of output: 569

packages/nc-gui/components/dashboard/View.vue (8)

Line range hint 159-178:
Ensure onResize correctly updates sideBarSize.

The onResize function updates sideBarSize based on the width and viewport size. Ensure these updates are correctly reflected in the state and used appropriately in the codebase.


102-109: Ensure onWindowResize updates viewportWidth and leftSidebarWidthPercent.

The onWindowResize function updates viewportWidth and leftSidebarWidthPercent. Ensure these updates are correctly reflected in the state and used appropriately in the codebase.

Verification successful

Verification Successful: The updates to viewportWidth and leftSidebarWidthPercent in the onWindowResize function are correctly reflected in the state and used appropriately in the codebase.

  • viewportWidth is defined as a reactive reference and updated in onWindowResize.
  • leftSidebarWidthPercent is also defined as a reactive reference and updated in onWindowResize.

Both are used appropriately in computed properties and functions.

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the updates to viewportWidth and leftSidebarWidthPercent in onWindowResize.

# Test: Search for the updates to viewportWidth and leftSidebarWidthPercent. Expect: Correct updates and usage.
rg --type js --type ts $'onWindowResize'

Length of output: 407


Script:

#!/bin/bash
# Description: Verify the definitions and usages of viewportWidth and leftSidebarWidthPercent in View.vue.

# Search for viewportWidth in View.vue
rg 'viewportWidth' packages/nc-gui/components/dashboard/View.vue

# Search for leftSidebarWidthPercent in View.vue
rg 'leftSidebarWidthPercent' packages/nc-gui/components/dashboard/View.vue

Length of output: 963


48-48: Ensure sidebarWidth is correctly computed.

The computed property sidebarWidth returns viewportWidth.value in mobile mode and sideBarSize.value.old otherwise. Ensure this calculation is correct and aligns with the expected behavior.

Verification successful

sidebarWidth is correctly computed.

The computed property sidebarWidth appropriately uses viewportWidth in mobile mode and sideBarSize.value.old otherwise. The logic for updating and using isMobileMode, viewportWidth, and sideBarSize aligns with the expected behavior.

  • isMobileMode correctly reflects the mobile mode state.
  • viewportWidth is updated appropriately on window resize.
  • sideBarSize updates its current and old properties based on the sidebar state and other conditions.
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the calculation of sidebarWidth.

# Test: Search for the usage of sidebarWidth. Expect: Correct usage and calculation.
rg --type js --type ts $'sidebarWidth'

Length of output: 1290


Script:

#!/bin/bash
# Description: Locate the definitions of isMobileMode, viewportWidth, and sideBarSize in View.vue to verify their correctness.

# Search for the definitions of isMobileMode, viewportWidth, and sideBarSize in View.vue
rg 'isMobileMode|viewportWidth|sideBarSize' packages/nc-gui/components/dashboard/View.vue

Length of output: 1623


Script:

#!/bin/bash
# Description: Extract relevant code sections from View.vue to verify the correctness of isMobileMode, viewportWidth, and sideBarSize.

# Extract code sections where isMobileMode, viewportWidth, and sideBarSize are defined and used
rg -A 5 -B 5 'isMobileMode|viewportWidth|sideBarSize' packages/nc-gui/components/dashboard/View.vue

Length of output: 4580


50-60: Ensure normalizedWidth is correctly computed.

The computed property normalizedWidth returns a value between minSize and maxSize based on sidebarWidth.value. Ensure this calculation is correct and aligns with the expected behavior.

Verification successful

normalizedWidth is correctly computed.

The computed property normalizedWidth is correctly defined and used. The calculations and constraints align with the expected behavior, ensuring sidebarWidth.value is within the specified range.

  • viewportWidth and sidebarWidth are correctly defined as reactive references and computed properties.
  • The remToPx function correctly converts rem units to pixels.
  • The usage of normalizedWidth in conditional checks and style properties is appropriate.
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the calculation of normalizedWidth.

# Test: Search for the usage of normalizedWidth. Expect: Correct usage and calculation.
rg --type js --type ts $'normalizedWidth'

Length of output: 359


Script:

#!/bin/bash
# Search for the definitions of viewportWidth and sidebarWidth
rg 'const viewportWidth' --type js --type ts
rg 'const sidebarWidth' --type js --type ts

# Search for the definition of remToPx
rg 'function remToPx' --type js --type ts
rg 'const remToPx' --type js --type ts

# Retrieve the surrounding code of the instances where normalizedWidth is used
rg --context 5 'normalizedWidth' --type js --type ts

Length of output: 3360


44-46: Ensure currentSidebarSize watch updates leftSidebarWidthPercent and setLeftSidebarSize.

The watch on currentSidebarSize updates leftSidebarWidthPercent and calls setLeftSidebarSize. Ensure these updates are correctly reflected in the state and used appropriately in the codebase.

Verification successful

Verified: The updates to leftSidebarWidthPercent and the call to setLeftSidebarSize within the watch function on currentSidebarSize are correctly implemented.

  • packages/nc-gui/components/dashboard/View.vue:
    • The watch function correctly updates leftSidebarWidthPercent and calls setLeftSidebarSize.
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the updates to leftSidebarWidthPercent and setLeftSidebarSize in the currentSidebarSize watch.

# Test: Search for the updates to leftSidebarWidthPercent and setLeftSidebarSize. Expect: Correct updates and usage.
rg --type js --type ts $'watch(currentSidebarSize'

Length of output: 132


Script:

#!/bin/bash
# Description: Verify the updates to leftSidebarWidthPercent and setLeftSidebarSize in the currentSidebarSize watch.

# Test: Search for the updates to leftSidebarWidthPercent and setLeftSidebarSize within the watch function. Expect: Correct updates and usage.
rg --type vue --type js --type ts 'watch(\(currentSidebarSize' --context 10

Length of output: 160


Script:

#!/bin/bash
# Description: Verify the updates to leftSidebarWidthPercent and setLeftSidebarSize in the currentSidebarSize watch.

# Test: Search for the updates to leftSidebarWidthPercent and setLeftSidebarSize within the watch function. Expect: Correct updates and usage.
rg --type vue --type js --type ts 'watch\(\s*currentSidebarSize' --context 10

Length of output: 107


Script:

#!/bin/bash
# Description: Verify the updates to leftSidebarWidthPercent and setLeftSidebarSize in the currentSidebarSize watch.

# Locate all Vue files and search within them for the watch function on currentSidebarSize.
fd --type f --extension vue | xargs rg 'watch\(\s*currentSidebarSize' --context 10

Length of output: 1713


8-8: Ensure useGlobal is properly imported.

The useGlobal function is used to destructure setLeftSidebarSize. Ensure that useGlobal is correctly imported and defined.


198-199: Ensure mobileNormalizedSidebarSize is correctly applied.

The inline styles use mobileNormalizedSidebarSize for width and min-width. Ensure these styles are correctly applied and align with the expected behavior.


222-222: Ensure mobileNormalizedContentSize is correctly applied.

The inline styles use mobileNormalizedContentSize for min-width. Ensure these styles are correctly applied and align with the expected behavior.

Verification successful

mobileNormalizedContentSize is correctly applied.

The variable mobileNormalizedContentSize is computed based on isMobileMode and isLeftSidebarOpen, ensuring it adapts to mobile and sidebar states. Its usage in the size attribute and inline styles aligns with the expected behavior.

  • Definition: const mobileNormalizedContentSize = computed(() => { ... })
  • Usage: :size="mobileNormalizedContentSize" and 'min-width': ${mobileNormalizedContentSize}%`
Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the application of mobileNormalizedContentSize in inline styles.

# Test: Search for the usage of mobileNormalizedContentSize in inline styles. Expect: Correct usage and application.
rg --type vue $'mobileNormalizedContentSize'

Length of output: 71


Script:

#!/bin/bash
# Description: Verify the application of mobileNormalizedContentSize in inline styles.

# Test: Search for the usage of mobileNormalizedContentSize in the entire repository.
rg 'mobileNormalizedContentSize'

Length of output: 321


Script:

#!/bin/bash
# Description: Extract the definition and usage context of mobileNormalizedContentSize in View.vue for detailed analysis.

# Extract the lines around the definition of mobileNormalizedContentSize
rg --context 10 'const mobileNormalizedContentSize = computed(() => {' packages/nc-gui/components/dashboard/View.vue

# Extract the lines around the usage of mobileNormalizedContentSize in the size attribute
rg --context 5 ':size="mobileNormalizedContentSize"' packages/nc-gui/components/dashboard/View.vue

# Extract the lines around the usage of mobileNormalizedContentSize in inline styles
rg --context 5 '\'min-width\': `${mobileNormalizedContentSize}%`' packages/nc-gui/components/dashboard/View.vue

Length of output: 710


Script:

#!/bin/bash
# Description: Extract the definition and usage context of mobileNormalizedContentSize in View.vue for detailed analysis.

# Extract the lines around the definition of mobileNormalizedContentSize
rg --context 10 'const mobileNormalizedContentSize = computed\(\(\) => \{' packages/nc-gui/components/dashboard/View.vue

# Extract the lines around the usage of mobileNormalizedContentSize in the size attribute
rg --context 5 ':size="mobileNormalizedContentSize"' packages/nc-gui/components/dashboard/View.vue

# Extract the lines around the usage of mobileNormalizedContentSize in inline styles
rg --context 5 '\'min-width\': `${mobileNormalizedContentSize}%`' packages/nc-gui/components/dashboard/View.vue

Length of output: 1136


Script:

#!/bin/bash
# Description: Extract the definition and usage context of mobileNormalizedContentSize in View.vue for detailed analysis.

# Extract the lines around the definition of mobileNormalizedContentSize
rg --context 10 'const mobileNormalizedContentSize = computed\(\(\) => \{' packages/nc-gui/components/dashboard/View.vue

# Extract the lines around the usage of mobileNormalizedContentSize in the size attribute
rg --context 5 ':size="mobileNormalizedContentSize"' packages/nc-gui/components/dashboard/View.vue

# Extract the lines around the usage of mobileNormalizedContentSize in inline styles
rg --context 5 '\'min-width\': `${mobileNormalizedContentSize}%`' packages/nc-gui/components/dashboard/View.vue

Length of output: 1136

@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2024

Uffizzi Preview deployment-53829 was deleted.

@o1lab o1lab force-pushed the nc-fix/sidebar-width-adjustment branch from 3af925b to 0c9bfa0 Compare July 4, 2024 09:24
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 3af925b and 0c9bfa0.

Files selected for processing (5)
  • packages/nc-gui/components/dashboard/View.vue (7 hunks)
  • packages/nc-gui/composables/useGlobal/actions.ts (2 hunks)
  • packages/nc-gui/composables/useGlobal/state.ts (1 hunks)
  • packages/nc-gui/composables/useGlobal/types.ts (2 hunks)
  • packages/nc-gui/store/sidebar.ts (4 hunks)
Files skipped from review due to trivial changes (1)
  • packages/nc-gui/composables/useGlobal/types.ts
Files skipped from review as they are similar to previous changes (4)
  • packages/nc-gui/components/dashboard/View.vue
  • packages/nc-gui/composables/useGlobal/actions.ts
  • packages/nc-gui/composables/useGlobal/state.ts
  • packages/nc-gui/store/sidebar.ts

@o1lab o1lab force-pushed the nc-fix/sidebar-width-adjustment branch from 0c9bfa0 to c3ceede Compare July 4, 2024 11:37
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 0c9bfa0 and c3ceede.

Files selected for processing (5)
  • packages/nc-gui/components/dashboard/View.vue (7 hunks)
  • packages/nc-gui/composables/useGlobal/actions.ts (2 hunks)
  • packages/nc-gui/composables/useGlobal/state.ts (1 hunks)
  • packages/nc-gui/composables/useGlobal/types.ts (2 hunks)
  • packages/nc-gui/store/sidebar.ts (4 hunks)
Files skipped from review due to trivial changes (1)
  • packages/nc-gui/composables/useGlobal/types.ts
Files skipped from review as they are similar to previous changes (4)
  • packages/nc-gui/components/dashboard/View.vue
  • packages/nc-gui/composables/useGlobal/actions.ts
  • packages/nc-gui/composables/useGlobal/state.ts
  • packages/nc-gui/store/sidebar.ts

@o1lab o1lab force-pushed the nc-fix/sidebar-width-adjustment branch from c3ceede to 76e2609 Compare July 4, 2024 14:57
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between c3ceede and 76e2609.

Files selected for processing (6)
  • packages/nc-gui/components/dashboard/View.vue (7 hunks)
  • packages/nc-gui/composables/useGlobal/actions.ts (2 hunks)
  • packages/nc-gui/composables/useGlobal/state.ts (1 hunks)
  • packages/nc-gui/composables/useGlobal/types.ts (2 hunks)
  • packages/nc-gui/nuxt.config.ts (1 hunks)
  • packages/nc-gui/store/sidebar.ts (4 hunks)
Files skipped from review due to trivial changes (1)
  • packages/nc-gui/nuxt.config.ts
Files skipped from review as they are similar to previous changes (5)
  • packages/nc-gui/components/dashboard/View.vue
  • packages/nc-gui/composables/useGlobal/actions.ts
  • packages/nc-gui/composables/useGlobal/state.ts
  • packages/nc-gui/composables/useGlobal/types.ts
  • packages/nc-gui/store/sidebar.ts

@o1lab o1lab force-pushed the nc-fix/sidebar-width-adjustment branch from 76e2609 to 7e64fda Compare July 5, 2024 06:19
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jul 5, 2024
@o1lab o1lab force-pushed the nc-fix/sidebar-width-adjustment branch from 7e64fda to fbf90f3 Compare July 5, 2024 07:37
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Jul 5, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 76e2609 and fbf90f3.

Files selected for processing (8)
  • packages/nc-gui/components/dashboard/View.vue (7 hunks)
  • packages/nc-gui/composables/useGlobal/actions.ts (2 hunks)
  • packages/nc-gui/composables/useGlobal/state.ts (2 hunks)
  • packages/nc-gui/composables/useGlobal/types.ts (2 hunks)
  • packages/nc-gui/lib/constants.ts (1 hunks)
  • packages/nc-gui/store/sidebar.ts (4 hunks)
  • tests/playwright/pages/Dashboard/Grid/Column/index.ts (1 hunks)
  • tests/playwright/quickTests/commonTest.ts (1 hunks)
Files skipped from review due to trivial changes (1)
  • packages/nc-gui/lib/constants.ts
Files skipped from review as they are similar to previous changes (4)
  • packages/nc-gui/components/dashboard/View.vue
  • packages/nc-gui/composables/useGlobal/actions.ts
  • packages/nc-gui/composables/useGlobal/state.ts
  • packages/nc-gui/store/sidebar.ts
Additional comments not posted (3)
packages/nc-gui/composables/useGlobal/types.ts (2)

56-56: LGTM! Added leftSidebarSize to StoredState interface.

The addition aligns with the PR objective of persisting the sidebar width.


93-93: LGTM! Added setLeftSidebarSize to Actions interface.

The addition aligns with the PR objective of configuring the sidebar width.

tests/playwright/pages/Dashboard/Grid/Column/index.ts (1)

464-470: LGTM! Added verify method to ColumnPageObject class.

The method is well-implemented and aligns with the objective of verifying column headers.

@o1lab o1lab force-pushed the nc-fix/sidebar-width-adjustment branch from fbf90f3 to ae405d7 Compare July 5, 2024 08:37
@o1lab o1lab force-pushed the nc-fix/sidebar-width-adjustment branch from ae405d7 to 38c7ece Compare July 5, 2024 10:21
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between fbf90f3 and 38c7ece.

Files selected for processing (8)
  • packages/nc-gui/components/dashboard/View.vue (7 hunks)
  • packages/nc-gui/composables/useGlobal/actions.ts (2 hunks)
  • packages/nc-gui/composables/useGlobal/state.ts (2 hunks)
  • packages/nc-gui/composables/useGlobal/types.ts (2 hunks)
  • packages/nc-gui/lib/constants.ts (1 hunks)
  • packages/nc-gui/store/sidebar.ts (4 hunks)
  • tests/playwright/pages/Dashboard/Grid/Column/index.ts (1 hunks)
  • tests/playwright/quickTests/commonTest.ts (1 hunks)
Files skipped from review as they are similar to previous changes (7)
  • packages/nc-gui/components/dashboard/View.vue
  • packages/nc-gui/composables/useGlobal/actions.ts
  • packages/nc-gui/composables/useGlobal/state.ts
  • packages/nc-gui/composables/useGlobal/types.ts
  • packages/nc-gui/lib/constants.ts
  • packages/nc-gui/store/sidebar.ts
  • tests/playwright/pages/Dashboard/Grid/Column/index.ts
Additional comments not posted (1)
tests/playwright/quickTests/commonTest.ts (1)

79-79: Good practice: Ensure elements are scrolled into view before verification.

Adding the scroll parameter to the verify method call enhances the robustness of the test by ensuring that the column is visible before performing verification actions.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 5, 2024
@dstala dstala merged commit 5041a10 into develop Jul 5, 2024
@dstala dstala deleted the nc-fix/sidebar-width-adjustment branch July 5, 2024 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants