-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Move file settings to the file management area #3584
Move file settings to the file management area #3584
Conversation
…lectron/file-management-settings
✅ Deploy Preview for actualbudget ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
- packages/desktop-client/src/components/manager/BudgetList.tsx (5 hunks)
🧰 Additional context used
🔇 Additional comments (4)
packages/desktop-client/src/components/manager/BudgetList.tsx (4)
15-18
: Imports are correctly utilizedThe imports for
isElectron
andisNonProductionEnvironment
are appropriately added and used within the code, enhancing environment-specific functionality.
32-32
:SvgCog
icon imported successfullyThe
SvgCog
icon is imported from'../../icons/v1'
and is ready for use in theSettingsButton
component.
374-384
: Verify support for the 'gap' style propertyThe
gap
style property is used within a flex container. Ensure that the styling solution and target browsers support thegap
property for flex layouts to maintain consistent spacing between elements.To confirm compatibility, you can check browser support for the
gap
property in flexbox layouts.
463-463
:onOpenSettings
prop connected correctlyThe
onOpenSettings
prop is properly passed toBudgetListHeader
, and it dispatches the 'files-settings' modal as intended.
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.
Looks good
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
⛔ Files ignored due to path filters (1)
yarn.lock
is excluded by!**/yarn.lock
,!**/*.lock
📒 Files selected for processing (2)
- packages/desktop-electron/index.ts (2 hunks)
- packages/desktop-electron/package.json (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- packages/desktop-electron/package.json
🧰 Additional context used
🔇 Additional comments (2)
packages/desktop-electron/index.ts (2)
19-19
: LGTM: Correct import of fs-extra functionsThe import statement correctly imports the necessary functions (copy, exists, remove) from the fs-extra library, which are used in the new 'move-budget-directory' IPC handler.
Line range hint
1-435
: Summary of changes and recommendationsThe main change in this file is the addition of a new IPC handler 'move-budget-directory' for moving budget directories. The implementation is generally good, but some improvements have been suggested to enhance robustness and safety.
Key points:
- The necessary fs-extra functions are correctly imported.
- The new IPC handler performs basic validation and error handling.
- Suggestions have been made to improve error checking, prevent unintended data loss, and implement a rollback mechanism.
Overall, the changes align with the PR objectives of integrating file management functionality. Once the suggested improvements are implemented, this part of the PR should be ready for approval.
Bundle Stats — desktop-clientHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger
Smaller
Unchanged
|
Bundle Stats — loot-coreHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger
Smaller No assets were smaller Unchanged No assets were unchanged |
This is step 1 to resolving this issue: #3371
Step 2 is to allow configuration before creating a budget (will tackle that in a follow up PR).
Changing the data directory
Settings page (if electron):
Tested on: