Skip to content

Instantly share code, notes, and snippets.

View dedemenezes's full-sized avatar

André Menezes dedemenezes

View GitHub Profile
diff --git a/app/controllers/programs_controller.rb b/app/controllers/programs_controller.rb
index c26bb81..c6cd6e0 100644
--- a/app/controllers/programs_controller.rb
+++ b/app/controllers/programs_controller.rb
@@ -42,31 +42,31 @@ class ProgramsController < ApplicationController
selected_filters[:query] = selected_query
end
- if params[:mostrasFilter].present?
- selected_mostra = @mostras_filter.find { |c| c["permalink_pt"] == params[:mostrasFilter] }
class ProgramsController < ApplicationController
EDICAO_ATUAL = 12
# TODO: MAKE THIS ENV VARIABLE?
include BreadcrumbsHelper
DATES_PER_PAGE = 1
include Pagy::Backend
def index
items = [

diff --git a/.gitignore b/.gitignore index 9b6465f..2741f47 100644 --- a/.gitignore +++ b/.gitignore @@ -41,3 +41,4 @@ node_modules .local .env msg.md +conversation.md diff --git a/.lefthook.yml b/.lefthook.yml

class ProgramsController < ApplicationController
EDICAO_ATUAL = 12
# TODO: MAKE THIS ENV VARIABLE?
include BreadcrumbsHelper
DATES_PER_PAGE = 1
include Pagy::Backend
def index
items = [
<script setup>
import { ButtonText, BaseButton } from "@/components/common/buttons";
const emit = defineEmits(["clear", "apply"]);
const props = defineProps({
hasActiveFilters: { type: Boolean, default: false },
});
</script>
<template>
<script setup>
console.log('ProgramPage.vue mounted/rendered');
// TODO: CHANGE TEXT WHEN NO RESULT FOR FILTERING
// TODO: FIX LIMPAR FILTRO
// TODO: Click cleansearchbar should close mobile filter menu?
// TODO: Click cleansearchbar should make new request to remove query param
import { ref, watch } from "vue";
import { router } from "@inertiajs/vue3"
import { IconProgram, IconClock, IconChange, IconNewUser } from "@components/common/icons";
<script setup>
// TODO: CHANGE TEXT WHEN NO RESULT FOR FILTERING
// TODO: FIX LIMPAR FILTRO
// TODO: Click cleansearchbar should close mobile filter menu?
// TODO: Click cleansearchbar should make new request to remove query param
import { ref } from "vue";
import { router } from "@inertiajs/vue3"
import { IconProgram, IconClock, IconChange, IconNewUser } from "@components/common/icons";
# Programs controller i generate the filter options
# Gathering filter options
paises_filter   = base_scope.includes(pelicula: :paises)
                            .map { _1.pelicula.paises }
                            .flatten
                            .uniq
                            .sort_by { |it| it.nome_pais }
                            .as_json(only: %i[id nome_pais])

Examples:

  • Wott
    • A user uploads a coding challenge
    • Then chats with AI to help them solve coding challenges@c
  • Travel Assistant
    • User enters their trip destination + dates.
    • Then chats with AI to suggest a daily itinerary, restaurants, activities, and transport tips.
  • Book Recommendation
  • A user saves their book readings
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index 50e8193..028a8a6 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -1,9 +1,11 @@
# Task
+
<!-- Please add link(s) to Jira task(s) related to this PR -->
A link to a task in Jira or an issus on Github