Skip to content

[Contractors] Add admin UI#14322

Open
manuthecoder wants to merge 22 commits into
mainfrom
mxg-add-admin-ui-for-contractors
Open

[Contractors] Add admin UI#14322
manuthecoder wants to merge 22 commits into
mainfrom
mxg-add-admin-ui-for-contractors

Conversation

@manuthecoder

Copy link
Copy Markdown
Contributor

Adds admin UI

@manuthecoder
manuthecoder requested review from a team and Copilot July 16, 2026 20:52

This comment was marked as resolved.

manuthecoder and others added 9 commits July 17, 2026 09:52
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment thread app/models/admin/nav.rb Outdated
Comment on lines +310 to +315
make_item(
name: "Payments",
path: employee_payments_admin_index_path,
count: ->{ Employee::Payment.paid.count },
name: "Contractor Payments",
path: admin_payments_path,
count: ->{ Payment.under_review.count },
count_type: :tasks
),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would move payments to be under the Spending tab with the other transfer types

Comment thread app/models/admin/nav.rb Outdated
)
end

def legacy_payroll_items

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Go ahead and get rid of this - we're not using these old pages again

<div class="flex flex-col sm:flex-row items-center gap-2">
<%= render "events/filters/search", form: %>
<%= form.select :entity_type, [%w[Person person], %w[Business business]], { include_blank: "All types", selected: @entity_type } %>
<%= form.select :filter, [%w[Managed managed], %w[Archived archived]], { include_blank: "All entities", selected: params[:filter] } %>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It might make more sense to have these be individual checkboxes instead of a single select - maybe you want to see archived managed LEs

</article>

<% if @position.under_review? %>
<% admin_tool("mt-4 flex items-center justify-between") do %>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Image fix

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.

3 participants