Conversation
Codecov ReportAttention: Patch coverage is
🚀 New features to boost your workflow:
|
fad1720 to
6e4ef4d
Compare
JasonMillward
approved these changes
Jul 1, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new feature called "Flow," which provides a way to query, display, and interact with albums in a dynamic and configurable manner. The changes include the creation of new classes, enums, and resources, as well as modifications to existing models and configurations to support the Flow feature.
New Feature: Flow
Core Functionality
Added the
Flowclass inapp/Actions/Albums/Flow.phpto handle querying albums based on various configurations, such as NSFW filtering, sub-album inclusion, and ordering by publication or creation date. This class also defines the logic for building album queries.Introduced the
FlowControllerinapp/Http/Controllers/Gallery/FlowController.phpto handle HTTP requests related to Flow, including initialization and paginated album results.Created the
FlowRequestclass inapp/Http/Requests/Flow/FlowRequest.phpto handle request authorization based on Flow settings and user authentication.Supporting Resources
Added
FlowItemResource,FlowResource, andInitResourceinapp/Http/Resources/Flow/to structure the data returned by Flow-related endpoints, including album details, pagination, and initialization settings. [1] [2] [3]Updated
ModulesRightsResourceto include a flag indicating if the Flow module is enabled. [1] [2]Enum and Exception Additions
Introduced
FlowStrategyandCoverFitTypeenums to define Flow-specific strategies (e.g.,AUTO,OPT_IN) and cover image fitting options (COVER,FIT). [1] [2]Added
InvalidAlbumExceptionto handle cases where an invalid album type is provided in Flow operations.Model Updates
AlbumandBaseAlbumImplmodels to include new attributes (is_recursive_nsfw,published_at) and support Flow-related queries. [1] [2] [3] [4]Configuration and Middleware
Extended
ConfigIntegrityto include new Flow-specific configuration keys, such asflow_strategy,flow_include_sub_albums, andflow_min_max_enabled.Updated
RouteCacheManagerto exclude Flow-related routes from caching or apply specific caching configurations.These changes collectively provide a robust framework for implementing the Flow feature, enabling dynamic and configurable album browsing and interaction.