olivas/frontend
DJP c1b80eb9a7 Replace entropy score with composite Design Effectiveness Score
The pure Shannon entropy score penalized well-designed ads with multiple
intentional visual elements (e.g. hero product + text + logo scored ~8/100).

New composite score (0-100) weights four components:
- Peak Dominance (30%): strength of #1 hotspot vs rest
- Hierarchy Clarity (25%): monotonic intensity ordering
- Gaze Coherence (25%): smooth spatial gaze path
- Entropy Concentration (20%): sqrt-softened entropy

The raw entropy score is preserved as entropy_score for users who want it,
visible in the ScoreCard hover tooltip and PDF report.

Also adds auto-create DB tables on startup for fresh Docker deploys.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 22:50:12 -05:00
..
public Initial commit — OliVAS visual attention analysis platform 2026-02-23 20:20:58 -05:00
src Replace entropy score with composite Design Effectiveness Score 2026-02-24 22:50:12 -05:00
.gitignore Initial commit — OliVAS visual attention analysis platform 2026-02-23 20:20:58 -05:00
Dockerfile Initial commit — OliVAS visual attention analysis platform 2026-02-23 20:20:58 -05:00
eslint.config.js Initial commit — OliVAS visual attention analysis platform 2026-02-23 20:20:58 -05:00
index.html Initial commit — OliVAS visual attention analysis platform 2026-02-23 20:20:58 -05:00
nginx.conf Initial commit — OliVAS visual attention analysis platform 2026-02-23 20:20:58 -05:00
package-lock.json Initial commit — OliVAS visual attention analysis platform 2026-02-23 20:20:58 -05:00
package.json Initial commit — OliVAS visual attention analysis platform 2026-02-23 20:20:58 -05:00
README.md Initial commit — OliVAS visual attention analysis platform 2026-02-23 20:20:58 -05:00
tsconfig.app.json Initial commit — OliVAS visual attention analysis platform 2026-02-23 20:20:58 -05:00
tsconfig.json Initial commit — OliVAS visual attention analysis platform 2026-02-23 20:20:58 -05:00
tsconfig.node.json Initial commit — OliVAS visual attention analysis platform 2026-02-23 20:20:58 -05:00
vite.config.ts Initial commit — OliVAS visual attention analysis platform 2026-02-23 20:20:58 -05:00

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...
    },
  },
])