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

feat: partners pages #442

Merged
merged 37 commits into from
Jul 1, 2024
Merged

feat: partners pages #442

merged 37 commits into from
Jul 1, 2024

Conversation

MarioRodrigues10
Copy link
Member

No description provided.

@diogogmatos
Copy link
Member

Partners Index Page

@MarioRodrigues10
Copy link
Member Author

The PR is done, although partner show page is looking a bit weird, I accept suggestions to improve it.

Copy link
Member

@joaodiaslobo joaodiaslobo left a comment

Choose a reason for hiding this comment

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

It seems like you didn't use the component used for page layouts. Notice the difference between one of the pages that uses it and yours:
image
image
This has to be done to make sure everything follows the same design principles such as margins, paddings, typography sizes, etc..
To use it you need to write something like this:

<.page title="Partners">
  <:actions>
    <%= if not @empty? and @has_permissions? do %>
      <.primary_button url={Routes.partner_new_path(@socket, :new, @current_organization)}>
        <%= gettext("New") %>
      </.primary_button>
    <% end %>
  </:actions>
  <!-- PARTNER INDEX CONTENT HERE -->
<./page>

@MarioRodrigues10
Copy link
Member Author

Thanks for the heads up @joaodiaslobo .
Whats your thoughts on partner show page?

@MarioRodrigues10 MarioRodrigues10 changed the title feat: partners index page feat: partners page Mar 8, 2024
@MarioRodrigues10 MarioRodrigues10 changed the title feat: partners page feat: partners pages Mar 8, 2024
lib/atomic/socials/socials.ex Outdated Show resolved Hide resolved
lib/atomic_web/live/partner_live/show.html.heex Outdated Show resolved Hide resolved
lib/atomic_web/live/partner_live/show.html.heex Outdated Show resolved Hide resolved
priv/repo/seeds/partners.exs Outdated Show resolved Hide resolved
lib/atomic_web/live/partner_live/show.ex Outdated Show resolved Hide resolved
@MarioRodrigues10
Copy link
Member Author

@joaodiaslobo i've already changed what you suggested, i'll wait now for your suggestion for the socials

Copy link
Member

@joaodiaslobo joaodiaslobo left a comment

Choose a reason for hiding this comment

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

These brand icons should be monochromatic (not colored).

image

Font Awesome has them available here, and you can download them as SVGs.

Copy link
Member

@joaodiaslobo joaodiaslobo left a comment

Choose a reason for hiding this comment

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

The related partner boxes are not left aligned with the rest of the elements.

image

Copy link
Member

@joaodiaslobo joaodiaslobo left a comment

Choose a reason for hiding this comment

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

This doesn't look correct on mobile views.

image

Copy link
Member

@joaodiaslobo joaodiaslobo left a comment

Choose a reason for hiding this comment

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

Edit partner button should have a pencil icon, not a plus icon.

image

[%Partner{}, ...]

"""
def list_partners_by_organization_id(id) do
Repo.all(from p in Partner, where: p.organization_id == ^id)
def list_partners_by_organization_id(opts) when is_list(opts) do
Copy link
Member

Choose a reason for hiding this comment

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

This is no longer a function that "lists partners by organization id", since now it receives a map of options, maybe change it to list_partners/1?

lib/atomic/organizations/partner.ex Outdated Show resolved Hide resolved
lib/atomic_web/live/partner_live/show.html.heex Outdated Show resolved Hide resolved
@joaodiaslobo joaodiaslobo self-requested a review June 20, 2024 15:02
Copy link
Member

@joaodiaslobo joaodiaslobo left a comment

Choose a reason for hiding this comment

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

Just needs some small adjustments and should be ready to be merged, thanks!

lib/atomic_web/live/partner_live/edit.html.heex Outdated Show resolved Hide resolved
lib/atomic_web/live/partner_live/form_component.ex Outdated Show resolved Hide resolved
lib/atomic_web/live/partner_live/form_component.ex Outdated Show resolved Hide resolved
lib/atomic/partnerships.ex Outdated Show resolved Hide resolved
Copy link
Member

@joaodiaslobo joaodiaslobo left a comment

Choose a reason for hiding this comment

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

Good job! 🚀

@MarioRodrigues10 MarioRodrigues10 merged commit d99a0ea into develop Jul 1, 2024
2 checks passed
@MarioRodrigues10 MarioRodrigues10 deleted the mr/update-partners-page branch July 1, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update partners page (admin) frontend
3 participants