[PR #322] [MERGED] Repository table bulk actions #7236

Closed
opened 2026-07-16 01:48:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/RayLabsHQ/gitea-mirror/pull/322
Author: @binary141
Created: 6/14/2026
Status: Merged
Merged: 6/14/2026
Merged by: @arunavo4

Base: mainHead: main


📝 Commits (8)

  • 2f575ff Handle indexing when shift + clicking in the repository table
  • 8a6dad1 Move the buttons when selecting rows
  • 8db405b Add in a bulk delete func in the repositories table
  • 568891e Merge branch 'RayLabsHQ:main' into main
  • 51de23e Merge branch 'main' of github.com:binary141/gitea-mirror
  • 9a3e31d Add bulk delete handler
  • b9d05bf Make the single action use the bulk delete
  • cb1419d Delete the single repository id handler

📊 Changes

3 files changed (+239 additions, -157 deletions)

View changed files

📝 src/components/repositories/Repository.tsx (+189 -106)
📝 src/pages/api/repositories/[id].ts (+1 -51)
src/pages/api/repositories/index.ts (+49 -0)

📄 Description

What does this do?

  • Fix buttons going off screen in a smaller width browser window. Moved their location to underneath the filters
  • Adds simple bulk delete handler, and consolidates the single delete to use the bulk delete handler to reduce logic drift between the 2 delete paths. With this a new api route is created delete /repositories that takes in a list of ids to delete

Quarter width:
image

Half width:
image

Full width:
image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/RayLabsHQ/gitea-mirror/pull/322 **Author:** [@binary141](https://github.com/binary141) **Created:** 6/14/2026 **Status:** ✅ Merged **Merged:** 6/14/2026 **Merged by:** [@arunavo4](https://github.com/arunavo4) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (8) - [`2f575ff`](https://github.com/RayLabsHQ/gitea-mirror/commit/2f575ff01089a44e64da93d6c2383f98a6ec9ae0) Handle indexing when shift + clicking in the repository table - [`8a6dad1`](https://github.com/RayLabsHQ/gitea-mirror/commit/8a6dad1ff393951c88bb27384ec779cacde93fb5) Move the buttons when selecting rows - [`8db405b`](https://github.com/RayLabsHQ/gitea-mirror/commit/8db405b86dc60cd841309f43ae0dfcc38313096d) Add in a bulk delete func in the repositories table - [`568891e`](https://github.com/RayLabsHQ/gitea-mirror/commit/568891e3c5fe39d941e8e2c073617136dc867e68) Merge branch 'RayLabsHQ:main' into main - [`51de23e`](https://github.com/RayLabsHQ/gitea-mirror/commit/51de23ec78596266569cf0264ea91d3d217fa765) Merge branch 'main' of github.com:binary141/gitea-mirror - [`9a3e31d`](https://github.com/RayLabsHQ/gitea-mirror/commit/9a3e31da5c3c1ef020f36c2bb45078c2980d808f) Add bulk delete handler - [`b9d05bf`](https://github.com/RayLabsHQ/gitea-mirror/commit/b9d05bf8f520616a5891d46ac3a7f46228bfc03c) Make the single action use the bulk delete - [`cb1419d`](https://github.com/RayLabsHQ/gitea-mirror/commit/cb1419dac416e48161f21ff67c9a715d831fe0a2) Delete the single repository id handler ### 📊 Changes **3 files changed** (+239 additions, -157 deletions) <details> <summary>View changed files</summary> 📝 `src/components/repositories/Repository.tsx` (+189 -106) 📝 `src/pages/api/repositories/[id].ts` (+1 -51) ➕ `src/pages/api/repositories/index.ts` (+49 -0) </details> ### 📄 Description # What does this do? - Fix buttons going off screen in a smaller width browser window. Moved their location to underneath the filters - Adds simple bulk delete handler, and consolidates the single delete to use the bulk delete handler to reduce logic drift between the 2 delete paths. With this a new api route is created `delete /repositories` that takes in a list of ids to delete Quarter width: <img width="637" height="186" alt="image" src="https://github.com/user-attachments/assets/14d5e82e-6d61-487a-9ffd-bafdb1510166" /> Half width: <img width="1185" height="171" alt="image" src="https://github.com/user-attachments/assets/1f7abdea-13b5-4c3a-a6f9-112b0f6c19ea" /> Full width: <img width="2548" height="239" alt="image" src="https://github.com/user-attachments/assets/4837c3c0-7392-4488-93b1-644fce995cc6" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-07-16 01:48:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea-mirror#7236