Skip to content

Develop#1

Merged
mingzhangyang merged 7 commits intomainfrom
develop
Feb 10, 2026
Merged

Develop#1
mingzhangyang merged 7 commits intomainfrom
develop

Conversation

@mingzhangyang
Copy link
Copy Markdown
Owner

No description provided.

- Refactored Write component to use WriteEditor and WriteFooter for better separation of concerns.
- Added HomeEmptyState component to handle empty state scenarios in the home view.
- Introduced HomeFab component for a floating action button to navigate to the write page.
- Created HomeHeader component to display the title and question count in the home view.
- Implemented HomeRecallPanel for managing recall functionality in the home view.
- Added LayoutMenu for navigation and settings in the application.
- Created QuestionDetailDialogs for managing question-related dialogs.
- Developed QuestionDetailHeader for displaying question details and actions.
- Implemented QuestionDetailSections to organize related notes under different categories.
- Added QuestionGraphTooltip for displaying tooltips in the question graph.
- Created useQuestionGraphLayout hook for managing graph layout logic.
- Introduced WriteEditor and WriteFooter components for improved write functionality.
- Added `useWanderingPlanetAnalysis` hook for managing AI analysis of Wandering Planet notes.
- Introduced `useWanderingPlanetData` hook for fetching and managing Wandering Planet and question data.
- Created `useWanderingPlanetSelection` hook for handling selection mode and batch actions.
- Developed `WanderingPlanet` view to display notes, AI suggestions, and manage user interactions.
- Implemented backend handler for Wandering Planet analysis with caching and validation.
- Added tests for normalizing Wandering Planet results to ensure data integrity.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Feb 10, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
cognitive-space 776385d Commit Preview URL Feb 10 2026, 05:27 PM

Copy link
Copy Markdown

Copilot AI 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 primarily renames the “Dark Matter” feature to “Wandering Planet” across the Worker API, client UI, storage/telemetry types, and documentation, while also improving caching behavior and refactoring several UI views into smaller components.

Changes:

  • Rename Dark Matter → Wandering Planet end-to-end (routes, types, telemetry events, prompts, handlers, UI, docs).
  • Improve cache key stability/precision (include question/note digests) and use ExecutionContext.waitUntil() for cache writes.
  • Add build-id based Service Worker cache versioning and refactor UI views into reusable components (plus “Copy to question”).

Reviewed changes

