Skip to content

feat: career_pages feature flag in inertia footer and nav#3585

Closed
alina-alyy wants to merge 3 commits intoantiwork:mainfrom
alina-alyy:fix-career-link-footer
Closed

feat: career_pages feature flag in inertia footer and nav#3585
alina-alyy wants to merge 3 commits intoantiwork:mainfrom
alina-alyy:fix-career-link-footer

Conversation

@alina-alyy
Copy link
Contributor

@alina-alyy alina-alyy commented Feb 14, 2026

Issue: #3561

Description

Problem

The Careers link was missing from the React footer because the career_pages feature flag wasn't passed from Rails or defined in the React context.

Solution

Exposed the career_pages flag in react_on_rails.rb and the React FeatureFlags context, then updated the React footer to conditionally render the Careers link based on that flag.


Before/After

Before

image

After

Fixed conditionally rendering for career_pages feature flag in both Nav and Footer

image

Test Results

bundle exec rspec spec/config/rendering_extension_spec.rb

image

Checklist


AI Disclosure

Used Claude Opus 4.6 for debugging


export const HomeFooter = () => (
export const HomeFooter = () => {
const { career_pages } = useFeatureFlags();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using useFeatureFlags() hook instead of manually passing prop to keep things consistent

Comment on lines +40 to +41
disable_stripe_signup: false,
career_pages: false
Copy link
Contributor Author

@alina-alyy alina-alyy Feb 14, 2026

Choose a reason for hiding this comment

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

Updated test to ensure the career_pages is correctly included in the shared context.

feature_flags: {
require_email_typo_acknowledgment: Feature.active?(:require_email_typo_acknowledgment),
disable_stripe_signup: Feature.active?(:disable_stripe_signup),
career_pages: Feature.active?(:career_pages),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the rendering extension to pass the backend feature flag status to the frontend.

<FooterLink href={Routes.pricing_path()}>Pricing</FooterLink>
<FooterLink href={Routes.features_path()}>Features</FooterLink>
<FooterLink href={Routes.about_path()}>About</FooterLink>
{career_pages && <FooterLink href={Routes.careers_path()}>Careers</FooterLink>}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Conditionally rendering the careers page to match original ERB implementation

@4arjun
Copy link
Contributor

4arjun commented Feb 14, 2026

The issue exist in the NAV as well.
Screenshot 2026-02-14 at 7 24 34 PM

{ href: Routes.pricing_path(), label: "Pricing" },
{ href: Routes.features_path(), label: "Features" },
{ href: Routes.about_path(), label: "About" },
...(career_pages ? [{ href: Routes.careers_path(), label: "Careers" }] : []),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@alina-alyy alina-alyy changed the title feat: career_pages feature flag in inertia footer feat: career_pages feature flag in inertia footer and nav Feb 14, 2026
@slavingia
Copy link
Contributor

Thanks for the contribution! The issue this PR is linked to still has a "planning" label, which means it's still being scoped by our team and isn't ready for a PR yet. We're closing this for now — please find an open issue without a "planning" label and we'd love your help there. We appreciate it!

@slavingia slavingia closed this Feb 19, 2026
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.

3 participants