Skip to content

Replace hardcoded project statuses with dynamic detection#4

Merged
kubrickcode merged 2 commits into
mainfrom
develop/shlee/3
Oct 5, 2025
Merged

Replace hardcoded project statuses with dynamic detection#4
kubrickcode merged 2 commits into
mainfrom
develop/shlee/3

Conversation

@kubrickcode
Copy link
Copy Markdown
Owner

Remove fixed status union types ("Backlog", "Ready", "In progress", etc.) and implement dynamic status handling that works with any GitHub Project V2 status field values. Add hash-based color assignment using a predefined palette to ensure consistent badge styling across different project configurations.

fix #3

Remove fixed status union types (\"Backlog\", \"Ready\", \"In progress\", etc.) and implement dynamic status handling that works with any GitHub Project V2 status field values. Add hash-based color assignment using a predefined palette to ensure consistent badge styling across different project configurations.

fix #3
@kubrickcode kubrickcode marked this pull request as ready for review October 5, 2025 09:23
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 5, 2025

/gemini review

@kubrickcode kubrickcode marked this pull request as draft October 5, 2025 09:27
@kubrickcode kubrickcode marked this pull request as ready for review October 5, 2025 09:29
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Oct 5, 2025

/gemini review

1 similar comment
@kubrickcode
Copy link
Copy Markdown
Owner Author

/gemini review

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request successfully replaces the hardcoded project statuses with a dynamic system. The changes are well-implemented, removing the rigid ProjectStatus type and associated CSS classes in favor of a flexible string-based status and a hash-based dynamic color assignment for badges. My feedback focuses on improving the readability and maintainability of the new hashing function in src/content.ts by adhering more closely to the repository's coding style guidelines.

Comment thread src/content.ts
@kubrickcode kubrickcode merged commit ddb8e8e into main Oct 5, 2025
13 checks passed
@kubrickcode kubrickcode deleted the develop/shlee/3 branch October 6, 2025 06:34
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.

The problem of having to hardcode the status

1 participant