Copilot reviewed 67 out of 69 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
worker/types.ts Renames request/response/suggestion types to Wandering Planet.
worker/prompts.ts Renames prompt builder and prompt text to Wandering Planet.
worker/normalize.ts Renames normalization entrypoint and shared normalize import.
worker/handlers/wanderingPlanet.ts Renamed handler; updates cache key, prompt, normalization, and adds optional ctx.
worker/handlers/analyze.ts Adds optional ctx, sanitizes existingQuestions, updates cache key inputs.
worker/constants.ts Renames max clusters constant to Wandering Planet.
worker/cache.ts Updates cache key strategy; adds ctx.waitUntil() support for cache puts; renames WP cache key fn.
worker/README.md Updates handler paths and normalize export name in docs.
worker.ts Routes updated to /api/wandering-planet/analyze; passes ctx; re-exports renamed normalize fn.
views/Write.tsx Refactors editor/footer into new components.
views/WanderingPlanet.tsx Renames component/model bindings and translation keys to Wandering Planet.
views/QuestionDetail.tsx Refactors header/sections/dialogs into components; wires move + new copy-to flow.
views/Home.tsx Refactors into HomeHeader/HomeRecallPanel/HomeFab/HomeEmptyState and updates WP count.
types.ts Renames exported types/interfaces and telemetry event types to Wandering Planet.
tests/wanderingPlanetNormalize.test.ts Renames normalization tests to new function name.
tests/appDataExport.test.ts Updates expected telemetry event types for Wandering Planet.
src/vite-env.d.ts Adds typing for import.meta.env.VITE_BUILD_ID.
shared/domain.ts Renames suggestion kind type to Wandering Planet.
shared/aiPolicy.ts Renames thresholds/default reasoning constants for Wandering Planet.
shared/aiNormalize.ts Renames normalized suggestion/result types and normalization function to Wandering Planet.
services/storageService.ts Re-exports renamed Wandering Planet storage + telemetry APIs.
services/storage/telemetry.ts Renames telemetry recorders and updates event types/payload typing.
services/storage/projection.ts Updates projection switch cases for renamed telemetry event types.
services/storage/notes.ts Renames Dark Matter page/count/getters to Wandering Planet equivalents.
services/storage/importExport.ts Updates telemetry event validation switch cases to new event type strings.
services/aiService.ts Renames API call to /api/wandering-planet/analyze and uses new normalize function.
scripts/run-with-build-id.mjs New script to inject VITE_BUILD_ID when running Vite commands.
public/sw.js Derives cache version from SW URL query param (?v=) to bust caches per build.
package.json Adds Node >=18 engines; runs Vite via build-id wrapper; ensures build before preview/deploy; bumps version.
package-lock.json Updates version/engines metadata to match package.json.
index.tsx Registers service worker with optional ?v=${VITE_BUILD_ID} query param.
hooks/wanderingPlanet/useWanderingPlanetSelection.ts Renames selection hook and internal variables to WP.
hooks/wanderingPlanet/useWanderingPlanetData.ts Renames data hook and storage calls to WP equivalents.
hooks/wanderingPlanet/useWanderingPlanetAnalysis.ts Renames analysis hook; updates AI service/storage/assistant inbox integration to WP.
hooks/useWriteModel.ts Ensures analysisPending is cleared consistently after async analysis flow.
hooks/useWanderingPlanetModel.ts Renames model hook and wires up WP data/selection/analysis hooks.
hooks/useQuestionDetailModel.ts Adds “copy-to-question” hook wiring into the model outputs.
hooks/useHomeModel.ts Renames Dark Matter count state/loader to Wandering Planet.
hooks/questionDetail/useQuestionDetailDowngrade.ts Updates navigation target from /dark-matter to /wandering-planet.
hooks/questionDetail/useQuestionDetailCopyTo.ts New hook implementing “copy note to another question”.
docs/visualization_proposal.md Updates documentation terminology/routes from Dark Matter to Wandering Planet.
docs/ui_ux_suggestions.md Updates section headings and references to Wandering Planet.
contexts/translations/zh.ts Renames Dark Matter translation keys/strings; adds copy-to-question strings.
contexts/translations/en.ts Renames Dark Matter translation keys/strings; adds copy-to-question strings.
contexts/AssistantInboxContext.tsx Renames job/message kinds and stored session state to Wandering Planet.
components/write/WriteFooter.tsx New extracted Write footer (counter, preview toggle, save button).
components/write/WriteEditor.tsx New extracted Write editor (textarea/preview).
components/questionGraph/useQuestionGraphLayout.ts New hook extracting graph layout/palette/legend computation.
components/questionGraph/QuestionGraphTooltip.tsx New extracted tooltip component for the graph.
components/questionDetail/QuestionDetailSections.tsx New extracted “sections list” component for question detail.
components/questionDetail/QuestionDetailNote.tsx Adds “copy_to” action integration for notes.
components/questionDetail/QuestionDetailHeader.tsx New extracted header component with visualization/edit/downgrade actions.
components/questionDetail/QuestionDetailDialogs.tsx New extracted dialogs wrapper; reuses MoveToQuestionModal for copy-to.
components/layout/LayoutMenu.tsx New extracted menu popover component.
components/layout/LayoutHeader.tsx Refactors to use LayoutMenu; simplifies inline menu markup.
components/home/HomeRecallPanel.tsx New extracted recall + Wandering Planet entry panel.
components/home/HomeHeader.tsx New extracted home header component.
components/home/HomeFab.tsx New extracted floating action button portal component.
components/home/HomeEmptyState.tsx New extracted empty state component.
components/SeoManager.tsx Updates route mapping and SEO keys for Wandering Planet page.
components/QuestionGraph.tsx Refactors to use extracted layout hook + tooltip component.
components/MoveToQuestionModal.tsx Adds customizable title/confirm translation keys (used for copy-to).
components/MessageCenterPanel.tsx Renames inbox message kind handling and navigation to Wandering Planet.
components/Icons.tsx Adds CopyToIcon for copy-to action.
components/ActionSheetButton.tsx Adds copy_to action kind and mapping.
components/ActionIconButton.tsx Adds copy_to (and move) action kinds and icon mappings.
README.zh.md Updates feature naming, prerequisites (Node 18+), config, and scripts documentation.
README.md Updates feature naming, prerequisites (Node 18+), config, and scripts documentation.
App.tsx Updates route/component import from DarkMatter to WanderingPlanet.

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

Comment on lines +367 to 368
'Failed to load Wandering Planet page'
);
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

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

The new error message strings use title case ("Wandering Planet") while other withDb failure messages in this file use sentence case (e.g., "Failed to demote question", "Failed to load question constellation stats"). Consider using consistent casing (either "wandering planet" or align with the surrounding style) so logs/errors remain uniform and easier to grep.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@copilot open a new pull request to apply changes based on this feedback

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 10, 2026

@mingzhangyang I've opened a new pull request, #2, to work on those changes. Once the pull request is ready, I'll request review from you.

[WIP] Update pull request to address feedback from review
@mingzhangyang mingzhangyang merged commit 4d2b8e6 into main Feb 10, 2026
1 check passed
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.

3 participants