Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Feat/timeline with HTML render #8

Merged
merged 29 commits into from
Jan 8, 2025
Merged

feat: Feat/timeline with HTML render #8

merged 29 commits into from
Jan 8, 2025

Conversation

lcandy2
Copy link
Owner

@lcandy2 lcandy2 commented Jan 8, 2025

No description provided.

lcandy2 added 29 commits January 5, 2025 17:12
…e in ContentView, LoginView, and NeoDBApp
… and ProfileViewModel

- Added caching mechanism for user data in UserService to improve performance.
- Updated getCurrentUser method to accept a forceRefresh parameter for optional cache bypass.
- Implemented clearCache method to allow cache clearing on logout.
- Modified loadUserProfile method in ProfileViewModel to support force refresh.
- Enhanced ProfileView to show loading indicators and support pull-to-refresh for user profile loading.
- Introduced a new private variable for avatar size to standardize avatar dimensions.
- Refactored profile content display logic to improve readability and maintainability.
- Added a placeholder for the avatar while loading user data.
- Updated loading indicators and error handling for a better user experience.
- Ensured the logout button is disabled when no user is present.
…out button in ProfileView

- Deleted the Project Structure.md file as it was no longer relevant.
- Updated the logout button in ProfileView to use a text label instead of an icon, enhancing clarity for users.
- Replaced the static "Home Feed" text with the HomeView component for better functionality.
- Removed unnecessary commented-out code and debug-related properties to clean up the ContentView structure.
…andling

- Changed Status from a struct to a class, adding new properties for enhanced functionality, including uri, editedAt, and various flags (favourited, reblogged, etc.).
- Updated the TimelineService to modify the timeline fetching method and improve error logging with detailed messages for better debugging.
- Enhanced HomeViewModel to handle loading states and detailed error reporting, improving user experience during data fetch operations.
- Added support for displaying status statistics (replies, reblogs, favourites) in the HomeView.
- Changed logger subsystem from "app.neodb" to "social.neodb.app" for better categorization.
- Updated getTimeline method to include a new 'local' parameter, defaulting to true, to filter statuses.
- Enhanced query item handling to always include 'local=true' in requests.
- Improved logging messages to specify when local statuses are successfully decoded.
- Updated TimelineService to display only local statuses and render HTML content properly.
- Introduced HTMLContentView for rendering status content with support for links, mentions, and emoji ratings.
- Added SwiftDown and MarkdownUI packages for HTML parsing and rendering.
- Improved documentation to reflect new features and implementation details.
- Enhanced StatusView with rich text support for better readability and interaction.
@lcandy2 lcandy2 merged commit d1d30be into main Jan 8, 2025
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