Copy the Chatwoot (v4.14.0) frontend runnable subset into frontend/ for customization: - app/javascript/ (Vue SPA: dashboard, widget, sdk, portal, superadmin) - app/views/ (ERB templates for vite-plugin-ruby entrypoint resolution) - app/helpers/, app/assets/ (Rails view helpers, static assets) - enterprise/ (Enterprise edition frontend overlay) - config/vite.json, vite.config.ts, bin/vite (Vite-Rails toolchain) - package.json, pnpm-lock.yaml, tailwind/postcss/eslint configs - Gemfile, Gemfile.lock (vite_rails gem for bin/vite binstub) Excluded Rails backend: controllers, models, services, jobs, mailers, policies, db, lib, spec, public, node_modules. Update references to the new frontend location: - .gitignore: exclude frontend build artifacts (node_modules, tmp, packs), keep frontend/bin/ and frontend/vendor/ via negation - backend/scripts/parity_frontend_smoke.sh: CHATWOOT_DIR default reference/chatwoot -> ../frontend - backend/scripts/parity_frontend_browser_smoke.mjs: same default update - AGENTS.md: add frontend section with Rails/Vite coupling notes - README: architecture tree includes frontend/
31 lines
1.8 KiB
Ruby
31 lines
1.8 KiB
Ruby
json.settings resource.settings
|
|
json.created_at resource.created_at
|
|
if resource.custom_attributes.present?
|
|
json.custom_attributes do
|
|
json.plan_name resource.custom_attributes['plan_name']
|
|
json.subscribed_quantity resource.custom_attributes['subscribed_quantity']
|
|
json.subscription_status resource.custom_attributes['subscription_status']
|
|
json.subscription_ends_on resource.custom_attributes['subscription_ends_on']
|
|
json.website resource.custom_attributes['website'] if resource.custom_attributes['website'].present?
|
|
json.industry resource.custom_attributes['industry'] if resource.custom_attributes['industry'].present?
|
|
json.company_size resource.custom_attributes['company_size'] if resource.custom_attributes['company_size'].present?
|
|
json.timezone resource.custom_attributes['timezone'] if resource.custom_attributes['timezone'].present?
|
|
json.logo resource.custom_attributes['logo'] if resource.custom_attributes['logo'].present?
|
|
json.referral_source resource.custom_attributes['referral_source'] if resource.custom_attributes['referral_source'].present?
|
|
json.brand_info resource.custom_attributes['brand_info'] if resource.custom_attributes['brand_info'].present?
|
|
json.onboarding_step resource.onboarding_step if resource.onboarding_step.present?
|
|
json.marked_for_deletion_at resource.custom_attributes['marked_for_deletion_at'] if resource.custom_attributes['marked_for_deletion_at'].present?
|
|
if resource.custom_attributes['marked_for_deletion_reason'].present?
|
|
json.marked_for_deletion_reason resource.custom_attributes['marked_for_deletion_reason']
|
|
end
|
|
end
|
|
end
|
|
json.domain @account.domain
|
|
json.features @account.enabled_features
|
|
json.id @account.id
|
|
json.locale @account.locale
|
|
json.name @account.name
|
|
json.support_email @account.support_email
|
|
json.status @account.status
|
|
json.cache_keys @account.cache_keys
|