Skip to content

Merge to Main #58

Open
Abdulmuiz44 wants to merge 108 commits into
codex/ui-redesignfrom
main
Open

Merge to Main #58
Abdulmuiz44 wants to merge 108 commits into
codex/ui-redesignfrom
main

Conversation

@Abdulmuiz44
Copy link
Copy Markdown
Collaborator

No description provided.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 6, 2026

Deploy Preview for tera-ai failed.

Name Link
🔨 Latest commit 9ab1387
🔍 Latest deploy log https://app.netlify.com/projects/tera-ai/deploys/6a07d423da00fd000857ad14

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Align profile usage dashboard with active limits
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 03b43ff038

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread mobile/app/index.tsx
Comment on lines +18 to +20
if (!onboardingComplete) return <Redirect href="/(onboarding)" />;
if (!session) return <Redirect href="/(auth)/sign-in" />;
return <Redirect href="/(tabs)" />;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Guard all signed-in routes, not just the index redirect

session is only checked in app/index.tsx, so any direct navigation/deep link to /(tabs) or /conversation/[id] bypasses auth and renders signed-in surfaces while logged out. This is a regression from the previous root-layout gating and can expose protected UI/data paths whenever the app is opened on a non-index route; add a guard in protected layouts (or root stack) so null sessions are redirected globally.

Useful? React with 👍 / 👎.

Comment on lines +14 to +17
const [session] = await Promise.all([
getStoredSession(),
loadOnboardingState(),
]);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Always mark bootstrap hydrated when storage reads fail

Bootstrap awaits Promise.all without error handling, so if either getStoredSession() or loadOnboardingState() rejects (e.g., SecureStore/AsyncStorage runtime errors), setHydrated(true) is never reached and the app can remain stuck on the loading screen indefinitely. Wrap this block in try/catch/finally (or equivalent) so hydration completes with safe fallback state even on storage failures.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 98979547a9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

<EmptyState title="Start this thread" body="Ask a question and Tera will respond here." />
)}
<View style={styles.composer}>
<Composer disabled={sendMessage.isPending} onSubmit={(value) => sendMessage.mutate(value)} />
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Disable composer for missing conversations

When a user opens a non-existent conversation ID, the screen shows the Conversation not found state but the composer is still enabled because it only checks sendMessage.isPending. Submitting in this state still triggers sendMessage with that invalid ID, clears the input, and gives no visible message output because rendering remains in the !conversation.data branch. This creates a broken UX loop and unnecessary API calls; the composer should be hidden/disabled unless a conversation is loaded.

Useful? React with 👍 / 👎.

return;
}
setError('');
resetPassword.mutate(undefined, {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Pass entered email into reset-password mutation

The forgot-password submit path validates email but then calls resetPassword.mutate(undefined), so user input is dropped before the mutation runs. Because the mutation is parameterless, the API boundary for password reset cannot receive the target address, which will break real reset delivery when the mock is replaced and also gives misleading behavior during integration testing.

Useful? React with 👍 / 👎.

@Abdulmuiz44 Abdulmuiz44 temporarily deployed to main - tera-api May 24, 2026 00:55 — with Render Inactive
Test and others added 2 commits May 24, 2026 02:11
Fix const reassignment error in mistral.ts
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