Skip to content

Main - #1

Merged
Migrabe merged 2 commits into
masterfrom
main
Feb 27, 2026
Merged

Main#1
Migrabe merged 2 commits into
masterfrom
main

Conversation

@Migrabe

@Migrabe Migrabe commented Feb 27, 2026

Copy link
Copy Markdown
Owner

No description provided.

@Migrabe
Migrabe merged commit 07e1d15 into master Feb 27, 2026
9 of 12 checks passed

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

Copy link
Copy Markdown

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: 5e734ecb2d

ℹ️ 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".

const { user, token } = useAuth();
const [isLoading, setIsLoading] = React.useState(false);

const isPro = user?.isPro || false;

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 Refresh Pro entitlements after checkout completes

isPro is derived only from the cached auth user object, and this provider never re-fetches the user profile after Stripe checkout returns, so a user who just paid (redirected back to /pro?success=true) still has isPro=false locally and remains blocked by the paywall until they manually log out/in. This breaks the paid upgrade flow for successful purchases.

Useful? React with 👍 / 👎.

setIsLoading(true);
try {
const token = localStorage.getItem("token"); // Simplistic approach to auth, might be defined differently later
const response = await fetch("/api/generate/video", {

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 Route video generation through configured backend URL

This request uses a relative path (/api/generate/video) instead of the configured API origin used elsewhere, so when frontend and backend are on different origins (e.g., Vite dev server on 5173, backend on 5000, or GitHub Pages), video generation posts to the wrong host and fails even for authenticated users.

Useful? React with 👍 / 👎.

# Флаг --max-warnings=0 гарантирует падение пайплайна (Merge block) даже при ворнингах
run: |
# В реальном проекте правила подхватятся из .eslintrc. На случай отсутствия запускаем базовую проверку
eslint "frontend/src/**/*.{ts,tsx}" "backend/**/*.js" --max-warnings=0 || true

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 Let ESLint failures fail the quality gate

The lint step is documented as merge-blocking (--max-warnings=0) but appends || true, which forces success even when ESLint reports real errors; this disables the CI quality gate and allows regressions to land unnoticed.

Useful? React with 👍 / 👎.

Migrabe added a commit that referenced this pull request Feb 27, 2026
Merge pull request #1 from Migrabe/main
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