Skip to content

@feature/agency-enhancement - #6

Merged
striker561 merged 14 commits into
mainfrom
@feature/agency-enhancement
Jul 5, 2026
Merged

@feature/agency-enhancement#6
striker561 merged 14 commits into
mainfrom
@feature/agency-enhancement

Conversation

@striker561

Copy link
Copy Markdown
Owner

Update project hub authorization tests and documentation

  • Refactored project hub authorization tests to improve organization and clarity, moving tests to appropriate directories.
  • Updated documentation in ARCHITECTURE.md and CONTRIBUTING.md to reflect changes in test structure and project hub authorization coverage.
  • Added new tests for credentials, deliverables, and meetings to ensure proper authorization checks for admins and clients.
  • Introduced helper functions for setting up project hub actors in tests, enhancing test readability and maintainability.

striker561 added 14 commits July 5, 2026 15:41
Enhance data table components and improve UI consistency

- Added 'flush' prop to data-table for better spacing control.
- Updated action-cell to include a flex container for better alignment.
- Improved empty state messages for clarity and consistency.
- Enhanced primary-cell to support mobile titles and clickable rows.
- Refactored view-button to use a more consistent button component.
- Updated empty-state component to support compact styling.
- Improved deliverables and milestones lists with better action handling.
- Added mobile row actions for deliverables and milestones.
- Enhanced tests to cover new UI states and interactions.
Enhance milestone and deliverable management with status handling and validation improvements
Deliverable Management

Refactor deliverable handling by introducing DeliverableFileService for file operations, enhancing code organization and separation of concerns. Updated SaveDeliverable to utilize the new service for file uploads. Improved validation logic in SaveMilestone for status handling.
Refactor project hub resource management and authorization

- Introduced AuthorizesProjectHubResources concern to streamline authorization checks across deliverables, meetings, and milestones.
- Updated SaveDeliverable, SaveMeeting, and SaveMilestone components to utilize new authorization methods.
- Replaced direct authorization calls with centralized methods for better maintainability.
- Enhanced DeliverableService, MeetingService, and MilestoneService with project-specific find methods.
- Implemented submitForReview functionality for deliverables, allowing admins to submit for client review.
- Updated policies to reflect new authorization logic and ensure proper access control for deliverables, meetings, and milestones.
- Adjusted frontend components to reflect changes in deliverable actions and messaging.
- Added tests to cover new functionality and ensure proper authorization behavior.
Refactor DeliverableService and MilestoneService for milestone synchronization

- Updated DeliverableService to utilize MilestoneService for milestone synchronization, enhancing code organization.
- Renamed methods for clarity, replacing `updateMilestoneOnDeliverableChange` with `syncMilestoneForDeliverable`.
- Introduced `syncFromDeliverables` method in MilestoneService to handle milestone status updates based on deliverable approvals.
- Removed redundant milestone status synchronization logic from DeliverableService.
- Added tests to verify milestone auto-completion and reopening based on deliverable statuses.
Update architecture and contributing documentation for authorization and project resource handling
Add feature tests for authorization policies across various resources

- Introduced tests for deliverables, credentials, milestones, meetings, projects, and user policies to ensure proper authorization checks.
- Verified that admins have full access while clients are restricted based on project ownership.
- Implemented tests for creating, viewing, updating, and deleting actions to enforce security measures.
- Enhanced coverage for internal and external comment visibility based on user roles.
Updated the docs to better explain project does
Implement file upload functionality for deliverables

- Introduced a new FileUploader component to manage file uploads within the SaveDeliverable Livewire component.
- Updated SaveDeliverable to handle multiple file uploads, including validation and state management.
- Enhanced DeliverableFileService to support batch file uploads and retrieval of active files.
- Added policies to manage file access and deletion based on deliverable status.
- Updated architecture and configuration files to accommodate new upload limits and storage settings.
- Added tests to ensure proper functionality of file uploads and authorization checks.
Enhance deliverable and milestone management with new deletion and confirmation modals

- Implemented confirmation modals for submitting deliverables for review and deleting deliverables and milestones.
- Updated DeliverablesList and MilestonesList components to handle deletion actions with user confirmation.
- Introduced new methods in DeliverableService and MilestoneService to manage deletions based on status and relationships.
- Enhanced policies to allow admins to delete draft and rejected deliverables, and empty milestones.
- Added UI components for hint disclosures to improve user understanding of deliverable and milestone workflows.
- Updated tests to cover new deletion functionalities and ensure proper authorization checks.
Enhance deliverable file management and access control

- Added mimeTypeValue method to DeliverableFile model for better MIME type handling.
- Implemented isPreviewableImage method to check if the file is an image.
- Introduced showUrl method in DeliverableFile for generating file access URLs.
- Updated DeliverableFilePolicy to refine download permissions based on deliverable status.
- Added findFileForDeliverableInProject method in DeliverableFileService for improved file retrieval.
- Refactored downloadFile method to stream files with appropriate headers.
- Enhanced save-deliverable view to support read-only mode and improved file upload handling.
- Updated deliverables list view to include view actions for in-review deliverables.
- Added tests for deliverable file access and permissions, ensuring proper authorization for clients and admins.
- Created DeliverableFileAccessTest to validate file access routes and permissions.
Implement credential encryption and reveal functionality

- Added encryption for sensitive fields (username, password, url, notes) in the Credential model.

- Updated SaveCredentialData to handle sensitive parameters with appropriate attributes.
- Refactored ViewCredential component to reveal sensitive details upon user request.
- Enhanced CredentialService to manage encrypted credentials and reveal functionality.
- Updated tests to validate the encryption process and ensure proper access control for revealing credentials.
- Improved UI messaging to inform users about the encryption of sensitive fields.
Update project hub authorization tests and documentation

- Refactored project hub authorization tests to improve organization and clarity, moving tests to appropriate directories.
- Updated documentation in ARCHITECTURE.md and CONTRIBUTING.md to reflect changes in test structure and project hub authorization coverage.
- Added new tests for credentials, deliverables, and meetings to ensure proper authorization checks for admins and clients.
- Introduced helper functions for setting up project hub actors in tests, enhancing test readability and maintainability.
@striker561
striker561 merged commit fd6bdac into main Jul 5, 2026
1 check passed
@striker561
striker561 deleted the @feature/agency-enhancement branch July 5, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant