Skip to content

Refine project intake, workspace payments, and admin role boundaries#68

Merged
iaretechnician merged 1 commit into
unstablefrom
copilot/refine-start-project-workflow
Jun 1, 2026
Merged

Refine project intake, workspace payments, and admin role boundaries#68
iaretechnician merged 1 commit into
unstablefrom
copilot/refine-start-project-workflow

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 1, 2026

This update aligns the project lifecycle with a project-centric workflow: simpler client intake, faster project navigation on dashboard tables, and clearer Admin/Staff/Client boundaries. It also moves PayPal configuration and invoice/payment tracking into admin-controlled settings and per-project workspace actions.

  • Start Project experience simplification

    • Reworked start-project.php to keep only essential intake fields and remove redundant prompts.
    • Replaced multi-tier pricing catalog with a short “What Might It Cost?” guidance block.
    • Added optional attachment intake (validated type/size/count) and persisted attachment metadata on project requests.
  • Dashboard and project list usability

    • Moved primary project action (Open) to the first visible position beside project IDs for better mobile ergonomics.
    • Applied this layout to both unified dashboard tables and staff request listing.
  • Role separation and admin settings surface

    • Added admin-only /settings.php as the central configuration surface.
    • Exposed dashboard “Settings” link to admins only.
    • Restricted PayPal setup page access to admin role only.
    • Added persisted admin settings model in portal helpers for:
      • PayPal settings
      • Email settings
      • Site settings
      • Business information
  • Project workspace as system of record

    • Expanded project.php Payments section to support:
      • Create invoice
      • Send invoice
      • Record payment
      • Fallback payment link storage when API config is incomplete
    • Added payment status fields to request normalization/persistence (invoice_reference, invoice_status, payment_link, amounts, timestamps).
    • Updated project progress tracker and activity timeline to reflect invoice/payment milestones.
    • Added project-scoped client/staff messaging entries in workspace.
    • Updated files section to show submitted intake attachments.
  • Representative change

if ($isStaff && in_array($action, ['create_invoice', 'send_invoice', 'create_payment_link', 'record_payment'], true)) {
    // persist invoice reference/status, amounts, payment link fallback, and timestamps
    // update project status to active when payment is recorded
}

@iaretechnician iaretechnician marked this pull request as ready for review June 1, 2026 19:07
Copilot AI review requested due to automatic review settings June 1, 2026 19:07
@iaretechnician iaretechnician merged commit 8d5a658 into unstable Jun 1, 2026
@iaretechnician iaretechnician deleted the copilot/refine-start-project-workflow branch June 1, 2026 19:07
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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