Sitelet https://github.com/codingprotocols/podscape/pull/73
Skip to content

feat: multi-field search index, ResourceQuota/LimitRange support, and RBAC creation forms - #73

Merged
imajeetyadav merged 5 commits into
mainfrom
feat/search-fields
May 4, 2026
Merged

imajeetyadav merged 5 commits into
mainfrom
feat/search-fields

Conversation

@imajeetyadav

@imajeetyadav imajeetyadav commented May 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Multi-field search index — buildSearchIndex / filterByQuery in searchUtils.ts build a uid→string map (null-delimited, lowercased) once when resources arrive; filtering runs per-keystroke against the index with no re-allocation on empty query. searchFields added to every SectionConfig entry covering names, namespaces, labels (k=v pairs), images, IPs, schedule, phase, owner refs, and type-specific fields. ResourceList rebuilds the index on resource changes and filters the display list on searchQuery changes.

  • ResourceQuota and LimitRange — Go informers, RBAC probe, sidecar handlers, IPC channel, preload, store slice, SECTION_CONFIG entries with full searchFields, sidebar nav entries, DetailPanel routing, and new detail views (ResourceQuotaDetail usage table + scopes, LimitRangeDetail limit rules list).

  • RBAC creation forms — RoleForm, ClusterRoleForm, RoleBindingForm, ClusterRoleBindingForm added to CreateResourceModal. SectionRouter + New button extended to all four RBAC sections.

  • Go handler registry — AllResourceDefs table in registry.go replaces 28 individual var Handle* = MakeHandler(...) declarations; main.go loops over the slice to register routes. TestAllResourceDefs_Count guards the count.

Type of change

  • New feature
  • Bug fix

Checklist

  • npm run build passes cleanly
  • npm run test passes
  • cd go-core && go test ./... passes
  • New code includes tests where appropriate
  • Docs updated if behaviour changed

- Implemented YAML generation for Role, ClusterRole, RoleBinding, and ClusterRoleBinding.
- Added ResourceQuota and LimitRange detail views with YAML fetching capabilities.
- Updated DetailPanel, ResourceList, and Sidebar to include ResourceQuota and LimitRange sections.
- Enhanced resource configuration to support ResourceQuota and LimitRange types.
- Updated tests to reflect the addition of ResourceQuota and LimitRange sections.
@github-actions github-actions Bot added dependencies Pull requests that update a dependency file renderer core docs main labels May 4, 2026
Comment thread src/renderer/store/resourceConfig.test.ts Fixed
…tion or class'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
@imajeetyadav imajeetyadav changed the title Feat/search fields feat: multi-field search index, ResourceQuota/LimitRange support, and RBAC creation forms May 4, 2026
@imajeetyadav
imajeetyadav merged commit 7edf44c into main May 4, 2026
10 checks passed
@imajeetyadav
imajeetyadav deleted the feat/search-fields branch May 4, 2026 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core dependencies Pull requests that update a dependency file docs main renderer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant