Skip to content

Conversation

Jack251970
Copy link
Member

CHANGES

  • Use new API function string GetDataDirectory(); and string GetLogDirectory(); to drop Flow.Launcher.Infrastructure project reference in Sys plugin
  • Use translated string for Empty recycle bin issue message
  • Hide the window first then open setting dialog to improve Open setting dialog display effect

TEST

  • Empty recycle bin issue message displays correctly

@Jack251970 Jack251970 self-assigned this Jul 20, 2025
@Jack251970 Jack251970 added this to the 2.0.0 milestone Jul 20, 2025
Copy link

gitstream-cm bot commented Jul 20, 2025

🥷 Code experts: no user but you matched threshold 10

Jack251970 has most 👩‍💻 activity in the files.
Jack251970, jjw24 have most 🧠 knowledge in the files.

See details

Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs

Activity based on git-commit:

Jack251970
JUL 23 additions & 5 deletions
JUN 45 additions & 2 deletions
MAY 4 additions & 1 deletions
APR 228 additions & 27 deletions
MAR
FEB 38 additions & 28 deletions

Knowledge based on git-blame:
Jack251970: 51%
jjw24: 9%

Flow.Launcher/PublicAPIInstance.cs

Activity based on git-commit:

Jack251970
JUL 18 additions & 6 deletions
JUN 54 additions & 22 deletions
MAY 124 additions & 131 deletions
APR 165 additions & 61 deletions
MAR 21 additions & 19 deletions
FEB 28 additions & 11 deletions

Knowledge based on git-blame:
Jack251970: 54%
jjw24: 4%

Plugins/Flow.Launcher.Plugin.Sys/Flow.Launcher.Plugin.Sys.csproj

Activity based on git-commit:

Jack251970
JUL
JUN
MAY
APR
MAR
FEB

Knowledge based on git-blame:
jjw24: 13%
Jack251970: 10%

Plugins/Flow.Launcher.Plugin.Sys/Languages/en.xaml

Activity based on git-commit:

Jack251970
JUL
JUN
MAY
APR
MAR 13 additions & 1 deletions
FEB

Knowledge based on git-blame:
jjw24: 29%
Jack251970: 16%

Plugins/Flow.Launcher.Plugin.Sys/Main.cs

Activity based on git-commit:

Jack251970
JUL 10 additions & 2 deletions
JUN
MAY
APR 5 additions & 3 deletions
MAR 200 additions & 186 deletions
FEB 98 additions & 56 deletions

Knowledge based on git-blame:
Jack251970: 44%
jjw24: 8%

✨ Comment /gs review for LinearB AI review. Learn how to automate it here.

Copy link

gitstream-cm bot commented Jul 20, 2025

Be a legend 🏆 by adding a before and after screenshot of the changes you made, especially if they are around UI/UX.

@coderabbitai coderabbitai bot added the enhancement New feature or request label Jul 20, 2025
Copy link
Contributor

coderabbitai bot commented Jul 20, 2025

📝 Walkthrough

"""

Walkthrough

Two new methods for retrieving the data and log directories were added to the public API interface and its implementation. The system plugin was updated to use these API methods for accessing directories, improved error localization, and adjusted UI behavior for the settings dialog. Unused references and directives were removed, and a documentation URL constant was introduced.

Changes

Files/Paths Change Summary
Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs
Flow.Launcher/PublicAPIInstance.cs
Added GetDataDirectory() and GetLogDirectory() methods to the public API interface and its implementation.
Plugins/Flow.Launcher.Plugin.Sys/Main.cs Updated to use new API methods for directory access, improved localization for errors, added documentation URL constant, and adjusted settings dialog logic.
Plugins/Flow.Launcher.Plugin.Sys/Languages/en.xaml Added new localized strings for error dialog title and recycle bin error message.
Plugins/Flow.Launcher.Plugin.Sys/Flow.Launcher.Plugin.Sys.csproj Removed unused project reference to Flow.Launcher.Infrastructure.csproj.

Sequence Diagram(s)

sequenceDiagram
    participant Plugin as System Plugin
    participant API as PublicAPIInstance
    participant DataLoc as DataLocation

    Plugin->>API: GetDataDirectory()
    API->>DataLoc: DataDirectory()
    DataLoc-->>API: data directory path
    API-->>Plugin: data directory path

    Plugin->>API: GetLogDirectory()
    API->>DataLoc: VersionLogDirectory
    DataLoc-->>API: log directory path
    API-->>Plugin: log directory path
Loading

Estimated code review effort

2 (10–30 minutes)

Suggested reviewers

  • Jack251970
  • onesounds
    """

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4652392 and d874076.

📒 Files selected for processing (1)
  • Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • Flow.Launcher.Plugin/Interfaces/IPublicAPI.cs
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: build
  • GitHub Check: gitStream.cm
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ 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>, please review it.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 using 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 generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this 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.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration 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.

@Jack251970 Jack251970 requested a review from Copilot July 20, 2025 03:27
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the Sys plugin to use new API methods instead of direct dependencies, improves internationalization, and enhances the user experience. The main purpose is to decouple the plugin from infrastructure dependencies while providing better localization support.

  • Replaces direct DataLocation usage with new API methods GetDataDirectory() and GetLogDirectory()
  • Adds internationalization support for error messages in recycle bin operations
  • Improves settings dialog display by hiding the main window before opening it

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
Main.cs Refactored to use new API methods, added i18n for error messages, and improved settings dialog UX
en.xaml Added translation keys for error dialog title and recycle bin failure message
Flow.Launcher.Plugin.Sys.csproj Removed Infrastructure project reference to reduce coupling
PublicAPIInstance.cs Implemented new API methods for accessing data and log directories
IPublicAPI.cs Added interface definitions for the new directory access methods

Co-authored-by: Copilot <[email protected]>
@jjw24 jjw24 changed the title Improve Sys plugin Improve Sys plugin & add APIs for getting user data and log locations Jul 21, 2025
@Jack251970 Jack251970 merged commit 2b40107 into dev Jul 21, 2025
14 checks passed
@Jack251970 Jack251970 deleted the sys_plugin_improvement branch July 21, 2025 11:50
TBM13 pushed a commit to TBM13/Flow.Launcher that referenced this pull request Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants