Skip to content

Add styles configuration - #169

Merged
whyisdifficult merged 4 commits into
whyisdifficult:mainfrom
stianse:add-styles-configuration
Feb 3, 2026
Merged

Add styles configuration#169
whyisdifficult merged 4 commits into
whyisdifficult:mainfrom
stianse:add-styles-configuration

Conversation

@stianse

@stianse stianse commented Jan 26, 2026

Copy link
Copy Markdown
Contributor

Users have different Jira workflows with custom statuses and custom issue types that aren't covered by the built-in color defaults. This feature allows users to define their own color mappings in the config file.

The color mapping is merged with the built-in defaults, so it may both add to and override the existing colors.

Example config:

work_item_status_styles:
  closed: green
  development: blue
  blocked: '#FF0000'

work_item_type_styles:
  epic: dark_orange
  story: '#FF8888'

Allow users to customize status colors in search results via
work_item_status_styles config option. Custom mappings merge
with built-in defaults (done=green, in progress=blue, etc.).
Allow users to customize type colors in search results via
work_item_type_styles config option. Custom mappings merge
with built-in defaults (bug=red, epic=yellow, task=blue).
@whyisdifficult whyisdifficult added the enhancement New feature or request label Jan 29, 2026
@whyisdifficult whyisdifficult self-assigned this Jan 29, 2026
@whyisdifficult
whyisdifficult self-requested a review January 30, 2026 17:53
Comment thread src/jiratui/config.py Outdated
@whyisdifficult

Copy link
Copy Markdown
Owner

@stianse let's also update the CHANGELOG with the changes that will be included in the next release. Example:

## [Unreleased] - 2026-01-30

### Improvement

- Add support for defining styles foe different components

Move styling-related config from flat top-level keys into a nested
`styling` configuration block for better organization and discoverability.
Rename fields to `work_item_status_colors` and `work_item_type_colors`
for clarity.
@stianse

stianse commented Jan 31, 2026

Copy link
Copy Markdown
Contributor Author

@whyisdifficult I've pushed another commit to implement you suggestion. Nested config is a cleaner approach!

I was a bit unsure on where the detailed documentation about the specific styling config should go. I put an example in jiratui.example.yaml, but let me know if you want it done differently.

@whyisdifficult
whyisdifficult self-requested a review February 3, 2026 13:09
@whyisdifficult
whyisdifficult merged commit 35f347d into whyisdifficult:main Feb 3, 2026
15 checks passed
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Apr 2, 2026
This MR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Adoption](https://docs.renovatebot.com/merge-confidence/) | [Passing](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|---|---|
| [pipx:jiratui](https://github.com/whyisdifficult/jiratui) ([changelog](https://github.com/whyisdifficult/jiratui/blob/main/CHANGELOG.md)) | `1.6.2` → `1.7.0` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/jiratui/1.7.0?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/jiratui/1.7.0?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/jiratui/1.6.2/1.7.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/jiratui/1.6.2/1.7.0?slim=true) |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>whyisdifficult/jiratui (pipx:jiratui)</summary>

### [`v1.7.0`](https://github.com/whyisdifficult/jiratui/blob/HEAD/CHANGELOG.md#170---2026-03-28)

[Compare Source](whyisdifficult/jiratui@v1.6.2...v1.7.0)

##### Added

- Add support for defining custom styles for work item status and type colors via the `styling` configuration key; by [@&#8203;stianse](https://github.com/stianse) in [#&#8203;169](whyisdifficult/jiratui#169)
- Implement `active_sprint_on_startup` config flag by [@&#8203;spomata](https://github.com/spomata) in [#&#8203;170](whyisdifficult/jiratui#170)
- Add styles configuration by [@&#8203;stianse](https://github.com/stianse) in [#&#8203;169](whyisdifficult/jiratui#169)
- Allow customization of some components styling: priority, status and type by [@&#8203;whyisdifficult](https://github.com/whyisdifficult) in [#&#8203;173](whyisdifficult/jiratui#173)
- Use canonical value for styling work item statuses and types by [@&#8203;whyisdifficult](https://github.com/whyisdifficult) in [#&#8203;172](whyisdifficult/jiratui#172)

##### Bug Fixes

- `search_on_startup` config value was always overridden by CLI by [@&#8203;spomata](https://github.com/spomata) in [#&#8203;168](whyisdifficult/jiratui#168)

##### Changed

- Drop support for Python 3.10 and 3.11 by [@&#8203;whyisdifficult](https://github.com/whyisdifficult) in [#&#8203;184](whyisdifficult/jiratui#184)

##### Minor Improvements

- Upgrade `textual` to `v8.2.0`
- Upgrade `pydantic-settings[yaml]`
- Upgrade `gitpython`
- Upgrade `click`
- Upgrade `textual-image`
- Upgrade `pytest-cov`
- Upgrade `pytest`
- Upgrade `pytest-asyncio`
- Upgrade `mypy`
- Upgrade `pre-commit`
- Upgrade `ruff`
- Bump requests from 2.32.4 to 2.33.0 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;182](whyisdifficult/jiratui#182)
- Bump urllib3 from 2.5.0 to 2.6.3 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;183](whyisdifficult/jiratui#183)
- Bump aiohttp from 3.13.1 to 3.13.3 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;185](whyisdifficult/jiratui#185)
- Upgrade Independence used for generating documentation
- Improve SEO for the official website by [@&#8203;whyisdifficult](https://github.com/whyisdifficult) in [#&#8203;171](whyisdifficult/jiratui#171)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xMDIuMTAiLCJ1cGRhdGVkSW5WZXIiOiI0My4xMDIuMTAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbIlJlbm92YXRlIEJvdCIsImF1dG9tYXRpb246Ym90LWF1dGhvcmVkIiwiZGVwZW5kZW5jeS10eXBlOjptaW5vciJdfQ==-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants