Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Dashboard - tests and infrastructure#288

Merged
ultmaster merged 45 commits intomainfrom
feature/dashboard
Nov 10, 2025
Merged

Dashboard - tests and infrastructure#288
ultmaster merged 45 commits intomainfrom
feature/dashboard

Conversation

@ultmaster
Copy link
Contributor

No description provided.

CopilotAI review requested due to automatic review settingsNovember 10, 2025 13:32
Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull Request Overview

This PR extends the copyright header checker script to support JavaScript/TypeScript files in addition to Python files, and adds comprehensive dashboard implementation with test setup files. The changes support multiple file extensions with appropriate comment prefixes.

Key Changes:

  • Extendedcheck_headers.py to validate copyright headers in JS/TS files (.js,.jsx,.ts,.tsx,.mjs,.mts,.cjs,.cts)
  • Added comprehensive dashboard infrastructure including Vitest setup with Python server integration
  • Implemented test utilities, pages, components, and store configuration
  • Added numerous new files with proper copyright headers

Reviewed Changes

Copilot reviewed 84 out of 87 changed files in this pull request and generated 2 comments.

Show a summary per file
FileDescription
scripts/check_headers.pyExtended to support multiple file types with configurable comment prefixes
dashboard/vitest.setup.mjsVitest configuration with Python server lifecycle management
dashboard/vite.config.mjsVite build and test configuration
dashboard/tsconfig.jsonTypeScript compiler configuration
dashboard/test-utils/*.tsTest utility functions and server setup helpers
dashboard/src/**/*.tsxPage components, layouts, and UI implementation
dashboard/src/**/*.tsState management, type definitions, and utilities
dashboard/static/mockServiceWorker.jsMSW service worker for mocking
Comments suppressed due to low confidence (1)

scripts/check_headers.py:28

  • The conditionnot prefix.endswith(' ') is unnecessary since none of the prefixes inCOMMENT_PREFIX_BY_SUFFIX end with a space. All prefixes are either# or//, neither of which ends with a space. This condition can be simplified to always usef'{prefix} {HEADER_TEXT}'.

💡Add Copilot custom instructions for smarter, more guided reviews.Learn how to get started.

}
return a.createdAt - b.createdAt;
})
.at(-1)!;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Using non-null assertion operator (!) after.at(-1) assumes the array is non-empty, but this is already checked at line 20-22. However, for clarity and type safety, consider returning the value directly from the sort instead of asserting non-null, or add an explicit check before the assertion.

Copilot uses AI. Check for mistakes.
return;
}

if (!disposed && activeController === controller) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This negation always evaluates to true.

Copilot uses AI. Check for mistakes.
@ultmasterultmaster changed the titleDashboardDashboard - tests and infrastructureNov 10, 2025
@ultmasterultmaster merged commit4e7748b intomainNov 10, 2025
14 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@ultmaster

[8]ページ先頭

©2009-2026 Movatter.jp