Skip to content

feat: Implement guide matricole #45

Open
BIA3IA wants to merge 2 commits into
mainfrom
guidaMatricole
Open

feat: Implement guide matricole #45
BIA3IA wants to merge 2 commits into
mainfrom
guidaMatricole

Conversation

@BIA3IA

@BIA3IA BIA3IA commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Add functionality for creating, deleting, and displaying guides.

@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@BIA3IA, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 48 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 00555f1e-c41e-41d7-84cf-eb0ae4ca0748

📥 Commits

Reviewing files that changed from the base of the PR and between 02166b4 and 064b594.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (2)
  • next.config.ts
  • package.json

Walkthrough

Adds a dashboard page for listing, creating, and deleting web guides, with authorized server actions, optimistic table updates, sidebar navigation, and simplified DataTable column typing.

Changes

Guide management

Layer / File(s) Summary
DataTable contract alignment
src/components/data-table.tsx, src/app/dashboard/(active)/azure/members/table.tsx
Simplifies DataTable generics, accepts ColumnDef<TData, any>[], and removes the Azure table’s TypeScript suppression.
Guide data and server actions
src/app/dashboard/(active)/web/guide/types.ts, src/server/actions/guides.ts
Defines the Guide shape and adds authorized retrieval, creation, and deletion actions backed by trpc.web.matricole.
Guide dashboard interactions
src/app/dashboard/(active)/web/guide/page.tsx, src/app/dashboard/(active)/web/guide/table.tsx, src/app/dashboard/(active)/web/guide/columns.tsx, src/app/dashboard/(active)/web/guide/create-guide.tsx, src/app/dashboard/(active)/web/guide/delete-guide.tsx
Adds the server-rendered guide page, client table, formatted columns, creation dialog, upload handling, deletion confirmation, toast outcomes, optimistic updates, and router refreshes.
Guide navigation entry
src/components/dashboard-sidebar/data.tsx
Adds the Web → Guide dashboard navigation route at /dashboard/web/guide.

Sequence Diagram(s)

sequenceDiagram
  participant GuidePage
  participant GuideTable
  participant ServerActions
  participant MatricoleAPI
  GuidePage->>ServerActions: getAllGuides()
  ServerActions->>MatricoleAPI: getAllGuides.query()
  MatricoleAPI-->>GuidePage: guide list
  GuidePage->>GuideTable: render guides
  GuideTable->>ServerActions: createGuide or deleteGuide
  ServerActions->>MatricoleAPI: addGuide or deleteGuide mutation
  MatricoleAPI-->>ServerActions: mutation result
  ServerActions-->>GuideTable: guide result or error
Loading

Possibly related PRs

  • PoliNetworkOrg/admin#39: Introduces the dashboard sidebar configuration updated here with the Web → Guide entry.
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title matches the PR’s main change: adding guide matricole management and display features.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@BIA3IA BIA3IA added the status: blocked Work cannot proceed until another issue is resolved label Jul 9, 2026
@BIA3IA BIA3IA marked this pull request as ready for review July 10, 2026 20:35
@BIA3IA BIA3IA removed the status: blocked Work cannot proceed until another issue is resolved label Jul 10, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/app/dashboard/`(active)/web/guide/table.tsx:
- Around line 12-22: Synchronize the local items state with refreshed server
data: import and use useEffect in the GuideTable component to call
setItems(guides) whenever the guides prop changes, while preserving the
optimistic updates in handleCreated and handleDeleted.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 73c29c37-8c57-447c-b479-7447a99a1b21

📥 Commits

Reviewing files that changed from the base of the PR and between ba09a88 and 02166b4.

📒 Files selected for processing (10)
  • src/app/dashboard/(active)/azure/members/table.tsx
  • src/app/dashboard/(active)/web/guide/columns.tsx
  • src/app/dashboard/(active)/web/guide/create-guide.tsx
  • src/app/dashboard/(active)/web/guide/delete-guide.tsx
  • src/app/dashboard/(active)/web/guide/page.tsx
  • src/app/dashboard/(active)/web/guide/table.tsx
  • src/app/dashboard/(active)/web/guide/types.ts
  • src/components/dashboard-sidebar/data.tsx
  • src/components/data-table.tsx
  • src/server/actions/guides.ts

Comment thread src/app/dashboard/(active)/web/guide/table.tsx
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