Skip to content

Phase 1: progressive-disclosure refactor — javafx-designer (640 → 97 lines) - #22

Merged
olehsvyrydov merged 2 commits into
mainfrom
feat/refactor-javafx-designer
Jun 5, 2026
Merged

Phase 1: progressive-disclosure refactor — javafx-designer (640 → 97 lines)#22
olehsvyrydov merged 2 commits into
mainfrom
feat/refactor-javafx-designer

Conversation

@olehsvyrydov

@olehsvyrydov olehsvyrydov commented Jun 5, 2026

Copy link
Copy Markdown
Owner

What

Slice-4 refactor #17. Splits javafx-designer (640 lines) into a lean SKILL.md (97 lines) + 1 references/ file (the ~549-line Expertise block):

  • javafx-design-expertise.md — versions, JavaFX CSS vs web CSS, design-system foundation, component library, layout patterns, Scene Builder tips, accessibility checklist.

Lean SKILL.md keeps trigger, context, doc lookup, standards, checklist, anti-patterns.

Why

Same pattern as #5#21SKILL.md < ~500 lines; deep content loaded on demand.

Note — correctness fixes applied during review

The split itself is content-preserving, but during Copilot review 6 small correctness fixes were made to the (pre-existing) JavaFX content in the reference — these are deliberate corrections, not a pure relocation:

  • CSS selector comparison: JavaFX uses .class / #id (same as web); #id targets the Node id, not fx:id.
  • Removed the unsupported -fx-text-transform (note to uppercase in code/FXML instead).
  • FXML styleClass is space-separated, not comma (×2).
  • Scene Builder tip: style classes set via the styleClass list, not -fx-style-class.
  • Typo: Self-Employ → Self-Employed.

Review focus

Content preservation; coherent lean router.

…7 lines)

Move the ~549-line Expertise block into references/javafx-design-expertise.md
(CSS, design system, component library, layout patterns, Scene Builder, accessibility).
Lean SKILL.md keeps trigger, context, doc lookup, standards, checklist, anti-patterns.
Fences verified. No content lost.
Copilot AI review requested due to automatic review settings June 5, 2026 12:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Refactors the javafx-designer skill into a progressive-disclosure layout by moving the large “Expertise” section into a dedicated deep-dive reference file, keeping SKILL.md lean and focused as a router.

Changes:

  • Replaced the inlined “Expertise” block in SKILL.md with a short “Deep-dive references” pointer.
  • Added references/javafx-design-expertise.md containing the moved JavaFX design expertise material (CSS, components, layout patterns, Scene Builder, accessibility).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
claude/skills/design/javafx-designer/SKILL.md Slimmed to a router that points to deep-dive reference material.
claude/skills/design/javafx-designer/references/javafx-design-expertise.md New reference doc holding the detailed JavaFX design expertise content.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread claude/skills/design/javafx-designer/references/javafx-design-expertise.md Outdated
Comment thread claude/skills/design/javafx-designer/references/javafx-design-expertise.md Outdated
- CSS selector comparison: JavaFX uses .class/#id (same as web); #id targets the
  Node id, not fx:id.
- Remove unsupported -fx-text-transform (note to uppercase in code/FXML instead).
- FXML styleClass is space-separated, not comma (nav-item active; button primary).
- Scene Builder tip: style classes set via the styleClass list, not -fx-style-class.
- Typo: Self-Employ -> Self-Employed.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@olehsvyrydov
olehsvyrydov merged commit 41a83da into main Jun 5, 2026
2 checks passed
@olehsvyrydov
olehsvyrydov deleted the feat/refactor-javafx-designer branch June 5, 2026 12:44
olehsvyrydov added a commit that referenced this pull request Jun 6, 2026
…lines) (#22)

* Phase 1: progressive-disclosure refactor of javafx-designer (640 -> 97 lines)

Move the ~549-line Expertise block into references/javafx-design-expertise.md
(CSS, design system, component library, layout patterns, Scene Builder, accessibility).
Lean SKILL.md keeps trigger, context, doc lookup, standards, checklist, anti-patterns.
Fences verified. No content lost.

* Address Copilot review on PR #22: fix imported JavaFX CSS/FXML errors

- CSS selector comparison: JavaFX uses .class/#id (same as web); #id targets the
  Node id, not fx:id.
- Remove unsupported -fx-text-transform (note to uppercase in code/FXML instead).
- FXML styleClass is space-separated, not comma (nav-item active; button primary).
- Scene Builder tip: style classes set via the styleClass list, not -fx-style-class.
- Typo: Self-Employ -> Self-Employed.
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