Export and Management of Styles
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
The issue describes a broad overhaul of style export, storage, and update support, and points to #6028 for the larger initiative. Read that issue first to understand the project direction; this issue leaves key design questions open and names no files, tests, or implementation entry points. Done would require a decided approach that preserves modified styles and their update support during export.
索引モデルが issue の本文から書いたものです。
説明
Note: This is part of a larger initiative to overhaul the style system and the customization options in general. See #6028 to learn more.
The technical management of styles has a lot of shortcomings that have an impact both when sharing styles as well as maintaining them.
Update Support Through Protected Styles
Version 2.0 introduced the concept of tainted styles where it is possible to have the style in a semi-locked state that permitted making additions to the CSS and changes to the color scheme. This was designed with the intention to support updates by the style creator and for the most part does its job.
This “protected” mode also meant that the additional CSS of the style couldn’t be altered. This was never deemed an issue when designing this feature because of how CSS works and the ability to overrule previous styles. Users were tempted to remove this protection because it allowed them to simply rip out CSS rules they didn’t want to apply or to make some quick adjustments to the existing selectors.
Looking back, this was one of the greatest mistakes we made. Despite the lengthy (!) warning in the dialog to remove this protected mode, far too many users opted to go this route because it made things easier in the short term. This for the most part works fine as long as there are no substantial changes to the templates, but as soon as those happen, the style will slowly start to fall apart. Updating the style is no longer an option because the now tainted style has diverged from the style author’s variant versions ago thus they will eventually face a situation where they can only throw away their style, even though the author might have done a good job at maintaining it.
Key Lessons Learned
There are a few things that worked out while others have proven to be a step in the wrong direction.
- Only store changed values for the color palette.
Style authors are currently unable to make changes to individual color values. This was intended to avoid overwriting adjustments by the site owner but also meant that slight color adjustments to fix things like contrast issues were impossible. - Do not allow users to break update support.
The update support is a fundamental aspect of styles and allowing users to break it is doing them a disservice. Especially upgrades are a major blocker and a recurring source of frustration when the upgrade appears to break their style, although this could have been avoided. - The export of a style must be complete.
The style export was designed with the idea of sharing it with others but not to preserve the style as-is. The export must support both use cases so that users can export their modified style while preserving the update support.
Unsolved Questions
- How do we want to preserve the update support when exporting a style? The update support currently relies on two different components: The package itself and the style carrying an identifier. Exporting a style cannot magically export the package if the user is not the package owner.
Wild idea: Treat styles like packages, allow them to be distributed via the package servers. Bonus points for making it impossible to artificially tie a style to a plugin. - Should we make it possible to intentionally break the update support? A possible candidate would be an extra flag in the style export that only exist in debug mode with enabled developer tools.
- How should the properties of a style be stored to allow it to be preserved as-is alongside the user modifications?
- 主要言語
- PHP
- スター
- 248
- フォーク
- 147
- 平均マージ
- 17分
- マージ済み PR(30日)
- 21
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
WoltLab/WCF のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 58/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
WoltLab/WCF#6771 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
HE-Arc/le-panier-du-coin#49 ·
メンテナーはふだん 1 日以内に返信
-
15.0
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
bug: juros do parcelamento travados em 1x no gateway Rede Débito e Crédito 3DS (woo-rede 5.6.0)オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
LinkNacional/woo-rede#367 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Lazyload SVG placeholder runs uncached attachment lookups with JSON-escaped URLs on REST responsesオープンcustomer report
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Codeinwp/optimole-wp#1253 ·
メンテナーはふだん 1 日以内に返信