1+ ---
2+ description: Terse Hue overview + global constraints; always include in all requests.
3+ globs:
4+ alwaysApply: true
5+ ---
6+
7+ # Hue Overview (short)
8+ - Backend: Python/Django; Frontend: React (primary) + some Vue/KO/jQuery.
9+ - Styling: SCSS (BEM). Avoid adding new Less; migrate to SCSS when touching.
10+ - UI libs: Ant Design (antd) + Cloudera UI (cuix).
11+ - TS strict; avoid `any`. Prefer named type imports.
12+ - No CSS Modules; use global SCSS conventions.
13+
14+ ## Golden Rules
15+ - Focus on the task given, do not expand your tasks without requesting confirmation first.
16+ - Do not automatically start coding if you are asked a question. Only code when asked to.
17+ - Always try to follow best practices and avoid hacks
18+ - Write Clean Code with Meaningful names, Single responsibility, Expressive code etc
19+ - Prefer **React + TypeScript** for new UI.
20+ - Maintain KO↔React via `reactWrapper` where used.
21+ - No hardcoded color codes; use tokens/variables.
22+ - All user-facing text must be i18n'd.
23+
24+
25+ ## Project Structure
26+ hue/
27+ ├── apps/ # Backend Django applications
28+ │ ├── beeswax/ # Hive query interface
29+ │ ├── filebrowser/ # File system browser
30+ │ ├── impala/ # Impala query interface
31+ │ ├── jobbrowser/ # Job monitoring
32+ │ ├── metastore/ # DB Table Browser
33+ │ ├── notebook/ # Interactive sql Editor
34+ │ ├── oozie/ # Workflow management
35+ │ ├── rdbms/ # RDBMS connectors
36+ │ └── ... # Other backend apps
37+ ├── desktop/ # Core desktop functionality
38+ │ ├── core/ # Core desktop components
39+ │ │ └── src/desktop/
40+ │ │ ├── js/ # Frontend JavaScript/TypeScript
41+ │ │ │ ├── apps/ # Application-specific components
42+ │ │ │ │ ├── editor/ # SQL Editor app
43+ │ │ │ │ ├── notebook/ # Notebook app
44+ │ │ │ │ ├── tableBrowser/
45+ │ │ │ │ └── jobBrowser/
46+ │ │ │ ├── reactComponents/ # Shared React components
47+ │ │ │ ├── vue/ # Vue.js components
48+ │ │ │ ├── ko/ # Knockout.js components
49+ │ │ │ ├── components/ # Legacy components
50+ │ │ │ ├── utils/ # Utility functions
51+ │ │ │ ├── api/ # API utilities
52+ │ │ │ └── types/ # TypeScript type definitions
53+ │ │ ├── static/ # Static assets
54+ │ │ └── templates/ # Django templates
55+ │ └── libs/ # Shared libraries
56+ ├── tools/ # Build and development tools
57+ ├── docs/ # Documentation
58+ ├── ext/ # External dependencies
59+ ├── maven/ # Maven build configuration
60+ ├── package.json # Frontend dependencies
61+ ├── pyproject.toml # Python project configuration
62+ ├── webpack.config.js # Webpack configuration
63+ ├── tsconfig.json # TypeScript configuration
64+ ├── jest.config.js # Jest testing configuration
65+ ├── .eslintrc.js # ESLint configuration
66+ ├── .prettierrc # Prettier configuration
67+ ├── .stylelintrc # Stylelint configuration
68+ └── Makefile # Build automation
0 commit comments