windows-iso-downloader/frontend
Shekhar Vaidya 3141635300 feat(backend+frontend): Sentinel lockdown mode + stale UX overhaul
Backend (main.go):
- negCacheEntry gains IsSentinel bool; lockdownTTL = 90min constant
- Lockdown gate at top of handleProxy: serves stale with X-MSDL-Lockdown:1
  header or 429 {"error":"...","lockdown":true} — zero MS API calls made
- Sentinel stale path: sets 90min lockdown neg cache, adds lockdown header,
  suppresses background refresh (retrying extends the Sentinel block timer)
- Non-Sentinel stale path: unchanged (60s neg cache, bg refresh fires)
- Expose X-MSDL-Lockdown in Access-Control-Expose-Headers

Frontend (ProductDetailPage.tsx):
- isLockdown state: set from X-MSDL-Lockdown header or data.lockdown field
- Stale state hides expired download links entirely; shows CLI recommendation
  inside the card instead of sending users to look for options elsewhere
- Lockdown: red banner explaining 90min cooldown + highlighted CLI card,
  no Refresh button (it cannot help while Sentinel block is active)
- Normal stale: amber banner + highlighted CLI card + secondary Refresh button
- Outer CliHandoff suppressed when already shown inside card (stale states)

Frontend (CliHandoff.tsx):
- CLI command uses msdl.exe (primary audience is Windows users)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-25 12:07:00 +05:30
..
public chore: remove product 48 (Win 8.1 Single Language) — Microsoft removed it server-side 2026-06-18 10:59:39 +05:30
src feat(backend+frontend): Sentinel lockdown mode + stale UX overhaul 2026-06-25 12:07:00 +05:30
.env.example feat: initial release — Windows ISO Downloader v3 2026-04-10 20:15:46 +05:30
.gitignore feat: initial release — Windows ISO Downloader v3 2026-04-10 20:15:46 +05:30
eslint.config.js feat: initial release — Windows ISO Downloader v3 2026-04-10 20:15:46 +05:30
index.html feat(frontend): add Google Search Console verification meta tag 2026-05-12 20:51:28 +05:30
package.json feat: initial release — Windows ISO Downloader v3 2026-04-10 20:15:46 +05:30
README.md feat: initial release — Windows ISO Downloader v3 2026-04-10 20:15:46 +05:30
tsconfig.app.json feat: initial release — Windows ISO Downloader v3 2026-04-10 20:15:46 +05:30
tsconfig.json feat: initial release — Windows ISO Downloader v3 2026-04-10 20:15:46 +05:30
tsconfig.node.json feat: initial release — Windows ISO Downloader v3 2026-04-10 20:15:46 +05:30
vite.config.ts feat: initial release — Windows ISO Downloader v3 2026-04-10 20:15:46 +05:30

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...

      // Remove tseslint.configs.recommended and replace with this
      tseslint.configs.recommendedTypeChecked,
      // Alternatively, use this for stricter rules
      tseslint.configs.strictTypeChecked,
      // Optionally, add this for stylistic rules
      tseslint.configs.stylisticTypeChecked,

      // Other configs...
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])

You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:

// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
  globalIgnores(['dist']),
  {
    files: ['**/*.{ts,tsx}'],
    extends: [
      // Other configs...
      // Enable lint rules for React
      reactX.configs['recommended-typescript'],
      // Enable lint rules for React DOM
      reactDom.configs.recommended,
    ],
    languageOptions: {
      parserOptions: {
        project: ['./tsconfig.node.json', './tsconfig.app.json'],
        tsconfigRootDir: import.meta.dirname,
      },
      // other options...
    },
  },
])