Skip to content

Conversation

mizhm
Copy link
Contributor

@mizhm mizhm commented Sep 17, 2025

This pull request introduces a new "Studio" section to the app, including a new layout and a tabbed YAML template editor with persistent state management using Jotai. It also adds several new dependencies to support the editor's functionality and improves code consistency and minor UI details across the console. Below are the most important changes:

Studio Feature:

  • Added a new Studio menu entry to the sidebar and created a dedicated studio-layout.tsx for the Studio section, including a header with navigation and a GitHub badge. [1] [2] [3]
  • Implemented Jotai atoms in studio/atoms.ts to manage YAML template tabs, including persistent storage, add/remove functionality, and active tab tracking.
  • Added an EditorTabs component for displaying and managing open YAML template tabs in the Studio editor.

Dependency and Configuration Updates:

  • Added new dependencies for the code editor and state management: @uiw/react-codemirror, @uiw/codemirror-theme-tokyo-night, @codemirror/lang-yaml, jotai, prettier, uuid, and react-hotkeys-hook. [1] [2]
  • Updated orval.config.ts to use single quotes for consistency and made minor path adjustments.
  • Added use flake to .envrc for environment setup.

UI and Code Quality Improvements:

  • Ensured all React components use consistent single-quote imports and improved key usage in list rendering for better React performance. [1] [2] [3] [4]
  • Minor code and formatting improvements for clarity and maintainability in asset-related components. [1] [2] [3] [4] [5] [6]

These changes collectively lay the groundwork for a user-friendly, persistent YAML template editor within the new Studio section of the application.

mizhm and others added 30 commits September 4, 2025 16:18
* feat(worker): join worker cluster with api key from provider tools

* feat(jobs-registry): enhance job retrieval with tool filtering based on worker type

* feat(jobs): create job for any tool

* fix(jobs-registry): refine job retrieval logic to ensure workspace filtering for built-in tools

* fix(jobs-registry): update query conditions to use andWhere for target and workspace filtering

* feat(jobs-registry): add job property to GetNextJobResponseDto and refactor getNextJob method for built-in tools
* refactor(core-api): improve type safety and add test file rules in ESLint configuration

* feat(husky): add lint check to pre-commit hook
* feat(asset-column): sort IP addresses to prioritize IPv4 over IPv6 in BadgeList

* refactor(detail-provider): remove tabs and improve layout for provider details
#63)

* feat(assets): update tags name for asset by asset id

* feat(asset-column): add tags column with display and count for remaining tags

* fix(auth): comment out secure and sameSite attributes in session cookie configuration

* fix(tools): cannot run auto create built-in tools to database

* feat(assets): add asset tags functionality and update related entities
# Conflicts:
#	.gitignore
#	console/src/routers/index.tsx
@oasm-platform oasm-platform deleted a comment from gemini-code-assist bot Sep 17, 2025
@mizhm mizhm requested a review from l1ttps September 23, 2025 11:00
l1ttps and others added 19 commits September 23, 2025 15:39
- Add WORKER_TOKEN_HEADER constant for worker authentication
- Create WorkerTokenAuth decorator for applying worker token guards and swagger documentation
- Implement WorkerTokenGuard to validate worker tokens against the database
- Add validateWorkerToken method to WorkersService for token validation
- Apply WorkerTokenAuth to JobsRegistryController.getNextJob endpoint
- Update OpenAPI spec to include worker-token header requirement
- Modify worker tool to include worker-token header in API requests
- Improve job result reporting with structured data payloads
)

* feat(api): implement bullmq for scan scheduling and job management

- Integrate BullMQ for handling scheduled scans and background jobs
- Replace previous cron-based scheduling with BullMQ repeatable jobs
- Add new constants and queue configurations for scan schedules
- Update dependencies to include @nestjs/bullmq and bullmq
- Refactor TargetsService to use BullMQ for managing target scan schedules
- Remove old RedisService and SchedulerRegistry dependencies
- Add new module imports and queue registrations for jobs and scan schedules

* refactor(api): replace constant with enum for bullmq queue names
@l1ttps l1ttps merged commit 9fd10ca into main Oct 2, 2025
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.

2 participants