Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v7.1.1 #9345

Merged
merged 142 commits into from
Nov 12, 2024
Merged
Changes from 1 commit
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
78980e8
Use getTranslation
shironegi39 Sep 20, 2024
1eb5eb4
Use getTranslation
shironegi39 Sep 20, 2024
e3e5185
Use getTranslation
shironegi39 Sep 20, 2024
22bcbab
fix i18n
shironegi39 Sep 26, 2024
77658f0
Bump version
Oct 31, 2024
5c372e9
Merge pull request #9344 from weseek/support/prepare-v7.1.2-RC.0
mergify[bot] Oct 31, 2024
3fc5235
update CHANGELOG.md
yuki-takei Oct 31, 2024
f0e087b
fix version
yuki-takei Oct 31, 2024
e1016ce
tidy up turbo.json for bumping versions
yuki-takei Oct 31, 2024
a588825
Allow custom maximum wait time for cron jobs
miya Nov 1, 2024
d716132
add includeEmpty option in page-listing
reiji-h Nov 1, 2024
ad1466b
Merge branch 'master' into fix/143311-153962-duplicate-page-names-sho…
reiji-h Nov 1, 2024
df0f7d7
Design christmas draft color
satof3 Nov 1, 2024
18640d5
allow button tag
yuki-takei Nov 1, 2024
b505088
allow role attribute
yuki-takei Nov 1, 2024
93bb20d
Refactor recommended-whitelist.ts to exclude restricted class attributes
yuki-takei Nov 1, 2024
c92a4e9
support navs & tabs
yuki-takei Nov 1, 2024
38f9f5b
remove fonts managed by Git LFS
yuki-takei Nov 1, 2024
14b07d7
add font files as normal files
yuki-takei Nov 1, 2024
5c79aba
stop pulling with LFS
yuki-takei Nov 1, 2024
5717b75
Merge pull request #9351 from weseek/support/stop-managing-with-git-lfs
yuki-takei Nov 1, 2024
a07b452
revert if line
yuki-takei Nov 1, 2024
c194383
Merge pull request #9350 from weseek/imprv/reduce-sanitizing
mergify[bot] Nov 1, 2024
04eb4f8
do not depend on pnpm in production builds
yuki-takei Nov 1, 2024
1b6af1a
add console script (alias for repl)
yuki-takei Nov 1, 2024
4833428
Merge branch 'master' into feat/156766-set-the-maximum-number-of-minu…
miya Nov 4, 2024
a187f0f
Merge pull request #9347 from weseek/feat/156766-set-the-maximum-numb…
mergify[bot] Nov 5, 2024
938165c
devide to sandbox-markdown.md
yuki-takei Nov 5, 2024
7a5dd77
add footnote
yuki-takei Nov 5, 2024
09b0bc3
fix the problem that isCreatablePage always returns false
yuki-takei Nov 5, 2024
ddb0874
Merge branch 'master' into imprv/125884-154071-eliminate-req.t()
yuki-takei Nov 5, 2024
fbafa8b
Merge pull request #9355 from weseek/imprv/sandbox
mergify[bot] Nov 5, 2024
338859f
Merge pull request #9356 from weseek/fix/next-link
mergify[bot] Nov 5, 2024
fabb4d2
Merge pull request #9149 from weseek/imprv/125884-154071-eliminate-re…
mergify[bot] Nov 5, 2024
329b76b
Merge branch 'master' into fix/143311-153962-duplicate-page-names-sho…
reiji-h Nov 6, 2024
178b98b
Implement extructPageDataFromMessageEvent()
miya Nov 6, 2024
63c1ef2
clean code
miya Nov 6, 2024
f96df04
clean code
miya Nov 6, 2024
7e9d281
add DEBUG env var
yuki-takei Nov 6, 2024
e9917e0
tidy up reporter
yuki-takei Nov 6, 2024
4804a47
Merge pull request #9363 from weseek/support/improve-playwright-workflow
mergify[bot] Nov 6, 2024
a0d9654
add onWheelClick event handler
yuki-takei Nov 6, 2024
2987554
open page in new tab
yuki-takei Nov 6, 2024
d2883d1
fix workflow to report playwright
yuki-takei Nov 6, 2024
53bc001
Merge branch 'master' into imprv/open-page-tree-item-in-new-tab
yuki-takei Nov 6, 2024
9206dc0
Merge pull request #9365 from weseek/imprv/open-page-tree-item-in-new…
mergify[bot] Nov 6, 2024
a1552bf
Consider light christmas theme
satof3 Nov 6, 2024
945d09c
Implementation of annotationReplacer()
miya Nov 6, 2024
53e9227
Add reference
miya Nov 6, 2024
21da416
i18n
miya Nov 6, 2024
bde7f7e
Use APP_SITE_URL
miya Nov 6, 2024
d5aece5
source -> Source
miya Nov 6, 2024
614719e
Use NextLink
miya Nov 6, 2024
cb45bfc
Add link-primary
miya Nov 6, 2024
6dd15d0
Allows translation in the User's language
miya Nov 6, 2024
797cf15
rm unnec diff
miya Nov 6, 2024
6c630c1
add tooltip for sidebar button
reiji-h Nov 7, 2024
d63b7a6
export and rename primary item props
reiji-h Nov 7, 2024
90e214b
add close stream
reiji-h Nov 7, 2024
0b0935f
Revert "add close stream"
reiji-h Nov 7, 2024
fcf073d
Merge pull request #9348 from weseek/fix/143311-153962-duplicate-page…
yuki-takei Nov 7, 2024
6190871
annotation-replacer -> replaceAnnotationWithPageLink
miya Nov 7, 2024
71b7c51
Change to optional (lang)
miya Nov 7, 2024
d550a77
rm APP_SITE_URL
miya Nov 7, 2024
fe9d49a
Use ReactMarkdwnComponents/NextLink
miya Nov 7, 2024
6e3b9f2
Refactoring of replaceAnnotationWithPageLink()
miya Nov 7, 2024
641bcba
fix translation key
yuki-takei Nov 7, 2024
de473f8
set fallbackLng
yuki-takei Nov 7, 2024
3797566
clean code
yuki-takei Nov 7, 2024
4ff54a2
set user language
yuki-takei Nov 7, 2024
7225caf
Merge pull request #9372 from weseek/fix/i18n-for-admin
mergify[bot] Nov 7, 2024
cd470f6
Merge branch 'master' into support/156547-customtheme-christmas
satof3 Nov 7, 2024
fd75ebb
Improve color variables
satof3 Nov 7, 2024
fab10b6
Merge branch 'master' into feat/156884-retrieve-the-source-of-the-kno…
miya Nov 7, 2024
a35281b
Enable both color mode
satof3 Nov 7, 2024
adc3868
Remove past image
satof3 Nov 7, 2024
8095241
Imprv type
miya Nov 7, 2024
e6337be
Rename field (pageId -> page)
miya Nov 7, 2024
fc1e80d
Icon coloring
satof3 Nov 8, 2024
ccd4ad0
Revert incorrect changes
satof3 Nov 8, 2024
0650ca4
Merge branch 'master' into imprv/149280-156770-display-tooltip-hover-…
reiji-h Nov 8, 2024
8796012
add touchscreen cond for useIsMobile
reiji-h Nov 8, 2024
f6157df
i18n tooltip
reiji-h Nov 8, 2024
aed3852
wrap with div to show multiple paragraphs
yuki-takei Nov 8, 2024
40197fc
update instructions
yuki-takei Nov 8, 2024
3638d21
update instructions when get or create assistant
yuki-takei Nov 8, 2024
429c7d6
Create migration script for VectorStoreFileRelation Model
miya Nov 8, 2024
ae24d03
Refactor of NextLinkWrapper
miya Nov 8, 2024
cbaaa36
Merge pull request #9362 from weseek/feat/156884-retrieve-the-source-…
mergify[bot] Nov 8, 2024
f298dec
support summary mode
yuki-takei Nov 8, 2024
8d32b8e
Add await
miya Nov 8, 2024
7d82a19
internationalization and add tooltip
yuki-takei Nov 8, 2024
12fa122
Merge pull request #9376 from weseek/fix/add-await
yuki-takei Nov 8, 2024
454a6dd
set true for summary mode
yuki-takei Nov 8, 2024
4d0ce7d
Merge remote-tracking branch 'origin/master' into feat/ai-detail-answ…
yuki-takei Nov 8, 2024
dc64941
Merge pull request #9377 from weseek/feat/ai-detail-answer-mode
mergify[bot] Nov 8, 2024
f243bdf
fix type
yuki-takei Nov 8, 2024
ffd406a
fix interpolation
yuki-takei Nov 8, 2024
23f89f9
fix key name
yuki-takei Nov 8, 2024
7064d3e
refactor getTranslation
yuki-takei Nov 8, 2024
8e64759
improve error log
yuki-takei Nov 8, 2024
f62f780
Apply FB
satof3 Nov 11, 2024
84d7222
Merge branch 'master' into support/156547-customtheme-christmas
satof3 Nov 11, 2024
081f8f9
omit remark-toc
yuki-takei Nov 11, 2024
33c68ce
Merge pull request #9383 from weseek/support/omit-remark-toc
mergify[bot] Nov 11, 2024
39c1ca7
Merge pull request #9374 from weseek/support/156547-customtheme-chris…
mergify[bot] Nov 11, 2024
71e30cb
Merge pull request #9371 from weseek/imprv/149280-156770-display-tool…
mergify[bot] Nov 12, 2024
97e0e1c
add hastscript to deps
yuki-takei Nov 12, 2024
9168acb
output TextDirective and LeafDirective as HTML
yuki-takei Nov 12, 2024
b05e680
Merge pull request #9388 from weseek/fix/echo-directive-as-is
mergify[bot] Nov 12, 2024
67ae775
update report-playwright job
yuki-takei Nov 12, 2024
13d80cf
support workflow_dispatch for reusable-app-prod.yml
yuki-takei Nov 12, 2024
ede9fc2
Merge branch 'master' into fix/i18n-for-security-settings
yuki-takei Nov 12, 2024
0cb99af
upgrade i18next packages
yuki-takei Nov 12, 2024
1411a39
fix exports and imports
yuki-takei Nov 12, 2024
e3b2163
clean code
yuki-takei Nov 12, 2024
bb02ad4
clean code
yuki-takei Nov 12, 2024
9ba4033
improve layout
yuki-takei Nov 12, 2024
d021e30
revert supported lang detection
yuki-takei Nov 12, 2024
e5052ad
improve condition for report-playwright job
yuki-takei Nov 12, 2024
7e5f5b6
Merge branch 'master' into fix/i18n-for-security-settings
yuki-takei Nov 12, 2024
7ef9a2a
revert supported lang detection
yuki-takei Nov 12, 2024
032d349
Merge pull request #9379 from weseek/fix/i18n-for-security-settings
mergify[bot] Nov 12, 2024
d0f1f73
extract directive label
yuki-takei Nov 12, 2024
82887cb
WIP: add test
yuki-takei Nov 12, 2024
b5df1ed
add example to sandbox-markdown.md
yuki-takei Nov 12, 2024
f43a4f1
impl test
yuki-takei Nov 12, 2024
72f6672
update sandbox-markdown.md
yuki-takei Nov 12, 2024
a8c46c3
update sandbox-markdown.md
yuki-takei Nov 12, 2024
203fde1
add vue-tsc
yuki-takei Nov 12, 2024
ac9b09a
check type with vue-tsc
yuki-takei Nov 12, 2024
9b08ef9
fix type error
yuki-takei Nov 12, 2024
2d91694
fix type error with uuid
yuki-takei Nov 12, 2024
a86d376
update TypeScript settings in .vscode/settings.json
yuki-takei Nov 12, 2024
f0292fa
build for production with tspc
yuki-takei Nov 12, 2024
29474b0
Merge pull request #9393 from weseek/support/typechecking
mergify[bot] Nov 12, 2024
36b22b7
Merge remote-tracking branch 'origin/master' into imprv/callout-custo…
yuki-takei Nov 12, 2024
6ac22ec
fix type error
yuki-takei Nov 12, 2024
b455604
Merge pull request #9392 from weseek/imprv/callout-custom-label
mergify[bot] Nov 12, 2024
2226879
BugFix for callout
yuki-takei Nov 12, 2024
a3466bf
BugFix for callout label
yuki-takei Nov 12, 2024
0a47fcd
fix callout test
yuki-takei Nov 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
extract directive label
yuki-takei committed Nov 12, 2024
commit d0f1f73c89fa622d1428d777939105df0823fde7
15 changes: 9 additions & 6 deletions apps/app/src/features/callout/components/CalloutViewer.tsx
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ type CALLOUT_TO = {
[key in Callout]: string;
}

