Skip to content

Revert "feat: Template"#23

Merged
spring-raining merged 1 commit intomainfrom
revert-22-feat/template
Apr 7, 2026
Merged

Revert "feat: Template"#23
spring-raining merged 1 commit intomainfrom
revert-22-feat/template

Conversation

@spring-raining
Copy link
Copy Markdown
Member

Reverts #22

Copilot AI review requested due to automatic review settings April 7, 2026 05:27
@spring-raining spring-raining enabled auto-merge April 7, 2026 05:27
@spring-raining spring-raining added this pull request to the merge queue Apr 7, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

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 pull request reverts the "feat: Template" feature introduced in #22. The revert simplifies the codebase by removing template serving functionality, simplifying the store architecture from complex class-based proxies to plain valtio proxies, and removing new-project UI flows and related components.

Changes:

  • Downgraded dependency versions (vite 6.3.5→6.2.1, vitest 3.2.4→3.2.3, yjs 13.6.29→13.6.24, etc.)
  • Removed template directory serving logic and tar dependency from vite config
  • Deleted template directories (minimal, basic templates)
  • Refactored store architecture from class-based proxies to plain valtio objects
  • Removed new-project route and related UI components (radio, popover, label, command, stacked-radio, loading-ui)
  • Simplified pane content structure with embedded title functions
  • Removed bundle configuration stubs

Reviewed changes

Copilot reviewed 95 out of 99 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pnpm-workspace.yaml Downgraded dependency versions including vite, vitest, yjs, vivliostyle/cli
packages/viola/vite.config.ts Removed 53-line template serving plugin and tar import
packages/viola/templates/ Deleted minimal and basic template directories
packages/viola/src/stores/ Refactored from class-based proxies to plain valtio objects
packages/viola/src/routes/ Changed routes from beforeLoad to onEnter hooks; removed new-project route
packages/viola/src/components/ Simplified pane structure with embedded title functions; removed UI components
packages/ui/ Removed loading prop from Button component
package.json Removed vite@6.3.5.patch from patchedDependencies

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

Comment on lines +75 to +77
delete $sandbox.files[
join($sandbox.vivliostyleConfig.entryContext || '', file.filename)
];
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

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

The file.filename already includes the entryContext (see setup-project.ts line 46 where it's constructed as join(entryContext, entry.path)). Joining it again with entryContext here creates an incorrect file path with duplicated directory levels. Should use file.filename directly without joining entryContext again.

Copilot uses AI. Check for mistakes.
Comment on lines +104 to +106
$sandbox.files[
join($sandbox.vivliostyleConfig.entryContext || '', file.filename)
] = ref(new Blob([markdown], { type: 'text/markdown' }));
Copy link

Copilot AI Apr 7, 2026

Choose a reason for hiding this comment

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

The file.filename already includes the entryContext when it was stored (see setup-project.ts line 46). Joining it again with entryContext here creates an incorrect file path with duplicated directory levels. Should use file.filename directly without joining entryContext again.

Copilot uses AI. Check for mistakes.
Merged via the queue into main with commit ebb057a Apr 7, 2026
10 checks passed
@spring-raining spring-raining deleted the revert-22-feat/template branch April 7, 2026 05:33
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