feat: unlock all captura scenes #650

Merged
Sainan merged 1 commits from captura into main 2024-12-29 12:11:36 -08:00
Owner

Closes #646

Closes #646
coderabbitai[bot] commented 2024-12-28 20:09:13 -08:00 (Migrated from github.com)
Author
Owner

Walkthrough

The pull request introduces a new feature to unlock all Captura scenes in the application. This change spans multiple files across the project, including configuration, frontend, and backend components. The modification allows users to enable a setting that automatically unlocks all Captura scenes through a new configuration option.

The implementation involves updating the config.json.example with a new boolean flag, modifying the configuration service to support the new option, and adding a corresponding checkbox in the web UI. The inventory controller has been enhanced with new helper functions to determine resource inheritance and manage Captura scene unlocking.

Additionally, the pull request updates the warframe-public-export-plus dependency to version 0.5.16, suggesting potential underlying improvements or bug fixes in the dependency.

Tip

CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command @coderabbitai generate docstrings to have CodeRabbit automatically generate docstrings for your pull request. We would love to hear your feedback on Discord.


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>, please review it.
    • 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 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 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 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. (Beta)
  • @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.

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.
<!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- walkthrough_start --> ## Walkthrough The pull request introduces a new feature to unlock all Captura scenes in the application. This change spans multiple files across the project, including configuration, frontend, and backend components. The modification allows users to enable a setting that automatically unlocks all Captura scenes through a new configuration option. The implementation involves updating the `config.json.example` with a new boolean flag, modifying the configuration service to support the new option, and adding a corresponding checkbox in the web UI. The inventory controller has been enhanced with new helper functions to determine resource inheritance and manage Captura scene unlocking. Additionally, the pull request updates the `warframe-public-export-plus` dependency to version 0.5.16, suggesting potential underlying improvements or bug fixes in the dependency. <!-- walkthrough_end --> <!-- announcements_start --> > [!TIP] > CodeRabbit's [docstrings feature](https://docs.coderabbit.ai/finishing-touches/docstrings) is now available as part of our [Early Access Program](https://docs.coderabbit.ai/early-access)! Simply use the command `@coderabbitai generate docstrings` to have CodeRabbit automatically generate docstrings for your pull request. We would love to hear your feedback on [Discord](https://discord.com/channels/1134356397673414807/1317286905557287022). <!-- announcements_end --> <!-- internal state start --> <!-- FAHghAtBAEAqAWBLAzt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8II3bVE3LPHPPaC/DAK3Owh5BUhM/BGnQvEUnIJvcsxOA1LiVI7CIZATEFOgVTSLHoO3UfDoWgAk3aUMokZ4AmUTMyOYVKF5KsXIEUJgLoJyfGGkDMkYNRGkc9KwzvAQJoTkTvQCwfEgGgTopNH8/UjoPxHkPkAUTAdhVObKKCf8awMEPIPwDMrwRPWzXZbTBCoC4mZC7ibKdI/OTI3wJKedMpLM5wmFM6WNAw5ABSECxvRNIYbnFwzIfixCoS7AwsvqV84kNfcgR0ldXvXkJpICnCI/czQIEIdxG5FKCSwlN8gCoC0oYS9qcjThHwKjOYEsswi/OjbABjOYDkgodtYUKco4r3HjLVfjcQpc8fVnfhJNecjYopfINQStQuKkbIgy0TRC+eRi9DUM0ZSPbtC0cK8ctsyUKbVhLKQYqihaGmUfZQEjDqA/c4ozLc0zLuS/Gxa/azVmBaZ4keN4gKrabPcfX490iSs6FE66aLKiKggMoMi1KrJksktko0dUzkrU5HBk08McRaQZPAWcOGBcRgJcFsAIDAdcCnRQXcMqgcDQQ8EcE8UAUsJsJofAAAfVGGQFusCDWWQgYFupIKmmPCWquoAGYABOegctAAJj1iYB+qEHWHiAAHZlgmAgafrlg9Z1ggaAAOJIMgaG+IP65YZYIQLECGoGlQIG1YL6s8GAJcTQe67VJ60uKYcg+gW68sL6oAA=== --> <!-- internal state end --> <!-- tips_start --> --- 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? <details> <summary>❤️ Share</summary> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </details> <details> <summary>🪧 Tips</summary> ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit <commit_id>, please review it.` - `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 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 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 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](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR. ([Beta](https://docs.coderabbit.ai/early-access#beta)) - `@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. ### Documentation and Community - Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit. - Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements. </details> <!-- tips_end -->
coderabbitai[bot] (Migrated from github.com) reviewed 2024-12-28 20:10:24 -08:00
coderabbitai[bot] (Migrated from github.com) left a comment
Author
Owner

Actionable comments posted: 0

🧹 Nitpick comments (2)
src/controllers/api/inventoryController.ts (1)

227-235: Dependency checks for resource inheritance.
The function resourceInheritsFrom is straightforward in approach. Consider adding test coverage for edge/corner cases (nonexistent resources, recursion depth, etc.).

static/webui/index.html (1)

260-263: Consider enhancing accessibility for the new Captura scenes checkbox.

The implementation follows the established pattern and integrates well with the existing server settings. However, consider adding a tooltip (like the "Flavor Items" checkbox above) to explain what Captura scenes are for new users.

Apply this diff to add a tooltip:

                                     <div class="form-check">
                                         <input class="form-check-input" type="checkbox" id="unlockAllCapturaScenes" />
