8000 New app detail pages, categories page and nav changes by nochilli · Pull Request #2047 · ImranR98/apps.obtainium.imranr.dev · GitHub
[go: up one dir, main page]

Skip to content

New app detail pages, categories page and nav changes - #2047

Open
nochilli wants to merge 2 commits into
ImranR98:mainfrom
nochilli:site-upgrade
Open

nochilli wants to merge 2 commits into
ImranR98:mainfrom
nochilli:site-upgrade

Conversation

@nochilli
Copy link
Copy Markdown

Added:

New pages

  • src/pages/apps/[id].astro - per-app detail page: shows detected architecture, install links, etc.
  • src/pages/categories.astro - category listing page.

New components

  • Architecture.astro - shows the user's CPU arch ("x86_64", "arm64(v8)") from the User Agent.
  • Toast.astro - unified toast component for success/error messages.

Changed:

AppCard.astro

  • App title now links to the new /apps/<id> detail page instead of the "All Apps" tile.
  • Category chips link to /apps?category=<cat>
  • Multi-variant app cards are collapsed <details> (group/variants) with an arrow indicator - less clutter on the grid.

Misc

  • src/pages/index.astro: the "All Apps" tile now points at /apps?categoryMode=inclusive&sort=name&q=; the Categories header got a "View all →" link.
  • src/env.d.ts: global showToast and copyToClipboard declarations (used by the new components).
  • public/sitemap.xml: includes the new /categories page.
  • public/data/strings.json: added 6 undeclared existing and 3 new i18n keys (appNotFound, noAppsFound, noAppsFoundSearch, noAppsFoundFilters, clearFilters, categoryModeHelp, appNotFoundDescription, author, yourArchitecture).
  • tests/site.test.mjs: the home-page assertion for the All Apps link was updated to the new href.

Changes live at https://obtainium.sadtzy.xyz/

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

0