Skip to content

feat(community-feed): add ComposerPrompt and auto-enable Blacksky-Only on the Community tab#115

Open
jalcine wants to merge 2 commits into
blacksky-algorithms:mainfrom
jalcine:feat/community-tab-auto-blacksky-only
Open

feat(community-feed): add ComposerPrompt and auto-enable Blacksky-Only on the Community tab#115
jalcine wants to merge 2 commits into
blacksky-algorithms:mainfrom
jalcine:feat/community-tab-auto-blacksky-only

Conversation

@jalcine

@jalcine jalcine commented Jul 8, 2026

Copy link
Copy Markdown

The Community tab had only the floating compose button — the Following feed's inline "What's popping?" composer prompt was missing, and the composer never reflected the tab context. Surface the prompt as the community feed's list header and have the composer default the Blacksky-Only toggle ON when opened while the Community tab is active. The toggle stays per-instance there: flipping it off doesn't touch the sticky blackskyOnlyDefault preference, so users get community-only on the Community tab without affecting their other posts.

@jalcine

jalcine commented Jul 8, 2026

Copy link
Copy Markdown
Author

Hm, will fix lints in a moment

@jalcine
jalcine force-pushed the feat/community-tab-auto-blacksky-only branch from 75ce9bb to 24d42ce Compare July 16, 2026 17:54
@jalcine jalcine closed this Jul 16, 2026
@jalcine
jalcine force-pushed the feat/community-tab-auto-blacksky-only branch from 24d42ce to 150f933 Compare July 16, 2026 17:55
jalcine added 2 commits July 16, 2026 14:06
Three pre-existing issues that block the pre-commit hook:
- fetchNextPage() not awaited inside onEndReached (floating promise)
- async onRefresh bound directly to the FlatList onRefresh prop
  (misused-promise — the prop expects a void-returning function)
- imports not sorted alphabetically by directory then name (the
  simple-import-sort/imports rule)

Mark the promise-returning calls with void and wrap onRefresh in a
handleRefresh helper so the FlatList prop gets a void-returning
function. Reorder the imports to satisfy the sort rule. No behavior
change.
…y on the Community tab

Surface the inline 'What's happening?' composer prompt above the
Community feed, matching the Following feed's affordance. Tapping the
prompt (or the existing FAB) opens the standard composer.

When the composer is opened while the Community tab is the active
selected feed, the Blacksky-Only toggle now defaults to ON so the
composer matches the tab context. The toggle is per-instance on the
Community tab — manually flipping it off there does NOT update the
sticky blackskyOnlyDefault preference, so the next composer on the
Community tab will default back to ON.

This complements the existing forced-on path (community-post reply or
quote target) and the user's sticky preference. Precedence: forced >
community-tab context > sticky default.
@jalcine jalcine reopened this Jul 16, 2026
@jalcine

jalcine commented Jul 16, 2026

Copy link
Copy Markdown
Author

@rudyfraser I rebased this and shrunk the commits but looks like jobs aren't running

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