-
Notifications
You must be signed in to change notification settings - Fork 1
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 style app #414
Upgrade style app #414
Conversation
JuanVqz
commented
Aug 25, 2023
- Remove bulma and sprockets config
- Replace js and style tag helpers
- Add ViteRails, trix editor, fontawesome
- Disable specs temporarily
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 7830 lines exceeds the maximum allowed for the inline comments feature.
7637b5e
to
5ad6db1
Compare
- [x] Remove simple_form bulma, and update simple_form initializer
5ad6db1
to
4920b02
Compare
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 9694 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 9825 lines exceeds the maximum allowed for the inline comments feature.
Big thanks to https://flowbite.com gh repo clone themesberg/flowbite-admin-dashboard Links: - https://github.com/themesberg/flowbite - https://tailwindcss.com/
0cbb10d
to
4801a48
Compare
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 9845 lines exceeds the maximum allowed for the inline comments feature.
Big thanks to https://flowbite.com gh repo clone themesberg/flowbite-admin-dashboard Links: - https://github.com/themesberg/flowbite - https://tailwindcss.com/
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 10971 lines exceeds the maximum allowed for the inline comments feature.
I'll remove duplication
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 13957 lines exceeds the maximum allowed for the inline comments feature.
* Use Node.js v20 * Update Node.js CI
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 14411 lines exceeds the maximum allowed for the inline comments feature.
* Install stimulus * Add mi frist stimulus controller: resize_field_controller I hope I did a good pattern here
```ruby NoMethodError: undefined method `feature' for RSpec::ExampleGroups::MedicalConsultationsFlow:Class ./spec/system/appoinments_spec.rb:8:in `block in <top (required)>' ./spec/system/appoinments_spec.rb:3:in `<top (required)>' ```
ebc4ace
to
823ec0c
Compare
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 14503 lines exceeds the maximum allowed for the inline comments feature.
* Some improvements * Move search.js to focus field stimulus controller
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 14517 lines exceeds the maximum allowed for the inline comments feature.
I'm really enjoying working with Stimulus. It's a great way to add interactivity to a Rails app without having to write a lot of custom 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.
The PR diff size of 14518 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 14537 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 14537 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 14570 lines exceeds the maximum allowed for the inline comments feature.
We should include multiple: true when is a has many relationship = f.input :files, input_html: { multiple: true }
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 14589 lines exceeds the maximum allowed for the inline comments feature.
* Update i18n views * hospitalizations * update patient_referral * Updapte i18n referred_doctor
Fix months later but today is the day that will merge at the end of the day, flag day was magically chosen 😅 |
@@ -1,6 +1,6 @@ | |||
class Bento < ApplicationRecord | |||
belongs_to :patient | |||
|
|||
validates :code, presence: true | |||
validates :code, :patient, presence: true |
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.
Remove model
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.
And remove table
@@ -1,7 +1,6 @@ | |||
class Doctor < User | |||
belongs_to :hospital | |||
has_and_belongs_to_many :patients, join_table: "doctors_patients" | |||
has_many :medical_consultations |
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.
Remove table
%table.table.is-hoverable.is-fullwidth | ||
%thead.is-uppercase | ||
= render 'shared/section' do | ||
%div.flex.flex-col.md:flex-row.md:justify-between |
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.
%div.flex.flex-col.md:flex-row.md:justify-between | |
.flex.flex-col.md:flex-row.md:justify-between |
app/views/hospitals/_form.html.haml
Outdated
@@ -27,6 +27,6 @@ | |||
.buttons | |||
= link_to :back, class: "button is-link" do | |||
%span.icon | |||
%i.fa.fa-arrow-left | |||
%span.fa.fa-arrow-left | |||
%span Regresar |
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.
Will update it to use i18n
app/views/hospitals/edit.html.haml
Outdated
%span.is-uppercase Actualizar presentación de la página | ||
= render "shared/section" do | ||
%div.flex.flex-col.md:flex-row.md:justify-between | ||
= link_to "Regresar", :patients |
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.
Add I18n
#navMenu.navbar-menu | ||
.navbar-end | ||
%nav.fixed.z-30.w-full.border-b.border-gray-300.dark:border-gray-700.bg-gray-100.dark:bg-gray-800 | ||
%div.px-3.py-3.lg:px-5.lg:pl-3 |
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.
%div.px-3.py-3.lg:px-5.lg:pl-3 | |
.px-3.py-3.lg:px-5.lg:pl-3 |
%i.fa.fa-plus | ||
%span Registrar Referencia de Paciente | ||
= render 'shared/section' do | ||
%div.flex.flex-col.md:flex-row.md:justify-between |
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.
%div.flex.flex-col.md:flex-row.md:justify-between | |
.flex.flex-col.md:flex-row.md:justify-between |
.column.is-4 | ||
%strong= t("activerecord.attributes.patient.other_background") | ||
%p= @patient.other_background | ||
= render "shared/title", title: t('.title') |
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.
is this view used?
= render "shared/title", title: t('.title') | |
= render 'shared/title', title: t('.title') |
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.
yes, it is used.
app/views/patients/index.html.haml
Outdated
%table.table.is-hoverable.is-fullwidth | ||
%thead.is-uppercase | ||
= render 'shared/section' do | ||
%div.flex.flex-col.md:flex-row.md:justify-between |
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.
%div.flex.flex-col.md:flex-row.md:justify-between | |
.flex.flex-col.md:flex-row.md:justify-between |
%i.fa.fa-plus | ||
%span Registrar Doctor | ||
= render 'shared/section' do | ||
%div.flex.flex-col.md:flex-row.md:justify-between |
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.
%div.flex.flex-col.md:flex-row.md:justify-between | |
.flex.flex-col.md:flex-row.md:justify-between |
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 14780 lines exceeds the maximum allowed for the inline comments feature.
Code Climate has analyzed commit 3443a98 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 90.3% (1.0% change). View more on Code Climate. |