Skip to content

Conversation

@vamsii777
Copy link
Member

  • Introduced photoRaw property to both Member and MemberData structs to store raw HTML for member photos.
  • Implemented MemberPhoto struct to parse and represent member photos, including URL, alt text, and tags.
  • Enhanced photo parsing logic to handle various HTML formats and normalize alt text.
  • Added unit tests to validate photo parsing functionality, ensuring robustness against different input scenarios.

- Introduced `photoRaw` property to both `Member` and `MemberData` structs to store raw HTML for member photos.
- Implemented `MemberPhoto` struct to parse and represent member photos, including URL, alt text, and tags.
- Enhanced photo parsing logic to handle various HTML formats and normalize alt text.
- Added unit tests to validate photo parsing functionality, ensuring robustness against different input scenarios.
@vamsii777 vamsii777 changed the title Add photo handling to Member and MemberData models TKTC-16 Add photo handling to Member and MemberData models Jul 12, 2025
- Introduced `SalesforceFilesRoutes` protocol and its implementation for downloading files from Salesforce.
- Added `FileDownloadResponse` model to encapsulate file data and metadata.
- Enhanced `SalesforceClient` to include file handling routes and a method for authenticating and downloading files.
- Implemented error handling for file download operations, ensuring robust responses for various failure scenarios.
- Updated documentation to reflect new file download capabilities and usage examples.
@vamsii777
Copy link
Member Author

  • Introduced SalesforceFilesRoutes protocol and its implementation for downloading files from Salesforce.
  • Added FileDownloadResponse model to encapsulate file data and metadata.

@tktchurch tktchurch deleted a comment from github-actions bot Jul 12, 2025
- Updated `SalesforceFilesRoutesImpl` to extract `ContentDocumentId` from response headers, improving the file download process.
- Replaced placeholder logic with dynamic retrieval of `ContentDocumentId` from `ContentDocumentId` and `X-ContentDocumentId` headers, ensuring accurate handling of file downloads.
- Updated `.spi.yml` to include `SalesforceClient` in documentation targets.
- Introduced `FilesHandler` protocol and `SalesforceFilesHandler` implementation for downloading files from Salesforce.
- Enhanced `CongregationKit` and its protocol to support file operations, adding a `files` property.
- Updated documentation to reflect new file management features and usage examples, including secure file download capabilities.
- Refactored `CongregationKit` documentation to include file-related services and models.
@tktchurch tktchurch deleted a comment from github-actions bot Jul 12, 2025
- Updated the `MemberPhoto` struct to conform to the new `SalesforceFileURLRepresentable` protocol, adding functionality to identify Salesforce file URLs and extract record IDs.
- Introduced a new `SalesforceFileURLRepresentable` protocol for handling Salesforce file URLs, including properties for the original URL and record ID extraction.
- Added an initializer to `MemberPhoto` for better instantiation and clarity.
@vamsii777 vamsii777 merged commit 109381e into main Jul 12, 2025
4 of 5 checks passed
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.

2 participants