Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Add a 'template system'

未关闭
#622 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
php
领域
full-stack

调研方向

首先检查现有的 Chart Library 和新建图表流程,包括当前如何呈现图表设置和库选择。完成标准是支持提议的模板创建弹窗、带有重命名/删除和筛选功能的模板菜单、默认模板,以及在自定义之前选择模板。

由索引模型根据 Issue 内容生成。

描述

enhancement

Extra information in comment on Asana: https://app.asana.com/0/1129400186358085/1136357868952291


One issue that our users have is they are not aware of how much customization is already possible with the settings we provide, or they don't understand how they can leverage this to create more unique charts and tables.

To re-mediate that, we could add an intermediary step, in which users could select between 2-4 'templates' which would really just be different default settings for the chart they create. These would be created by us.

As we implement that, we might as well allow users to create their own templates, and our own 'default' templates would be handled the same way as user templates are.

Features to be added:

Create Template From Chart

We could simply add a button here: https://i.imgur.com/aHBMTBx.png

This button would open a popup where they can name the template, a submit and cancel button.

Template Menu

Under 'Chart Library', we could add a "Templates" menu. This menu would contain all user-created templates, and users would be able to either rename or delete those templates. It could use a similar interface to the library, with the ability to filter by type.

Default Templates

To showcase users the different possibilities with our charts, we should create some default templates as well for some of the charts. For example, we could show something like this for tables: https://imgur.com/KzqMXst

For the initial default templates, there should be around 3-6 per chart type. One default per library + all the variations. For you to import them, maybe I can create an instance that contains all the templates and export it for you.

Using Templates

The process would change to this, when creating a new chart:

1- User creates chart (unchanged, but we remove the library selection box)

1.5- User gets a selection screen in which they choose which template to base their chart on, they would be able to choose from either default templates or user templates.

2- Regular customization with the template's settings (unchanged, loads default information from template)

主要语言
PHP
星标
108
派生
29
平均合并
1 天 5 小时
30 天内合并 PR
8

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Codeinwp/visualizer 的其他 Issue

查看 Codeinwp/visualizer 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。