Skip to content

feat: highlight factory expand icon when inputs are under-supplied#135

Open
the-real-oliverf wants to merge 1 commit into
rockfactory:mainfrom
the-real-oliverf:feature/red-missing-outputs
Open

feat: highlight factory expand icon when inputs are under-supplied#135
the-real-oliverf wants to merge 1 commit into
rockfactory:mainfrom
the-real-oliverf:feature/red-missing-outputs

Conversation

@the-real-oliverf
Copy link
Copy Markdown

The expand/collapse icon next to a factory's name on /factories now turns red with a red outline when any of its inputs is short on supply, matching the existing 'Missing X' indicator on input rows. The shared calculation lives in computeOutputUsage so the row-level and factory-level signals stay in sync.

This means you can tell which factories are under-supplied even if the inputs list is collapsed.

Note that this was mainly generated by AI because I'm not familiar with the project or libraries used. But I've read all the code and it seems totally reasonable to me (I'm a software engineer). I assume you don't object to AI code since you have {CLAUDE|AGENTS}.md files in the project.

collapsed expanded

The expand/collapse icon next to a factory's name on /factories now turns
red with a red outline when any of its inputs is short on supply,
matching the existing 'Missing X' indicator on input rows. The shared
calculation lives in computeOutputUsage so the row-level and
factory-level signals stay in sync.
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