Skip to content

feat: filter architectures based on selected repositories (#38)#110

Open
Flex936 wants to merge 3 commits into
CachyOS:developfrom
Flex936:feat/issue-38-arch-filtering
Open

feat: filter architectures based on selected repositories (#38)#110
Flex936 wants to merge 3 commits into
CachyOS:developfrom
Flex936:feat/issue-38-arch-filtering

Conversation

@Flex936

@Flex936 Flex936 commented Apr 18, 2026

Copy link
Copy Markdown
Contributor

Key Changes:

Fixes #38

### Key Changes:
- **Package Search (CachyOS#38):**
  - Added `getAllowedArchitectures` helper to dynamically filter architecture options based on selected repositories.
  - Implemented auto-clearing of invalid architectures on repository seleciton.
  - Switched `FormEvent` to `SyntheticEvent` to resolve TypeScript deprecation warnings.
- **Utils Logic:**
  - Refactored pagination logic in `utils.ts` to use `else if` for better readability and minor performance optimization.
- **UI Enhancement:**
  - Updated `ThemeToggle` to show a checkmark next to the currently active theme.

Fixes CachyOS#38
@vnepogodin

vnepogodin commented Apr 18, 2026

Copy link
Copy Markdown
Member

In the ideal world would be nice to apply filters automatically based on the supported instructions... but it's a browser 🥲

@azdanov

azdanov commented Apr 19, 2026

Copy link
Copy Markdown
Member

Could you please run the format script before I have a look?

@azdanov

azdanov commented Apr 20, 2026

Copy link
Copy Markdown
Member

There are several distinct changes in current PR. Would you be so kind as to separate them?

@azdanov

azdanov commented Apr 22, 2026

Copy link
Copy Markdown
Member

Thanks for splitting the changes. I had a quick look and it's as complex as I feared it would need to be. Since it needs to be bi-directional from repo to arch dropdowns.
image
But also I'm not sure from app/business perspective what should be the rules. Should it show backwards compatible architectures or should it be strict and only show equal.

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.

Make Repository and Architecture selection related

3 participants