Skip to content

tanstack fix#1853

Merged
yujonglee merged 3 commits intomainfrom
yl-branch-49
Nov 24, 2025
Merged

tanstack fix#1853
yujonglee merged 3 commits intomainfrom
yl-branch-49

Conversation

@yujonglee
Copy link
Contributor

No description provided.

@netlify
Copy link

netlify bot commented Nov 24, 2025

Deploy Preview for hyprnote ready!

Name Link
🔨 Latest commit 6456f34
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/69245784c7a1510008b612e0
😎 Deploy Preview https://deploy-preview-1853--hyprnote.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 24, 2025

📝 Walkthrough

Walkthrough

Dependency version bumps across many package.json files, minor TypeScript prop type expansions for MuxPlayer, removal of a prop from Streamdown usage, and a small export-style change for getRouter in apps/web/src/router.tsx. No functional behavior changes detected.

Changes

Cohort / File(s) Summary
Monorepo manifest updates
apps/web/package.json, apps/api/package.json, apps/desktop/package.json, apps/desktop-e2e/package.json, apps/storybook/package.json, packages/codemirror/package.json, packages/db/package.json, packages/tiptap/package.json, packages/ui/package.json, packages/utils/package.json
Version bumps across dependencies and devDependencies (examples: mux-player-react, nangohq/frontend/node, posthog/react, @sentry/bun, @supabase/supabase-js, zod, @types/react, jsdom, netlify, vite, tanstack/react-router packages, WebDriverIO tooling, TipTap packages, ai). No package additions/removals; manifests only.
Router export style
apps/web/src/router.tsx
Changed getRouter export from an arrow function (export const getRouter = () => {) to a named function declaration (export function getRouter() {). No behavioral change.
Streamdown prop removal
apps/desktop/src/components/main/body/sessions/note-input/enhanced/streaming.tsx
Removed disallowedElements prop (previously ["code","pre"]) from Streamdown usage; relies on default Streamdown behavior.
MuxPlayer style typing
apps/web/src/components/video-player.tsx, apps/web/src/components/video-thumbnail.tsx
Expanded TypeScript type for MuxPlayer style prop to React.CSSProperties & { [key: \--${string}`]: string }` to allow CSS custom properties; no runtime change.

Sequence Diagram(s)

(Skipped — changes are dependency updates and small type/refactor edits without new control-flow or feature-level interactions.)

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20–30 minutes

  • Areas to focus:
    • Verify transitive/peer dependency compatibility for grouped bumps (tanstack/react-router family, vite/storybook, WebDriverIO).
    • Check TypeScript builds for the @types/react bump and the MuxPlayer style type change.
    • Confirm no broken imports/uses of getRouter after export style change.
    • Validate Streamdown rendering where disallowedElements was previously relied upon (edge-case HTML/code rendering).

Possibly related PRs

  • Got enhancing working in desktop2 #1596 — Previously modified Streamdown usage in apps/desktop/src/components/.../streaming.tsx (added disallowedElements); strongly related to the removal in this PR.

Pre-merge checks and finishing touches

❌ Failed checks (1 warning, 2 inconclusive)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
Title check ❓ Inconclusive The title 'tanstack fix' is vague and non-descriptive, using a generic term that does not convey meaningful information about the changeset's primary purpose or scope. Provide a more specific title that describes the main change, such as 'Update TanStack packages to version 1.139.3' or 'Update dependencies including TanStack React Router and related packages'.
Description check ❓ Inconclusive No pull request description was provided by the author, making it impossible to assess whether the description relates to the changeset. Add a pull request description that explains the purpose of the changes, including why the dependency updates were made and any testing or compatibility notes.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch yl-branch-49

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between af5bdfe and 532e6d3.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (11)
  • apps/api/package.json (1 hunks)
  • apps/desktop-e2e/package.json (1 hunks)
  • apps/desktop/package.json (5 hunks)
  • apps/storybook/package.json (1 hunks)
  • apps/web/package.json (3 hunks)
  • apps/web/src/router.tsx (2 hunks)
  • packages/codemirror/package.json (1 hunks)
  • packages/db/package.json (1 hunks)
  • packages/tiptap/package.json (2 hunks)
  • packages/ui/package.json (1 hunks)
  • packages/utils/package.json (2 hunks)
✅ Files skipped from review due to trivial changes (1)
  • packages/codemirror/package.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/web/package.json
🔇 Additional comments (8)
packages/ui/package.json (1)

51-56: LGTM - consistent dependency updates.

The zod and @types/react bumps are patch version updates consistent with the broader dependency refresh across the monorepo.

packages/db/package.json (1)

20-20: LGTM - consistent zod update.

The zod patch version bump aligns with the coordinated dependency updates across the monorepo.

packages/utils/package.json (1)

14-25: LGTM - dependency updates look good.

The ai package update (5.0.93 → 5.0.101) and @types/react patch bump are consistent with the broader dependency refresh.

apps/desktop/package.json (1)

18-127: LGTM - comprehensive dependency refresh.

The extensive dependency updates across AI SDK packages, TanStack packages, and other dependencies appear well-coordinated. The version bumps are mostly patch updates, which is good practice for maintaining stability while getting bug fixes.

apps/api/package.json (1)

11-19: All dependency versions verified—no security concerns identified.

The pinned versions exist and are safe:

  • @sentry/bun@10.26.0 (unaffected by known DoS in 8.10.0-8.48.x)
  • @supabase/supabase-js@2.84.0 (no advisories)
  • zod@4.1.13 (unaffected by known DoS in ≤3.22.2)
  • @types/bun@1.3.3 (no advisories)
apps/desktop-e2e/package.json (1)

10-14: No breaking changes between WebDriverIO 9.4 and 9.20 — safe to proceed.

Verification confirms that no new major breaking changes were introduced after the v9 launch; the breaking changes when upgrading from any 9.x (including 9.4 → 9.20) are the v9 migration items introduced at the v9 release. Since the codebase is already on 9.4.x, those v9 breaking changes have been handled. v9.20 is a minor/patch release that does not add further breaking changes beyond the v9 migration.

packages/tiptap/package.json (1)

24-57: TipTap 3.11.0 update is safe—no breaking changes found.

TipTap 3.11.0 adds native text-direction support with new editor option and commands, but introduces no wide-breaking API renames. This is a minor feature release for the v3 baseline. No code changes are required unless you implement RTL/bidirectional text support.

apps/web/src/router.tsx (1)

8-30: Verification unable to confirm correctness — function is currently unused in the codebase.

The getRouter() function in apps/web/src/router.tsx is defined but never imported or called anywhere in the repository. An extensive search across all TypeScript/TSX files found no usages, call sites, or imports of this function.

The change from an arrow function to a named function declaration is syntactically valid and functionally equivalent. However, without any active usages in the codebase, we cannot verify whether the function works correctly in practice or whether this change introduces any issues.

This suggests either:

  • The integration of this function is incomplete in this PR
  • The function is dead code
  • It's intended for use by external code

Recommend:

  • Confirm whether getRouter() should be actively used in the app initialization
  • If it's meant for integration, check that the corresponding call site is also included in this PR

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
apps/web/src/components/video-player.tsx (1)

59-59: Consider extracting the custom property type to reduce duplication.

The same type augmentation pattern (React.CSSProperties & { [key: \--${string}`]: string }) appears in both video-player.tsxandvideo-thumbnail.tsx`. While this duplication is minor, extracting it to a shared type definition would improve maintainability if this pattern expands to more components.

Example shared type:

// In a shared types file, e.g., @hypr/utils or a local types.ts
type CSSPropertiesWithVars = React.CSSProperties & { 
  [key: `--${string}`]: string 
};

Then use it in both files:

-        } as React.CSSProperties & { [key: `--${string}`]: string }
+        } as CSSPropertiesWithVars
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 532e6d3 and 6456f34.

📒 Files selected for processing (3)
  • apps/desktop/src/components/main/body/sessions/note-input/enhanced/streaming.tsx (0 hunks)
  • apps/web/src/components/video-player.tsx (1 hunks)
  • apps/web/src/components/video-thumbnail.tsx (1 hunks)
💤 Files with no reviewable changes (1)
  • apps/desktop/src/components/main/body/sessions/note-input/enhanced/streaming.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: Redirect rules - hyprnote
  • GitHub Check: Header rules - hyprnote
  • GitHub Check: Pages changed - hyprnote
  • GitHub Check: ci (macos, macos-15)
  • GitHub Check: fmt
  • GitHub Check: ci (linux, depot-ubuntu-24.04-8)
  • GitHub Check: ci (linux, depot-ubuntu-22.04-8)
  • GitHub Check: ci (macos, macos-15)
🔇 Additional comments (2)
apps/web/src/components/video-player.tsx (1)

59-59: LGTM! Type augmentation correctly enables CSS custom properties.

The expanded type allows TypeScript to accept CSS variables (like --controls) in the style object. This is a common and correct pattern for typing CSS custom properties with MuxPlayer.

apps/web/src/components/video-thumbnail.tsx (1)

34-34: LGTM! Consistent type augmentation for CSS custom properties.

The type expansion matches the pattern used in video-player.tsx, correctly enabling CSS variable support for MuxPlayer's style prop.

@yujonglee yujonglee merged commit 330202e into main Nov 24, 2025
11 of 12 checks passed
@yujonglee yujonglee deleted the yl-branch-49 branch November 24, 2025 13:12
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