Repository navigation
New Refetch backend, refetch.io look, and Appwrite Analytics (0.2.0+6) - #16
Merged
Merged
Conversation
…nd add Appwrite Analytics The refetch.io rewrite removed the REST routes the app read and wrote through (/api/posts, /api/vote, ...), so the shipped build shows "Request failed, HTTP 404" on every feed. Data - Feeds, stories and comments are read straight from Appwrite TablesDB (public-read), with the same queries and quality gates the website runs. Comment trees are built client-side like the web's buildCommentTree. - Votes, comments, submissions and the viewer's own votes go through the new refetch.io app API (/api/app/*, refetch-io/refetch docs/APP_API.md), authenticated with an Appwrite JWT. Submitting is a link plus an optional note, as on the site. - Appwrite transport errors read as "offline" instead of socket text. Analytics - Appwrite Analytics (appwrite 28.3.0's Analytics/Tracking) behind an AnalyticsService interface, on the app's own property. Screen views via a route observer; feed loads/failures, story and article opens, shares, votes, comments, submissions, sign-in/up/out and setting changes. No user id or user-written text is ever sent. - A switch in Account > Privacy (on by default, reachable signed out); events wait for the saved choice and stop the moment it is off. - Share any story's thread link from the feed or the thread. Look - Colours, type (Poppins titles, Inter body), radii, Lucide icons, logo and wordmark from refetch.io and its DESIGN.md; sources in docs/BRANDING.md (the one file let through the docs/ ignore). - New launcher icon (purple mark on white), splash, Play icon and feature graphic, generated by tool/render_brand_assets.py. - Empty and error states in the site's pattern. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
New description, short description, subtitle and promotional text built on the site's tagline, "The front page for builders"; release notes for build 6. The iOS privacy URL now points at https://appwrite.io/privacy, which refetch.io links to: https://refetch.io/privacy returns 404 since the site rewrite. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Screenshots (Android) and Screenshots (iOS) capture the app with integration_test + flutter drive on a CI emulator/simulator, frame the shots with moksha (Refetch purple, Poppins headline, Inter subhead, checked against each store's rules) and open a PR with the images in the folders fastlane uploads from. Manual only. The capture reads the live feed and compiles analytics out, so the runs never reach the app's stats. Verified on a phone: 4/4 captured and rendered at 1080x1920. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The refetch.io rewrite removed the REST API this app used, so 0.1.0+5 shows "Request failed, HTTP 404" on every feed. This moves the app onto the new backend, brings it in line with the current site, and adds Appwrite Analytics.
Depends on refetch-io/refetch#13 being deployed first (votes, comments and submissions call its
/api/app/*routes).Data
buildCommentTree./api/app/*with an Appwrite JWT. Submitting is a link plus an optional note, as on the site.appwrite^24.2.0 → ^28.3.0 (flutter_local_notifications→ ^22.3.1, required by it).Analytics
Tracking, behind anAnalyticsServiceinterface (lib/core/analytics/), on the app's own property6aeff5fb00101bdbf718.--dart-define=ANALYTICS_PROPERTY_ID=compiles it out.screen_view(route observer),feed_loaded/feed_load_failed,thread_load_failed,story_opened,article_opened,story_shared,vote_cast,comment_posted,story_submitted,signed_in/signed_up/signed_out/sign_in_failed,setting_changed.PrivacyInfo.xcprivacydeclares Product Interaction (not linked, not tracking).Look
docs/BRANDING.md(the one file let through thedocs/ignore).tool/render_brand_assets.py.Store
https://appwrite.io/privacy(what refetch.io links to;refetch.io/privacyis 404).Checks
flutter analyze: no issues.flutter test: 64 passed (new: analytics wrapper, feed queries, models, vote repository, error mapping, time format).setting_changed.🤖 Generated with Claude Code