-                                        <label class="form-check-label" for="unlockAllCapturaScenes">Unlock All Captura Scenes</label>
+                                        <label class="form-check-label" for="unlockAllCapturaScenes">
+                                            Unlock All <abbr title="Special environments for taking screenshots and creating videos">Captura Scenes</abbr>
+                                        </label>
                                     </div>
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between dc85be8f37 and 39dfa21c3b.

Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (6)
  • config.json.example (1 hunks)
  • package.json (1 hunks)
  • src/controllers/api/inventoryController.ts (3 hunks)
  • src/services/configService.ts (1 hunks)
  • static/webui/index.html (1 hunks)
  • static/webui/script.js (1 hunks)
Files skipped from review due to trivial changes (1)
  • package.json
🔇 Additional comments (7)
config.json.example (1)

25-25: Looks good: new config key aligns with unlock-all approach.
This addition is consistent with the existing pattern of unlock flags and is straightforward to integrate.

src/services/configService.ts (1)

50-50: Good addition: optional property captured properly.
Declaring the new config field unlockAllCapturaScenes as optional makes sense because it accommodates older configurations that don’t include the key.

src/controllers/api/inventoryController.ts (4)

10-17: Well-structured imports: consistent with usage.
The addition of these exports from warframe-public-export-plus is coherent. Ensure that their usage aligns with licensing and version requirements to avoid potential runtime errors.


19-19: Exporting the controller is beneficial.
Exporting inventoryController offers clearer public usage, especially if you plan to test or consume it externally.


162-171: Captura scene unlock logic is clear.
The block effectively checks configuration and adds applicable Captura scenes. Ensure that no duplicates are accidentally inserted (though it looks fine given the usage).


237-242: Lookup of parent resources.
resourceGetParent is a simple fetch from ExportResources or ExportVirtuals. This is a clean approach to resource hierarchy retrieval.

static/webui/script.js (1)

790-790: UI config array updated.
Adding "unlockAllCapturaScenes" ensures consistent handling in the front-end. Nice integration with other unlock flags.

**Actionable comments posted: 0** <details> <summary>🧹 Nitpick comments (2)</summary><blockquote> <details> <summary>src/controllers/api/inventoryController.ts (1)</summary><blockquote> `227-235`: **Dependency checks for resource inheritance.** The function `resourceInheritsFrom` is straightforward in approach. Consider adding test coverage for edge/corner cases (nonexistent resources, recursion depth, etc.). </blockquote></details> <details> <summary>static/webui/index.html (1)</summary><blockquote> `260-263`: **Consider enhancing accessibility for the new Captura scenes checkbox.** The implementation follows the established pattern and integrates well with the existing server settings. However, consider adding a tooltip (like the "Flavor Items" checkbox above) to explain what Captura scenes are for new users. Apply this diff to add a tooltip: ```diff <div class="form-check"> <input class="form-check-input" type="checkbox" id="unlockAllCapturaScenes" /> - <label class="form-check-label" for="unlockAllCapturaScenes">Unlock All Captura Scenes</label> + <label class="form-check-label" for="unlockAllCapturaScenes"> + Unlock All <abbr title="Special environments for taking screenshots and creating videos">Captura Scenes</abbr> + </label> </div> ``` </blockquote></details> </blockquote></details> <details> <summary>📜 Review details</summary> **Configuration used: .coderabbit.yaml** **Review profile: CHILL** **Plan: Pro** <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between dc85be8f3788ba1d6acd3fbc24ea49b1210949e5 and 39dfa21c3b0f76c2361028eaef7f966b4b02de25. </details> <details> <summary>⛔ Files ignored due to path filters (1)</summary> * `package-lock.json` is excluded by `!**/package-lock.json` </details> <details> <summary>📒 Files selected for processing (6)</summary> * `config.json.example` (1 hunks) * `package.json` (1 hunks) * `src/controllers/api/inventoryController.ts` (3 hunks) * `src/services/configService.ts` (1 hunks) * `static/webui/index.html` (1 hunks) * `static/webui/script.js` (1 hunks) </details> <details> <summary>✅ Files skipped from review due to trivial changes (1)</summary> * package.json </details> <details> <summary>🔇 Additional comments (7)</summary> <details> <summary>config.json.example (1)</summary> `25-25`: **Looks good: new config key aligns with unlock-all approach.** This addition is consistent with the existing pattern of unlock flags and is straightforward to integrate. </details> <details> <summary>src/services/configService.ts (1)</summary> `50-50`: **Good addition: optional property captured properly.** Declaring the new config field `unlockAllCapturaScenes` as optional makes sense because it accommodates older configurations that don’t include the key. </details> <details> <summary>src/controllers/api/inventoryController.ts (4)</summary> `10-17`: **Well-structured imports: consistent with usage.** The addition of these exports from `warframe-public-export-plus` is coherent. Ensure that their usage aligns with licensing and version requirements to avoid potential runtime errors. --- `19-19`: **Exporting the controller is beneficial.** Exporting `inventoryController` offers clearer public usage, especially if you plan to test or consume it externally. --- `162-171`: **Captura scene unlock logic is clear.** The block effectively checks configuration and adds applicable Captura scenes. Ensure that no duplicates are accidentally inserted (though it looks fine given the usage). --- `237-242`: **Lookup of parent resources.** `resourceGetParent` is a simple fetch from `ExportResources` or `ExportVirtuals`. This is a clean approach to resource hierarchy retrieval. </details> <details> <summary>static/webui/script.js (1)</summary> `790-790`: **UI config array updated.** Adding `"unlockAllCapturaScenes"` ensures consistent handling in the front-end. Nice integration with other unlock flags. </details> </details> </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
Sign in to join this conversation.
No description provided.