Skip to content

refactor: split iOS pages and large Rust modules into directories - #127

Merged
fannnzhang merged 4 commits into
mainfrom
refactor/page-and-rust-module-splits
Sep 25, 2026
Merged

fannnzhang merged 4 commits into
mainfrom
refactor/page-and-rust-module-splits

Conversation

@fannnzhang

Copy link
Copy Markdown
Contributor

Summary

  • Split high-traffic iOS screens (Home, Search, Notifications, Chat channel, Composer, Messages, Drafts, Profile cells, shared topic-list kit) onto the same Host / Controller / Feed / Shell layout as TopicDetail. Dead SwiftUI FireProfileView and FirePublicProfileView are removed.
  • Replace oversized Rust modules with directory modules (network, session, chat, interactions, notifications, diagnostics, topic_payloads, cookie, rich text, UniFFI session records/handle). Public crate paths stay stable.
  • File boundaries only. The next Session control plane (HomeFeedSession, ChatChannelSession, notification runtime, ComposerSession) is documented and not migrated.

Test plan

  • cargo fmt --all --check
  • cargo clippy -p fire-models -p fire-core -p fire-uniffi --all-targets --no-deps -- -D warnings (debug and release)
  • cargo test -p fire-models -p fire-store -p fire-core -p fire-uniffi --all-targets
  • iOS simulator build of the Fire scheme (Xcode project file lists the moved sources; not built locally in this pass)

fannnzhang and others added 4 commits September 24, 2026 18:25
Move high-traffic iOS screens onto the TopicDetail Host/Controller/Feed/Shell
layout and replace oversized Rust modules with directory modules, keeping
public crate paths stable. Dead SwiftUI profile views are removed. Session
control-plane behavior is unchanged.
The page split moved Swift sources into new groups, but the committed
Xcode project still referenced the old layout. iOS Test regenerates with
XcodeGen 2.46.0 and fails the project drift check before xcodebuild.

Co-authored-by: peter rich <fannnzhang@users.noreply.github.com>
Home and Search action extensions present bookmark editors with
UIHostingController. The page split dropped import SwiftUI from those
files, so iOS Test failed to compile FireHomeViewController+Actions.

Co-authored-by: peter rich <fannnzhang@users.noreply.github.com>
The page split promoted the bookmark helper to an internal initializer
on FireTopicListPalette while topic-detail feed cells kept a private
copy. Swift treats that pair as a redeclaration, so the feed cells now
use the palette initializer.

Co-authored-by: peter rich <fannnzhang@users.noreply.github.com>
@fannnzhang
fannnzhang merged commit f4eb964 into main Sep 25, 2026
11 checks passed
@fannnzhang
fannnzhang deleted the refactor/page-and-rust-module-splits branch September 25, 2026 05:05
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