Skip to content

Fix dashboard dependencies and handle missing Tailwind plugin#2

Merged
anubissbe merged 1 commit intomainfrom
codex/fix-unresolved-module-errors-in-ccflare
Oct 26, 2025
Merged

Fix dashboard dependencies and handle missing Tailwind plugin#2
anubissbe merged 1 commit intomainfrom
codex/fix-unresolved-module-errors-in-ccflare

Conversation

@anubissbe
Copy link
Owner

@anubissbe anubissbe commented Oct 26, 2025

Summary

  • add the missing internal workspace packages to the dashboard web app dependencies so Bun can resolve @ccflare imports during builds
  • make the dashboard build script load bun-plugin-tailwind dynamically and continue without the plugin when it is unavailable

Testing

  • bun run ccflare (fails: bun cannot download external npm packages in the execution environment)

https://chatgpt.com/codex/tasks/task_e_68fe23b3b7488331bba813c9bb867492

Summary by Sourcery

Fix dependency resolution in the dashboard-web app by including internal workspace packages and enhance the build script to handle the absence of the Tailwind plugin gracefully.

Bug Fixes:

  • Add missing internal workspace packages to dashboard-web dependencies for proper Bun import resolution

Enhancements:

  • Load bun-plugin-tailwind dynamically in build script and continue without Tailwind processing when unavailable

@sourcery-ai
Copy link

sourcery-ai bot commented Oct 26, 2025

Reviewer's Guide

This PR updates the dashboard web app build process to gracefully handle missing Tailwind plugin by dynamically importing it and adjusts the project’s dependencies so Bun can resolve all internal @ccflare packages during builds.

Entity relationship diagram for updated dashboard-web dependencies

erDiagram
    DASHBOARD_WEB {
        string id
    }
    CCFLARE_CORE {
        string id
    }
    CCFLARE_ERRORS {
        string id
    }
    CCFLARE_HTTP_COMMON {
        string id
    }
    CCFLARE_UI_COMMON {
        string id
    }
    CCFLARE_UI_CONSTANTS {
        string id
    }
    CCFLARE_TYPES {
        string id
    }
    DASHBOARD_WEB ||--|| CCFLARE_CORE : depends_on
    DASHBOARD_WEB ||--|| CCFLARE_ERRORS : depends_on
    DASHBOARD_WEB ||--|| CCFLARE_HTTP_COMMON : depends_on
    DASHBOARD_WEB ||--|| CCFLARE_UI_COMMON : depends_on
    DASHBOARD_WEB ||--|| CCFLARE_UI_CONSTANTS : depends_on
    DASHBOARD_WEB ||--|| CCFLARE_TYPES : depends_on
Loading

Class diagram for dynamic Tailwind plugin loading in dashboard build script

classDiagram
    class TailwindPlugin {
        <<type>>
    }
    class build_ts {
        +tailwindPlugin: TailwindPlugin | undefined
        +plugins: TailwindPlugin[]
        +Bun.build(options)
    }
    TailwindPlugin <|-- build_ts
    build_ts o-- Bun_build
    class Bun_build {
    }
Loading

File-Level Changes

Change Details Files
Graceful bun-plugin-tailwind handling in build script
  • Define TailwindPlugin type alias
  • Dynamically import bun-plugin-tailwind with success/error handlers
  • Log warnings when the plugin fails to load
  • Use a conditional plugins array instead of a hard requirement
packages/dashboard-web/build.ts
Add missing internal workspace dependencies
  • Add @ccflare/core
  • Add @ccflare/http-common
  • Add @ccflare/types alongside existing workspace packages
packages/dashboard-web/package.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey there - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@anubissbe anubissbe merged commit 599b792 into main Oct 26, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant