Skip to content

Commit 39e3803

Browse files
Cleanup vestigal flex references (#206)
## Changes Cleanup remaining flex references after verifying downstream apps work with latest rename
1 parent b55822e commit 39e3803

24 files changed

Lines changed: 40 additions & 255 deletions

.github/copilot-instructions.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Copilot Agent Instructions for Flex SDK
1+
# Copilot Agent Instructions for Strata SDK
22

33
## Repository Overview
44

5-
This repository contains the Flex SDK, a Ruby on Rails engine designed to help create intuitive, accessible, and effective digital-native government services. The SDK provides components for:
5+
This repository contains the Strata SDK, a Ruby on Rails engine designed to help create intuitive, accessible, and effective digital-native government services. The SDK provides components for:
66

77
- Multi-page intake application forms
88
- Case management workflows
@@ -17,9 +17,9 @@ This repository contains the Flex SDK, a Ruby on Rails engine designed to help c
1717
- **Project Type**: Ruby Gem/Rails Engine
1818
- **Key Dependencies**:
1919
- validates_timeliness
20-
- Version can be found in `flex.gemspec`
20+
- Version can be found in `strata.gemspec`
2121
- Rails
22-
- Version can be found in `flex.gemspec`
22+
- Version can be found in `strata.gemspec`
2323

2424
## Build and Test Instructions
2525

@@ -70,18 +70,18 @@ make test-watch # Watch mode for development
7070

7171
### Key Directories
7272

73-
- `/app`: Core Flex engine application code
74-
- `/app/controllers/flex`: Controllers for tasks and staff
75-
- `/app/models/flex`: Data models
76-
- `/app/views/flex`: View templates
77-
- `/app/helpers/flex`: Helper methods
78-
- `/config`: Flex engine configuration files
73+
- `/app`: Core Strata engine application code
74+
- `/app/controllers/strata`: Controllers for tasks and staff
75+
- `/app/models/strata`: Data models
76+
- `/app/views/strata`: View templates
77+
- `/app/helpers/strata`: Helper methods
78+
- `/config`: Strata engine configuration files
7979
- `/config/routes.rb`: Route definitions
8080
- `/config/initializers`: Rails initializers
81-
- `/db/migrate`: Flex engine database migrations
82-
- `/lib/flex`: Core Flex engine configuration code
81+
- `/db/migrate`: Strata engine database migrations
82+
- `/lib/strata`: Core Strata engine configuration code
8383
- `/spec`: Test files
84-
- `/spec/dummy`: Test application that's used to test the Flex engine
84+
- `/spec/dummy`: Test application that's used to test the Strata engine
8585

8686
### Important Files
8787

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to Flex SDK
1+
# Contributing to Strata SDK
22

33
## 💻 Getting started with local development
44

@@ -15,7 +15,7 @@ Run setup. This will:
1515

1616
1. Install dependencies
1717
2. Create a `.env` file in the dummy app (`./spec/dummy/.env`) based on the template at `./spec/dummy/local.env.example`
18-
3. Create the database for working locally with Flex
18+
3. Create the database for working locally with Strata
1919

2020
```bash
2121
make setup

app/assets/config/flex_manifest.js

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
//= link_directory ../stylesheets/strata .css
File renamed without changes.

app/helpers/strata/cases_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Strata
2-
# CasesHelper provides view helpers for working with Flex::Case objects.
2+
# CasesHelper provides view helpers for working with Strata::Case objects.
33
# This module is used in views to render case-related UI components.
44
#
55
module CasesHelper

app/helpers/strata/event_manager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module Strata
33
# It allows components to communicate with each other asynchronously
44
# through event publishing and subscription.
55
#
6-
# This class is used throughout the Flex SDK for handling transitions
6+
# This class is used throughout the Strata SDK for handling transitions
77
# between workflow steps and notifying components of state changes.
88
#
99
# @example Publishing an event

app/lib/strata/attributes.rb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,12 @@ module Attributes
3030

3131
# Helper method. Given a type, return the corresponding class in the Strata module.
3232
# If the class is not found in the Strata module, it will try to find it
33-
# in the Flex module, then in the global namespace.
33+
# in the Strata module, then in the global namespace.
3434
def self.resolve_class(type)
3535
begin
3636
"Strata::#{type.to_s.camelize}".constantize
3737
rescue NameError
38-
begin
39-
"Flex::#{type.to_s.camelize}".constantize
40-
rescue NameError
41-
type.to_s.camelize.constantize
42-
end
38+
type.to_s.camelize.constantize
4339
end
4440
end
4541

app/lib/strata/attributes/address_attribute.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
module Strata
22
module Attributes
33
# AddressAttribute provides a DSL for defining address attributes in form models.
4-
# It sets up a composed_of relationship with the Flex::Address value object
4+
# It sets up a composed_of relationship with the Strata::Address value object
55
# to map street_line_1, street_line_2, city, state, and zip_code fields
66
# to a single address value object attribute.
77
#
88
# @example Adding an address attribute to a form model
9-
# class MyForm < Flex::ApplicationForm
9+
# class MyForm < Strata::ApplicationForm
1010
# include Strata::Attributes::AddressAttribute
1111
# address_attribute :mailing_address
1212
# end

0 commit comments

Comments
 (0)