Skip to content

chore(shared): strict-fix core context providers (ENG-803 batch 2a)#5578

Open
rebelchris wants to merge 4 commits intomainfrom
codex/eng-803-batch2-context-core
Open

chore(shared): strict-fix core context providers (ENG-803 batch 2a)#5578
rebelchris wants to merge 4 commits intomainfrom
codex/eng-803-batch2-context-core

Conversation

@rebelchris
Copy link
Contributor

@rebelchris rebelchris commented Feb 25, 2026

Summary\n- fix strict typing in core shared context providers\n- add strict-safe defaults/guards for auth, boot, settings, alerts and related providers\n- keep behavior unchanged while removing undefined/null strict violations\n\n## Scope\n- packages/shared/src/contexts/{AlertContext,AuthContext,BootProvider,BootProvider.spec,DndContext,FeedContext,NotificationsContext,PushNotificationContext,SettingsContext,SubscriptionContext,WritePostContext}.tsx\n\n## Validation\n- pnpm --filter shared lint:fix\n- pnpm --filter shared lint\n- pnpm --filter shared typecheck:strict (targeted scope clean)\n- pnpm --filter shared test -- --testPathPattern="src/contexts"\n\n## Notes\n- shared/webapp non-strict typecheck still has existing baseline failures outside this PR scope.

Preview domain

https://codex-eng-803-batch2-context-cor.preview.app.daily.dev

@vercel
Copy link

vercel bot commented Feb 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
daily-webapp Error Error Feb 25, 2026 11:53am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
storybook Ignored Ignored Feb 25, 2026 11:53am

Request Review

Copy link
Contributor

@capJavert capJavert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly error throwing

Comment on lines 81 to 92
showLogin: () => {
throw new Error('showLogin is not available outside AuthContextProvider');
},
closeLogin: () => {
throw new Error('closeLogin is not available outside AuthContextProvider');
},
logout: async () => {
throw new Error('logout is not available outside AuthContextProvider');
},
updateUser: async () => {
throw new Error('updateUser is not available outside AuthContextProvider');
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is bound to break some stuff, auth context was optional before so basically we need keep it like that instead of hiding it

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