Skip to content

Commit 28ffdcf

Browse files
RenzoMinelliclaude
andcommitted
feat: add graph navigation links in menu and planner
- Add "Grafo de Dependencias" to the drawer menu (first 9 semesters) - Add graph icon link in the planner header Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 944866b commit 28ffdcf

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

app/views/shared/_menu.html.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
<%= drawer_menu_navigation_item "Todas las Materias", all_subjects_path %>
77

8+
<%= drawer_menu_navigation_item "Grafo de Dependencias", subjects_graph_path(categories: Subject::CATEGORIES.first(9)) %>
9+
810
<%= drawer_menu_navigation_item "Materias dictadas en este semestre", current_semester_subjects_path %>
911

1012
<%= drawer_menu_navigation_item "Planificador", subject_plans_path %>

app/views/subject_plans/index.html.erb

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<% content_for :welcome_banner do %>
2-
<%= render 'shared/banner',
3-
banner_type: 'planner',
2+
<%= render 'shared/banner',
3+
banner_type: 'planner',
44
message: 'Bienvenido a tu planificador de materias: arrastra, suelta y organiza tu semestre' %>
55
<% end %>
66

@@ -10,9 +10,14 @@
1010

1111
<div id="planner" class="relative pt-3 space-y-4" data-controller="planner-loading">
1212
<div class="flex items-center justify-between h-10 mb-3">
13-
<h3 class="text-lg font-bold ml-4">
14-
Planificador
15-
</h3>
13+
<div class="flex items-center gap-2 ml-4">
14+
<h3 class="text-lg font-bold">
15+
Planificador
16+
</h3>
17+
<%= link_to planner_graph_path, class: "text-gray-500 hover:text-primary", title: "Ver grafo de dependencias" do %>
18+
<%= material_icon("account_tree", class: "text-xl") %>
19+
<% end %>
20+
</div>
1621
<%= render partial: "credits_counter", locals: { planned_subjects: @planned_subjects } %>
1722
</div>
1823

0 commit comments

Comments
 (0)