Skip to content

Commit 6ff08b5

Browse files
committed
cleanup, fix some links
1 parent d6c0357 commit 6ff08b5

File tree

9 files changed

+26
-375
lines changed

9 files changed

+26
-375
lines changed

CLAUDE.md

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -218,24 +218,16 @@ make logs HOST=your-droplet-ip
218218

219219
## Feature Flags
220220

221-
Access at `/admin/feature_flags` when logged in as admin.
222-
223-
### Stream Features
224-
- `analytics` - Advanced analytics
225-
- `bulk_import` - Bulk data import
226-
- `export` - Data export
227-
- `webhooks` - Webhook notifications
228-
229-
### User Features
230-
- `two_factor_auth` - 2FA support
231-
- `api_keys` - API key management
232-
- `activity_log` - Audit logging
233-
234-
### System Features
235-
- `maintenance_mode` - Maintenance page
236-
- `real_time_notifications` - Live alerts
237-
- `ai_stream_recommendations` - AI features
238-
- `collaborative_playlists` - Playlist sharing
221+
Access Flipper UI at `/admin/flipper` when logged in as admin (opens in new tab from sidebar).
222+
223+
### Active Feature Flags
224+
- `stream_analytics` - Advanced analytics for streams
225+
- `stream_bulk_import` - Bulk importing of streams (enabled for editors)
226+
- `stream_export` - Data export functionality
227+
- `stream_tags` - Tagging system for streams (enabled for admins)
228+
- `advanced_search` - Enhanced search functionality (enabled by default)
229+
- `maintenance_mode` - Application maintenance mode (disabled by default)
230+
- `location_validation` - Validate stream locations against known cities
239231

240232
## API Quick Reference
241233

app/controllers/admin/feature_flags_controller.rb

Lines changed: 0 additions & 61 deletions
This file was deleted.

app/views/admin/feature_flags/index.html.erb

Lines changed: 0 additions & 101 deletions
This file was deleted.

app/views/layouts/admin.html.erb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,14 @@
6969
<% end %>
7070
</li>
7171
<li>
72-
<%= link_to admin_feature_flags_path, class: "flex items-center px-3 py-2 rounded hover:bg-gray-800 transition #{'bg-gray-800' if controller_name == 'feature_flags'}" do %>
72+
<%= link_to "/admin/flipper", target: "_blank", rel: "noopener", class: "flex items-center px-3 py-2 rounded hover:bg-gray-800 transition" do %>
7373
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
7474
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 21v-4m0 0V5a2 2 0 012-2h6.5l1 1H21l-3 6 3 6h-8.5l-1-1H5a2 2 0 00-2 2zm9-13.5V9"></path>
7575
</svg>
7676
Feature Flags
77+
<svg class="w-4 h-4 ml-auto" fill="none" stroke="currentColor" viewBox="0 0 24 24">
78+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path>
79+
</svg>
7780
<% end %>
7881
</li>
7982
</ul>
@@ -149,11 +152,14 @@
149152
<% end %>
150153
</li>
151154
<li>
152-
<%= link_to admin_feature_flags_path, class: "flex items-center px-3 py-2 rounded hover:bg-gray-800 transition #{'bg-gray-800' if controller_name == 'feature_flags'}" do %>
155+
<%= link_to "/admin/flipper", target: "_blank", rel: "noopener", class: "flex items-center px-3 py-2 rounded hover:bg-gray-800 transition" do %>
153156
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
154157
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 21v-4m0 0V5a2 2 0 012-2h6.5l1 1H21l-3 6 3 6h-8.5l-1-1H5a2 2 0 00-2 2zm9-13.5V9"></path>
155158
</svg>
156159
Feature Flags
160+
<svg class="w-4 h-4 ml-auto" fill="none" stroke="currentColor" viewBox="0 0 24 24">
161+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path>
162+
</svg>
157163
<% end %>
158164
</li>
159165
</ul>

config/application_constants.rb

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -74,33 +74,15 @@ module Messages
7474

7575
# Feature Flags
7676
module Features
77-
# Stream features
77+
# Stream features (actively used)
7878
STREAM_ANALYTICS = :stream_analytics
7979
STREAM_BULK_IMPORT = :stream_bulk_import
8080
STREAM_EXPORT = :stream_export
81-
STREAM_WEBHOOKS = :stream_webhooks
8281
STREAM_TAGS = :stream_tags
83-
STREAM_SCHEDULING = :stream_scheduling
8482

85-
# User features
86-
USER_PROFILE_CUSTOMIZATION = :user_profile_customization
87-
USER_TWO_FACTOR_AUTH = :user_two_factor_auth
88-
USER_API_KEYS = :user_api_keys
89-
USER_ACTIVITY_LOG = :user_activity_log
90-
91-
# API features
92-
API_GRAPHQL = :api_graphql
93-
API_WEBSOCKETS = :api_websockets
94-
API_V2 = :api_v2
95-
96-
# System features
83+
# System features (actively used)
9784
ADVANCED_SEARCH = :advanced_search
98-
REAL_TIME_NOTIFICATIONS = :real_time_notifications
9985
MAINTENANCE_MODE = :maintenance_mode
10086
LOCATION_VALIDATION = :location_validation
101-
102-
# Experimental features
103-
AI_STREAM_RECOMMENDATIONS = :ai_stream_recommendations
104-
COLLABORATIVE_PLAYLISTS = :collaborative_playlists
10587
end
10688
end

config/routes.rb

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,6 @@
7878
patch "users/:id/toggle_admin", to: "users#toggle_admin", as: "toggle_admin_user"
7979
resources :users, only: %i[index show create update destroy]
8080

81-
resources :feature_flags, only: [:index] do
82-
member do
83-
patch :update
84-
end
85-
end
86-
8781
# Timestamps routes
8882
resources :timestamps, only: %i[index show new edit create update destroy] do
8983
member do
@@ -93,10 +87,8 @@
9387
end
9488
end
9589

96-
# Define locations routes with new and edit
97-
get "locations/new", to: "locations#new", as: "new_location"
98-
get "locations/:id/edit", to: "locations#edit", as: "edit_location"
99-
resources :locations, only: %i[index show create update destroy]
90+
# Locations
91+
resources :locations, only: %i[index show new edit create update destroy]
10092

10193
root to: "streams#index"
10294
end

db/seeds/feature_flags.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@
1818
Flipper.enable_group(ApplicationConstants::Features::STREAM_TAGS, :admins)
1919
Rails.logger.debug "Enabled STREAM_TAGS for admins group"
2020

21-
# Enable for percentage of actors
22-
Flipper.enable_percentage_of_actors(ApplicationConstants::Features::AI_STREAM_RECOMMENDATIONS, 10)
23-
Rails.logger.debug "Enabled AI_STREAM_RECOMMENDATIONS for 10% of users"
21+
# All used feature flags are set above - no experimental features enabled
2422

2523
# Disable maintenance mode by default
2624
Flipper.disable(ApplicationConstants::Features::MAINTENANCE_MODE)

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
POSTGRES_PASSWORD: streamsource_password
99
POSTGRES_DB: streamsource_development
1010
ports:
11-
- "5432:5432"
11+
- "5433:5432"
1212
healthcheck:
1313
test: ["CMD-SHELL", "pg_isready -U streamsource -d streamsource_development"]
1414
interval: 5s
@@ -18,7 +18,7 @@ services:
1818
redis:
1919
image: redis:7-alpine
2020
ports:
21-
- "6379:6379"
21+
- "6380:6379"
2222
healthcheck:
2323
test: ["CMD", "redis-cli", "ping"]
2424
interval: 5s
@@ -32,7 +32,7 @@ services:
3232
- .:/rails:cached
3333
- bundle_cache:/usr/local/bundle
3434
ports:
35-
- "3000:3000"
35+
- "3001:3000"
3636
depends_on:
3737
db:
3838
condition: service_healthy

0 commit comments

Comments
 (0)