const CALLOUT_TO_TITLE: CALLOUT_TO = {
const CALLOUT_TO_TYPE: CALLOUT_TO = {
note: 'Note',
tip: 'Tip',
important: 'Important',
@@ -36,26 +36,29 @@ const CALLOUT_TO_ICON: CALLOUT_TO = {
type CalloutViewerProps = {
children: ReactNode,
node: Element,
name: string
type: string,
label?: string,
}

export const CalloutViewer = React.memo((props: CalloutViewerProps): JSX.Element => {

const { node, name, children } = props;
const {
node, type, label, children,
} = props;

if (node == null) {
return <></>;
}

return (
<div className={`${moduleClass} callout-viewer`}>
<div className={`callout callout-${CALLOUT_TO_TITLE[name].toLowerCase()}`}>
<div className={`callout callout-${CALLOUT_TO_TYPE[type].toLowerCase()}`}>
<div className="callout-indicator">
<div className="callout-hint">
<span className="material-symbols-outlined">{CALLOUT_TO_ICON[name]}</span>
<span className="material-symbols-outlined">{CALLOUT_TO_ICON[type]}</span>
</div>
<div className="callout-title">
{CALLOUT_TO_TITLE[name]}
{label ?? CALLOUT_TO_TYPE[type]}
</div>
</div>
<div className="callout-content">
21 changes: 20 additions & 1 deletion apps/app/src/features/callout/services/callout.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { Text } from 'mdast';
import type { ContainerDirective } from 'mdast-util-directive';
import type { Plugin } from 'unified';
import { visit } from 'unist-util-visit';
@@ -8,16 +9,34 @@ export const remarkPlugin: Plugin = () => {
return (tree) => {
visit(tree, 'containerDirective', (node: ContainerDirective) => {
if (AllCallout.some(name => name === node.name.toLowerCase())) {
const type = node.name.toLowerCase();
const data = node.data ?? (node.data = {});

// extract directive label
const paragraphs = (node.children ?? []).filter(child => child.type === 'paragraph') ?? [];
const paragraphForDirectiveLabel = paragraphs.find(p => p.data?.directiveLabel);
const label = paragraphForDirectiveLabel != null
? (paragraphForDirectiveLabel.children[0] as Text).value
: undefined;
// remove directive label from children
if (paragraphForDirectiveLabel != null) {
node.children.splice(node.children.indexOf(paragraphForDirectiveLabel), 1);
}

data.hName = 'callout';
data.hProperties = {
name: node.name.toLocaleLowerCase(),
type,
label: label ?? type,
};

}
});
};
};

export const sanitizeOption = {
tagNames: ['callout'],
attributes: {
callout: ['type', 'label'],
},
};