Skip to content

Golden Gate: ключи для проверки из limits и choices, список сброса по строке / the watched keys from limits and choices, the reset list one a line - #154

Merged
MixaDoDs merged 2 commits into
MixaDoDs:mainfrom
Alastor1991:goldengate-key-lists
Nov 3, 2026

Conversation

@Alastor1991

Copy link
Copy Markdown
Contributor

Зачем

Каждая новая настройка Golden Gate правила две однострочные строки в services/GoldenGate.qml: _watched (что запускает sanitize) и themeKeys (что возвращает «Сбросить тему»). Поэтому любые два PR с настройками конфликтуют именно там. У меня так попарно конфликтуют #141, #145, #149, #152 и #153.

Что сделано

  • _watched строится из ключей limits и choices. Ключ с диапазоном или списком вариантов проверяется уже потому, что он там есть. lightFrom и darkFrom стояли в limits, но в старом списке их не было, теперь проверяются и они.
  • В themeKeys, limits и choices по ключу на строку, по алфавиту. Новые настройки попадают в разные строки.

Поведение больше нигде не меняется. Если этот PR влить первым, остальные PR с настройками Golden Gate я переложу поверх него, и их конфликты в этих строках уйдут.

Проверено

scripts/qml-check.sh: 719 файлов, 0 ошибок; системные тесты Golden Gate прошли. Во вложенном niri неверное значение настройки в settings.json возвращается к допустимому, как раньше.

EN

Every new Golden Gate setting touched two one-line lists in services/GoldenGate.qml: _watched (what triggers sanitize) and themeKeys (what "Reset the theme" puts back), so any two PRs adding a setting conflict there (#141, #145, #149, #152 and #153 do, pairwise).

_watched is now built from the keys of limits and choices (lightFrom and darkFrom, in limits but missing from the old list, are watched now too); themeKeys, limits and choices hold one key a line, in order. No change in behaviour otherwise. Merged first, it lets me rebase the other Golden Gate PRs onto it and their conflicts in these lines go away.

qml-check: 719 files, 0 errors; the Golden Gate system tests pass; in a nested niri a bad value in settings.json goes back into its choices as before.

🤖 Generated with Claude Code

Alastor1991 and others added 2 commits November 2, 2026 15:10
… one a line

Every new Golden Gate setting touched two one-line lists in services/GoldenGate.qml:
_watched (what triggers sanitize) and themeKeys (what «Reset the theme» puts back). So
any two PRs adding a setting conflicted there (MixaDoDs#141, MixaDoDs#145, MixaDoDs#149, MixaDoDs#152, MixaDoDs#153 do, pairwise).

- _watched is built from the keys of limits and choices: a key with a range or a list
  of choices is watched by being there (lightFrom and darkFrom, in limits but missing
  from the old list, are watched now too);
- themeKeys, limits and choices hold one key a line, in order, so new settings land on
  lines of their own.

No change in behaviour otherwise. qml-check: 719 files, 0 errors; the Golden Gate system
tests pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tting goes in

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MixaDoDs
MixaDoDs merged commit acd9f1b into MixaDoDs:main Nov 3, 2026
1 check passed
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