Skip to content

feat: add opt-in Hub share build - #98

Merged
luhe19001 merged 1 commit into
mainfrom
feature/t2-c4-opt-in-sharing
Aug 18, 2026
Merged

feat: add opt-in Hub share build#98
luhe19001 merged 1 commit into
mainfrom
feature/t2-c4-opt-in-sharing

Conversation

@luhe19001

@luhe19001 luhe19001 commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR adds a fixture-backed Share to Hub flow for reviewing the future opt-in sharing experience.

  • select sessions by repository and time window
  • review the exact canonical payload before approval
  • bind consent to the source revision, payload hash and size, and destination workspace
  • invalidate stale reviews and ignore late preview responses
  • preserve unchanged retries while requiring renewed approval when the source or destination changes
  • exclude accepted items from partial retries and expose the canonical Hub route after success

Try it locally

Append ?team-share=1 to the local coSlash URL.

  • &share-state=signed_out
  • &share-state=pairing_required
  • &share-state=credential_dormant
  • &share-state=credential_revoked
  • &share-result=partial

Scope

This is a clearly labeled NO UPLOAD build harness. It does not add real authentication, credential storage, ingestion, persistence, or navigation. Production acceptance remains gated on the end-to-end cloud integration.

Verification

  • 23 frontend tests
  • production frontend build
  • frontend lint and format checks
  • go test ./...
  • go vet ./...
  • git diff --check
  • no Go *_test.go files changed

Browser QA remains pending.

image

@luhe19001
luhe19001 marked this pull request as ready for review August 18, 2026 19:44
Comment thread frontend/src/pages/coslash/CoslashPage.tsx
Comment thread frontend/src/pages/coslash/features/sharing/ShareToHubDialog.tsx
@luhe19001
luhe19001 requested a review from calvintvu August 18, 2026 20:46
@calvintvu calvintvu added the enhancement New feature or request label Aug 18, 2026
Comment thread frontend/src/pages/coslash/CoslashPage.tsx
Add the fixture-backed share workflow, explicit review and renewed-consent states, all-time candidate loading, and privacy documentation.
@luhe19001
luhe19001 force-pushed the feature/t2-c4-opt-in-sharing branch from 26e640b to ef43f6d Compare August 18, 2026 21:03
@luhe19001
luhe19001 merged commit c5253e4 into main Aug 18, 2026
3 checks passed
@luhe19001
luhe19001 deleted the feature/t2-c4-opt-in-sharing branch August 18, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants