Skip to content

use reflex base instead of reflex core#1812

Merged
masenf merged 1 commit intomainfrom
update-to-use-reflex-base-instead-of-reflex-core
Apr 6, 2026
Merged

use reflex base instead of reflex core#1812
masenf merged 1 commit intomainfrom
update-to-use-reflex-base-instead-of-reflex-core

Conversation

@adhami3310
Copy link
Copy Markdown
Member

No description provided.

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Apr 6, 2026

Greptile Summary

This PR renames imports of ColorType from reflex_core.constants.colors to reflex_base.constants.colors across three files (pcweb/docgen_pipeline.py, pcweb/flexdown.py, pcweb/templates/docpage/blocks/collapsible.py), and updates uv.lock to replace the reflex-core package with reflex-base (v0.9.0a4 from the reflex monorepo).

Key changes:

  • Three files updated with a one-line import change each: reflex_corereflex_base for ColorType
  • uv.lock updated to reflect the new reflex-base sub-package from the reflex monorepo (same git commit as reflex and reflex-docgen)
  • reflex-base is a direct dependency of reflex, so it is always available transitively — no breakage risk

Notes:

  • reflex-base is not listed as an explicit dependency in pyproject.toml, continuing the same implicit-transitive-dependency pattern that was already in place for reflex-core
  • The change is applied consistently across all three consumer files

Confidence Score: 5/5

This PR is safe to merge — it is a straightforward package rename with no logic changes.

All changes are mechanical one-line import renames. The replacement package (reflex-base) is already a transitive dependency of reflex and is locked to the same monorepo commit as the other reflex sub-packages. No logic, API signatures, or component behavior is changed.

No files require special attention.

Important Files Changed

Filename Overview
pcweb/docgen_pipeline.py Single-line import rename from reflex_core.constants.colors to reflex_base.constants.colors
pcweb/flexdown.py Single-line import rename from reflex_core.constants.colors to reflex_base.constants.colors
pcweb/templates/docpage/blocks/collapsible.py Single-line import rename from reflex_core.constants.colors to reflex_base.constants.colors
uv.lock Lock file updated: replaces reflex-core with reflex-base v0.9.0a4 sourced from the reflex monorepo at the same git commit as reflex and reflex-docgen

Sequence Diagram

sequenceDiagram
    participant App as reflex-web
    participant RB as reflex-base
    participant R as reflex

    App->>RB: import ColorType
    Note over RB: reflex_base.constants.colors
    RB-->>App: ColorType
    Note over App,R: reflex-base is a direct dep of reflex,
always available when reflex is installed
Loading

Reviews (1): Last reviewed commit: "use reflex base instead of reflex core" | Re-trigger Greptile

@masenf masenf merged commit 7f42584 into main Apr 6, 2026
10 checks passed
@masenf masenf deleted the update-to-use-reflex-base-instead-of-reflex-core branch April 6, 2026 16:56
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