codex-team / codex-team/notes.api

Feat (NoteService): Implement getNoteTitle() method

未关闭
#280 0 条评论 0 个 reaction 已指派 1 人 已被 @E-creator513 认领 在 GitHub 查看
good first issue
主要语言
TypeScript
星标
4
派生
2
PR 合并指标
30 天内没有已合并 PR

描述

## Story
In some cases frontend part needs just note title to display iniformation about note
e. g. in home page we can see only `noteTitles` of the each note, for that case we do not need to pass whole `noteContent` as we do, we could just pass `noteTitles`

You can check reference of the method in [notes.web](https://github.com/codex-team/notes.web) repo

## Problem
In some cases we do not need whole note content, but we need note title which can be formed only in web part

## Steps
- Add `getNoteTitle()` method for `NoteService`
- Add `NoteTitle` and (`NotePreview` or `NoteMeta`) entities
`NoteTitle` is string
`NoteMeta` is actual note, with NoteTitle instead of content
- Check, where we use `getNoteTitle()` method on the WEB part

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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