Skip to content

refactor: create feature migration#6925

Merged
kyle-ssg merged 332 commits intomainfrom
chore/create-feature-migration-continued
Mar 25, 2026
Merged

refactor: create feature migration#6925
kyle-ssg merged 332 commits intomainfrom
chore/create-feature-migration-continued

Conversation

@kyle-ssg
Copy link
Member

@kyle-ssg kyle-ssg commented Mar 11, 2026

Thanks for submitting a PR! Please check the boxes below:

  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Migrates all tabs including the create feature modal itself to TypeScript, no type errors to do with creating / editing a feature and also reduces the feature modal by ~1200 LoC.

Migrates a few components to ES export

How did you test this code?

  • E2E was extended to cover more of the feature management process specifically for this PR
  • Created / edited features in production

kyle-ssg and others added 30 commits November 4, 2025 13:57
Co-authored-by: Zaimwa9 <wadii.zaim@flagsmith.com>
Co-authored-by: Zaimwa9 <wadii.zaim@flagsmith.com>
…ent-feature-state-view

# Conflicts:
#	frontend/web/components/modals/AssociatedSegmentOverrides.js
# Conflicts:
#	frontend/web/components/feature-summary/FeatureTags.tsx
#	frontend/web/components/pages/UserPage.tsx
…ent-feature-state-view

# Conflicts:
#	frontend/common/stores/feature-list-store.ts
#	frontend/web/components/modals/AssociatedSegmentOverrides.js
#	frontend/web/components/segments/Rule/components/RuleConditionValueInput.tsx
@kyle-ssg
Copy link
Member Author

Good spot RE those @talissoncosta. I think we need to sort this out project-wide, more things are starting to use environment.id vs api_key. We should start a convention that explicitly states environmentAPIKey rather than environmentId in the cases we're using the api_key string.

I'll take a look at tackling this in a followup PR separate to this.

Replace manual _data.get() calls and useCallback paging logic with
useGetIdentityOverridesQuery and useCreateIdentityOverrideMutation.
Permission check for edge identities now uses useHasPermission hook.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Vertically align Edit and delete buttons
- Move enabled switch to right of remote config value
- Add margin to identifier and Edit button
- Trigger FeatureListStore saved event on create/delete to refresh FeaturesPage

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Contributor

@talissoncosta talissoncosta left a comment

Choose a reason for hiding this comment

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

Looks good — all feedback addressed. The environment ID bugs in IdentityOverridesTab and SegmentOverridesTab are fixed.

Thanks so much for the hard work on it @kyle-ssg

@talissoncosta
Copy link
Contributor

talissoncosta commented Mar 24, 2026

We should start a convention that explicitly states environmentAPIKey rather than environmentId in the cases we're using the api_key string.

I'll take a look at tackling this in a followup PR separate to this.

Totally agree! Thanks for that @kyle-ssg

@kyle-ssg kyle-ssg merged commit eac3aab into main Mar 25, 2026
27 checks passed
@kyle-ssg kyle-ssg deleted the chore/create-feature-migration-continued branch March 25, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

front-end Issue related to the React Front End Dashboard refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants