Skip to content

Commit 27843b0

Browse files
etewiahclaude
andcommitted
Hide incomplete nav items and rename Site Design to Site Content
- Hide Analytics section (not yet implemented) - Hide Setup Wizard link (not yet implemented) - Hide Take a Tour button (not yet implemented) - Rename "Site Design" to "Site Content" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent cb75927 commit 27843b0

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

app/views/layouts/site_admin/_navigation.html.erb

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
</div>
169169
</div>
170170

171-
<!-- Analytics -->
171+
<%# Analytics section hidden for now
172172
<div class="px-4 mb-4">
173173
<button @click="toggle('analyticsOpen')" class="flex items-center justify-between w-full px-4 py-2 text-xs font-semibold text-gray-400 uppercase tracking-wider hover:text-gray-300 transition-colors">
174174
<span>Analytics</span>
@@ -178,21 +178,22 @@
178178
</button>
179179
180180
<div x-show="analyticsOpen" x-collapse>
181-
<%= link_to site_admin_analytics_path, id: "tour-analytics", class: "flex items-center px-4 py-2 rounded-lg hover:bg-gray-700 #{request.path.start_with?('/site_admin/analytics') ? 'bg-gray-700' : ''}" do %>
181+
link_to site_admin_analytics_path, id: "tour-analytics", class: "flex items-center px-4 py-2 rounded-lg hover:bg-gray-700 #{request.path.start_with?('/site_admin/analytics') ? 'bg-gray-700' : ''}" do
182182
<svg class="w-5 h-5 mr-3" fill="currentColor" viewBox="0 0 20 20">
183183
<path d="M2 11a1 1 0 011-1h2a1 1 0 011 1v5a1 1 0 01-1 1H3a1 1 0 01-1-1v-5zM8 7a1 1 0 011-1h2a1 1 0 011 1v9a1 1 0 01-1 1H9a1 1 0 01-1-1V7zM14 4a1 1 0 011-1h2a1 1 0 011 1v12a1 1 0 01-1 1h-2a1 1 0 01-1-1V4z"></path>
184184
</svg>
185185
<span>Analytics</span>
186-
<% end %>
186+
end
187187
188-
<%= link_to site_admin_activity_logs_path, id: "tour-activity", class: "flex items-center px-4 py-2 rounded-lg hover:bg-gray-700 #{request.path.start_with?('/site_admin/activity_logs') ? 'bg-gray-700' : ''}" do %>
188+
link_to site_admin_activity_logs_path, id: "tour-activity", class: "flex items-center px-4 py-2 rounded-lg hover:bg-gray-700 #{request.path.start_with?('/site_admin/activity_logs') ? 'bg-gray-700' : ''}" do
189189
<svg class="w-5 h-5 mr-3" fill="currentColor" viewBox="0 0 20 20">
190190
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z" clip-rule="evenodd"></path>
191191
</svg>
192192
<span>Activity Logs</span>
193-
<% end %>
193+
end
194194
</div>
195195
</div>
196+
%>
196197

197198
<!-- Settings -->
198199
<div id="tour-settings-section" class="px-4 mb-4">
@@ -277,12 +278,14 @@
277278
<span>Storage</span>
278279
<% end %>
279280

280-
<%= link_to site_admin_onboarding_path, id: "tour-onboarding", class: "flex items-center px-4 py-2 rounded-lg hover:bg-gray-700 #{request.path.start_with?('/site_admin/onboarding') ? 'bg-gray-700' : ''}" do %>
281+
<%# Setup Wizard hidden for now
282+
link_to site_admin_onboarding_path, id: "tour-onboarding", class: "flex items-center px-4 py-2 rounded-lg hover:bg-gray-700 #{request.path.start_with?('/site_admin/onboarding') ? 'bg-gray-700' : ''}" do
281283
<svg class="w-5 h-5 mr-3" fill="currentColor" viewBox="0 0 20 20">
282284
<path fill-rule="evenodd" d="M6.267 3.455a3.066 3.066 0 001.745-.723 3.066 3.066 0 013.976 0 3.066 3.066 0 001.745.723 3.066 3.066 0 012.812 2.812c.051.643.304 1.254.723 1.745a3.066 3.066 0 010 3.976 3.066 3.066 0 00-.723 1.745 3.066 3.066 0 01-2.812 2.812 3.066 3.066 0 00-1.745.723 3.066 3.066 0 01-3.976 0 3.066 3.066 0 00-1.745-.723 3.066 3.066 0 01-2.812-2.812 3.066 3.066 0 00-.723-1.745 3.066 3.066 0 010-3.976 3.066 3.066 0 00.723-1.745 3.066 3.066 0 012.812-2.812zm7.44 5.252a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"></path>
283285
</svg>
284286
<span>Setup Wizard</span>
285-
<% end %>
287+
end
288+
%>
286289

287290
<%= link_to site_admin_support_tickets_path, id: "tour-support", class: "flex items-center px-4 py-2 rounded-lg hover:bg-gray-700 #{request.path.start_with?('/site_admin/support_tickets') ? 'bg-gray-700' : ''}" do %>
288291
<svg class="w-5 h-5 mr-3" fill="currentColor" viewBox="0 0 20 20">
@@ -293,10 +296,10 @@
293296
</div>
294297
</div>
295298

296-
<!-- Site Design -->
299+
<!-- Site Content -->
297300
<div id="tour-site-design-section" class="px-4 mb-4">
298301
<button @click="toggle('siteDesignOpen')" class="flex items-center justify-between w-full px-4 py-2 text-xs font-semibold text-gray-400 uppercase tracking-wider hover:text-gray-300 transition-colors">
299-
<span>Site Design</span>
302+
<span>Site Content</span>
300303
<svg class="w-4 h-4 transition-transform duration-200" :class="siteDesignOpen ? 'rotate-0' : '-rotate-90'" fill="currentColor" viewBox="0 0 20 20">
301304
<path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd"></path>
302305
</svg>
@@ -358,7 +361,7 @@
358361
</div>
359362
</div>
360363

361-
<!-- Take a Tour Button -->
364+
<%# Take a Tour Button - hidden for now
362365
<div class="px-4 mt-4 pt-4 border-t border-gray-700">
363366
<button id="start-tour-btn" class="flex items-center w-full px-4 py-2 rounded-lg text-blue-400 hover:bg-gray-700 hover:text-blue-300 transition-colors">
364367
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
@@ -367,6 +370,7 @@
367370
<span>Take a Tour</span>
368371
</button>
369372
</div>
373+
%>
370374
</nav>
371375
</div>
372376
</aside>

0 commit comments

Comments
 (0)