Skip to content

Conversation

divyanshub024
Copy link
Member

@divyanshub024 divyanshub024 commented Sep 23, 2025

Description

Remove unused stac_input_border, stac switch and stac_radio widgets, along with their gen files

Related Issues

Closes #

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Code refactor
  • Build configuration change
  • Documentation
  • Chore

Summary by CodeRabbit

  • Refactor

    • Removed support for Radio and Switch widgets and input border customization from UI configuration.
    • Config/JSON entries for these components are no longer recognized; affected elements will not render. Update layouts and themes accordingly.
  • Chores

    • Removed associated generated code and serialization tied to the deprecated components.

Copy link

coderabbitai bot commented Sep 23, 2025

Walkthrough

This PR removes three parser/model features—StacInputBorder, StacRadio, and StacSwitch—along with all associated Freezed and JSON serialization code. The deletions eliminate enums, data classes, parsing extensions, and generated artifacts across their respective directories.

Changes

Cohort / File(s) Summary
InputBorder model removal
packages/stac/lib/src/parsers/widgets/stac_input_border/stac_input_border.dart, .../stac_input_border.freezed.dart, .../stac_input_border.g.dart
Deleted StacInputBorder enum, data class, parser extension, and all generated Freezed/JSON code.
Radio model removal
packages/stac/lib/src/parsers/widgets/stac_radio/stac_radio.dart, .../stac_radio.freezed.dart, .../stac_radio.g.dart
Deleted StacRadio enum, data class, and all generated Freezed/JSON code.
Switch model removal
packages/stac/lib/src/parsers/widgets/stac_switch/stac_switch.dart, .../stac_switch.freezed.dart, .../stac_switch.g.dart
Deleted StacSwitch enum, data class, and all generated Freezed/JSON code.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • Potatomonsta

Poem

I nibbled the code with tidy delight,
Snipped borders, radios, switches from sight.
Less thicket to hop, more paths to roam,
A cleaner meadow for widgets to call home.
Thump-thump—PR merged, carrot-bright! 🥕🐇

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title Check ✅ Passed The pull request title "refactor: Remove unused files" concisely and accurately summarizes the primary intent of the changeset — removing unused widget parser files and their generated artifacts (e.g., stac_input_border, stac_radio, stac_switch) — and uses a conventional commit prefix that clarifies intent for reviewers.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dv/remove-unused-files

Comment @coderabbitai help to get the list of available commands and usage tips.

@divyanshub024 divyanshub024 merged commit d0edc48 into dev Sep 23, 2025
5 checks passed
@divyanshub024 divyanshub024 deleted the dv/remove-unused-files branch September 23, 2025 13:52
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