feat: Add Bublr blog publishing integration #83
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.
Summary
This PR adds the ability to publish freewrite entries directly to Bublr.life as blog posts. Users can now share their writing with the world without leaving the app.
What's New
bublr.life/@username/slugUser Flow
Screenshots
The UI matches the existing app design:
Technical Details
API Integration:
GET /api/v1/profile- Fetches username for post URLsPOST /api/v1/posts- Creates the blog postValidation:
bublr_sk_Error Handling:
Storage:
UserDefaults(sandboxed, persists across sessions)Code Changes
freewrite/ContentView.swift: +453 linesPublishStatusenum and Bublr API structs@Statevariables for publish flowpublishPopoverContent()andpublishIdleView()view buildersfetchBublrUsername()andpublishToBublr()network functionsextractBlogTitle()helper