-
-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Avo 3 #2044
Upgrade to Avo 3 #2044
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 26416 lines exceeds the maximum allowed for the inline comments feature.
Code Climate has analyzed commit 195ca1a and detected 34 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
@@ -1,8 +1,8 @@ | |||
# frozen_string_literal: true | |||
|
|||
class Avo::Fields::BelongsToField::EditComponent < Avo::Fields::EditComponent | |||
def initialize(**args) | |||
super(**args) | |||
def initialize(...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[rubocop] reported by reviewdog 🐶
Lint/Syntax: unexpected token tDOT3
end | ||
end | ||
|
||
def singular_name | ||
name | ||
def hydrate(...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[rubocop] reported by reviewdog 🐶
Lint/Syntax: unexpected token tDOT3
class << self | ||
def encrypt(message:, purpose:) | ||
new(message: message, purpose: purpose).encrypt | ||
def encrypt(...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[rubocop] reported by reviewdog 🐶
Lint/Syntax: unexpected token tDOT3
end | ||
|
||
def decrypt(message:, purpose:) | ||
new(message: message, purpose: purpose).decrypt | ||
def decrypt(...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[rubocop] reported by reviewdog 🐶
Lint/Syntax: unexpected token tDOT3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 26418 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 26411 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 27049 lines exceeds the maximum allowed for the inline comments feature.
} | ||
|
||
connect() { | ||
const vm = this; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const vm = this; | ||
|
||
tippy(vm.context.element, { | ||
content: "loading...", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,15 @@ | |||
/* eslint-disable camelcase */ | |||
import { StreamActions } from '@hotwired/turbo' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [eslint] <import/no-extraneous-dependencies> reported by reviewdog 🐶
'@hotwired/turbo' should be listed in the project's dependencies. Run 'npm i -S @hotwired/turbo' to add it
|
||
// TODO: move these to the avo_filters gem | ||
|
||
StreamActions.close_filters_dropdown = function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected unnamed function.
document.querySelector('.filters-dropdown-selector').classList.add('hidden') | ||
} | ||
|
||
StreamActions.open_filter = function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected unnamed function.
'./app/views/**/*.html.erb', | ||
'./app/helpers/**/*.rb', | ||
'./app/javascript/**/*.js', | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [eslint] <comma-dangle> reported by reviewdog 🐶
Missing trailing comma.
] | |
], |
850: '#232629', | ||
900: '#17191C', | ||
} | ||
const preset = require('./tailwind.preset.js') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [eslint] <import/extensions> reported by reviewdog 🐶
Unexpected use of file extension "js" for "./tailwind.preset.js"
const defaultTheme = require('tailwindcss/defaultTheme') | ||
|
||
const { primary, blue, gray } = require('./tailwind.custom') | ||
const avoPath = require('child_process').execSync('bundle show avo', { encoding: 'utf-8' }).trim() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [eslint] <import/order> reported by reviewdog 🐶child_process
import should occur before import of ./tailwind.custom
cursor: ['responsive', 'disabled'], | ||
}, | ||
plugins: [ | ||
require('@tailwindcss/forms'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [eslint] <global-require> reported by reviewdog 🐶
Unexpected require().
}, | ||
plugins: [ | ||
require('@tailwindcss/forms'), | ||
require('@tailwindcss/typography'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [eslint] <global-require> reported by reviewdog 🐶
Unexpected require().
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 27049 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 27053 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 27066 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 27118 lines exceeds the maximum allowed for the inline comments feature.
This PR has been merged into Please check the release guide for more information. |
Description
The big PR. The upgrade to Avo 3.
Avo 2 to Avo 3 upgrade guide.
Checklist:
Manual review steps
bin/dev
Manual reviewer: please leave a comment with output from the test if that's the case.