Skip to content

[People · Phase 2] Soci › Register and Admit socio #155

Description

@toto04

Goal

The Soci part of People: the panel split into Volunteers and Soci, the register, the socio page, and admitting soci, which moves here from Microsoft 365 › Members. Phase 2: #144. Design: docs/people/soci.md (#154). API: PoliNetworkOrg/backend#122.

Navigation

  • Add an optional group to Section in nav.ts. The panel draws the group's title; the mobile pills only keep the order.
  • People's sections become:
    • Volunteers: Overview, Admins, Teams, Census, Linking.
    • Soci: Register, then Fees and Deletion pending as their issues land.
  • Note the pattern in docs/design.md §2.

Pages

Soci › Register (/dashboard/people/soci, soci:read)

  • Scope: Active / Ended / All. Columns: number (DM Mono, sortable), name with the alias as the secondary line, mailbox, admitted on, and end date and reason when ended.
  • Alerts:
    • "n soci in Microsoft 365 have no record", with Register.
    • Mismatches between the record and Soci membership.

Socio page (/dashboard/people/soci/$number)

  • Bookkeeping data, account, activity.
  • Edit and Change number (soci:write).

Admit socio (lg dialog, soci:write)

  • Today's Microsoft 365 create form (name, address format, member number, welcome email with its PoliNetwork-address confirmation).
  • The bookkeeping data, admission date and the first-fee note.
  • A warning when the codice fiscale belongs to a former socio.

Register existing socio

  • The same form for an account already in Soci. Its number is fixed, the admission date is suggested from the account's creation date, and personal fields are optional.

Microsoft 365 › Members

  • Read-only: remove Create and Change member ID, and point to People › Soci.
  • Remove member-dialog.tsx / member-number-dialog.tsx once their parts are reused.

Conventions

  • soci.api.server.ts, contract copy and agent-mode fake, like peopleApi.
  • New server functions, middlewares (sociReadMiddleware, sociWriteMiddleware) and useCan files listed in tests/server-security.test.mjs.
  • Remove the Member register mockup and its mockup-data.ts entries.
  • Update CLAUDE.md's Microsoft 365 and People lines.

Done when

  • Agent-mode fixtures cover active, ended, unregistered and mismatched soci.
  • Check, typecheck, tests and build pass. Pages checked at desktop and mobile widths, light and dark.

Activity

  1. added
    peoplePeople: Group Admins, Capo Admins, Teams, Soci and census (see the People roadmap)
    on Nov 9, 2026
  2. added theissue type on Nov 9, 2026
  3. coderabbitai commented on Nov 9, 2026

    @coderabbitai
    Contributor
    🔗 Related PRs

    #147 - refactor(people): disconnect Soci, fees, receipts and census, keeping them as mockups [merged]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    peoplePeople: Group Admins, Capo Admins, Teams, Soci and census (see the People roadmap)

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions