- Cria modelo LeadClick para registrar cliques das landing pages - Cria modelo LandingHost para mapear hostname → inbox_id - Endpoint público POST /track/click para receber eventos de clique - Leads::AttributionMatcherService para correlacionar clique com conversa - Integração com IncomingMessageWuzapiService para atribuição automática - API REST para gerenciar LandingHosts por inbox (index/create/destroy) - UI: nova aba 'Landing Pages' nas configurações da caixa de entrada - Dashboard API client dedicado (landingHosts.js) - RuboCop: refatora shift_signature_name, TrackingController, AttributionMatcherService e WuzapiService
16 lines
508 B
Ruby
16 lines
508 B
Ruby
require 'rails_helper'
|
|
|
|
# Specs in this file have access to a helper object that includes
|
|
# the Api::V1::Accounts::LandingHostsHelper. For example:
|
|
#
|
|
# describe Api::V1::Accounts::LandingHostsHelper do
|
|
# describe "string concat" do
|
|
# it "concats two strings with spaces" do
|
|
# expect(helper.concat_strings("this","that")).to eq("this that")
|
|
# end
|
|
# end
|
|
# end
|
|
RSpec.describe Api::V1::Accounts::LandingHostsHelper, type: :helper do
|
|
pending "add some examples to (or delete) #{__FILE__}"
|
|
end
|