Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Refactor to support dynamic sections #493

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mathiasschopmans
Copy link
Contributor

@mathiasschopmans mathiasschopmans commented Jan 28, 2025

Refactor the src/components/Radar/* components and the scripts/buildData.ts together with scripts/positioner.ts to support more than 4 quadrants, now renamed to sections, and dynamically support 1 to 6 sections.

  • Configuration Changes

    • Rename "quadrants" to "sections" in data/config.default.json.
    • Update the "sections" array to support 1 to 6 sections.
  • Script Changes

    • Update scripts/buildData.ts to dynamically handle sections based on the configuration.
    • Update scripts/positioner.ts to dynamically calculate start angles for up to 6 sections.
  • Component Changes

    • Update src/components/Radar/Chart.tsx to dynamically calculate start angles for up to 6 sections.
    • Update src/components/Radar/Label.tsx and src/components/Radar/Legend.tsx to dynamically handle up to 6 sections.
  • Library Changes

    • Update src/lib/data.ts to return sections instead of quadrants.
  • Documentation Changes

    • Add a migration section in README.md and mention the new dynamic sections.

For more details, open the Copilot Workspace session.

Refactor the `src/components/Radar/*` components and the `scripts/buildData.ts` together with `scripts/positioner.ts` to support more than 4 quadrants, now renamed to sections, and dynamically support 1 to 6 sections.

* **Configuration Changes**
  - Rename "quadrants" to "sections" in `data/config.default.json`.
  - Update the "sections" array to support 1 to 6 sections.

* **Script Changes**
  - Update `scripts/buildData.ts` to dynamically handle sections based on the configuration.
  - Update `scripts/positioner.ts` to dynamically calculate start angles for up to 6 sections.

* **Component Changes**
  - Update `src/components/Radar/Chart.tsx` to dynamically calculate start angles for up to 6 sections.
  - Update `src/components/Radar/Label.tsx` and `src/components/Radar/Legend.tsx` to dynamically handle up to 6 sections.

* **Library Changes**
  - Update `src/lib/data.ts` to return sections instead of quadrants.

* **Documentation Changes**
  - Add a migration section in `README.md` and mention the new dynamic sections.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/AOEpeople/aoe_technology_radar?shareId=XXXX-XXXX-XXXX-XXXX).
@hoetmaaiers
Copy link

@mathiasschopmans I see the build is failing due some renaming not fully refactored down the lane. Was this paused because of some complexities hidden in the other components? If not I can continue the renaming and try to have all checks for this PR turn green.

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