Skip to content
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

Merged
merged 80 commits into from
Feb 24, 2024
Merged

Upgrade style app #414

merged 80 commits into from
Feb 24, 2024

Conversation

JuanVqz
Copy link
Owner

@JuanVqz JuanVqz commented Aug 25, 2023

  • Remove bulma and sprockets config
  • Replace js and style tag helpers
  • Add ViteRails, trix editor, fontawesome
  • Disable specs temporarily

@JuanVqz JuanVqz changed the title Upgrade app Upgrade style app Aug 25, 2023
@JuanVqz JuanVqz self-assigned this Aug 25, 2023
Copy link

@codeclimate codeclimate bot left a 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.

@JuanVqz JuanVqz force-pushed the upgrade-to-tailwindcss branch 2 times, most recently from 7637b5e to 5ad6db1 Compare August 25, 2023 05:26
Copy link

@codeclimate codeclimate bot left a 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.

Copy link

@codeclimate codeclimate bot left a 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/
Copy link

@codeclimate codeclimate bot left a 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.

Copy link

@codeclimate codeclimate bot left a 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.

Copy link

@codeclimate codeclimate bot left a 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.

Copy link

@codeclimate codeclimate bot left a 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.

JuanVqz and others added 2 commits February 20, 2024 23:52
* 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)>'
```
Copy link

@codeclimate codeclimate bot left a 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
Copy link

@codeclimate codeclimate bot left a 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.
Copy link

@codeclimate codeclimate bot left a 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.

Copy link

@codeclimate codeclimate bot left a 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.

Copy link

@codeclimate codeclimate bot left a 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.

Copy link

@codeclimate codeclimate bot left a 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 }
Copy link

@codeclimate codeclimate bot left a 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
@JuanVqz
Copy link
Owner Author

JuanVqz commented Feb 24, 2024

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
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove model

Copy link
Owner Author

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
Copy link
Owner Author

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
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
%div.flex.flex-col.md:flex-row.md:justify-between
.flex.flex-col.md:flex-row.md:justify-between

@@ -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
Copy link
Owner Author

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

%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
Copy link
Owner Author

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
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
%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
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
%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')
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this view used?

Suggested change
= render "shared/title", title: t('.title')
= render 'shared/title', title: t('.title')

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it is used.

%table.table.is-hoverable.is-fullwidth
%thead.is-uppercase
= render 'shared/section' do
%div.flex.flex-col.md:flex-row.md:justify-between
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
%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
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
%div.flex.flex-col.md:flex-row.md:justify-between
.flex.flex-col.md:flex-row.md:justify-between

Copy link

@codeclimate codeclimate bot left a 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.

Copy link

codeclimate bot commented Feb 24, 2024

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.

@JuanVqz JuanVqz merged commit 05efc35 into main Feb 24, 2024
4 checks passed
@JuanVqz JuanVqz deleted the upgrade-to-tailwindcss branch February 24, 2024 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant