这是indexloc提供的服务,不要输入任何密码
Skip to content

Milestone 8: ghostwriter #440

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

Merged
merged 78 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
119f85b
Adding file picker component
DennisAlund Aug 17, 2024
3a0dc9a
Adding dialog component
DennisAlund Aug 17, 2024
85762af
Setting status of document based on publish timestamp
DennisAlund Aug 21, 2024
e5c0de0
Configuring genkit
DennisAlund Aug 23, 2024
e274c8d
Spelling exceptions
DennisAlund Aug 23, 2024
51541ed
Updating dialog component
DennisAlund Aug 23, 2024
4268e35
Adding genkit flow for article
DennisAlund Aug 23, 2024
edbc903
Creating hook for using genkit
DennisAlund Aug 23, 2024
f1a1309
Updating usage of enums
DennisAlund Aug 23, 2024
ae1f211
Implementing usage for genkit creation
DennisAlund Aug 23, 2024
ddde277
Updating storage rules
DennisAlund Aug 23, 2024
1a70bd6
Organizing imports
DennisAlund Aug 23, 2024
5ab1ce9
Updating genkit code
DennisAlund Aug 23, 2024
a741444
Merge branch 'main' into issue/427-implement-generate-with-ai-button-…
DennisAlund Aug 23, 2024
9a512b1
FIxing imports
DennisAlund Aug 23, 2024
98f2916
Adding module import
DennisAlund Aug 23, 2024
d776d07
Configuring genkit
DennisAlund Aug 23, 2024
cb8ad79
Adding zod serializer
DennisAlund Aug 23, 2024
fe3b467
Fixing article generation
DennisAlund Aug 23, 2024
124fdee
Adding an article schema
DennisAlund Aug 23, 2024
39bc2dc
Updating firestore indexes
DennisAlund Aug 23, 2024
eb605a5
tsconfig reference to schemas
DennisAlund Aug 23, 2024
ddc8278
Adding a processing state enum
DennisAlund Aug 23, 2024
2300fbb
Use the processing state enum in page
DennisAlund Aug 23, 2024
80fef08
Updating hook
DennisAlund Aug 23, 2024
fb0af1f
Updating genkit article code
DennisAlund Aug 23, 2024
fd332bb
Updating model
DennisAlund Aug 23, 2024
f0b39a5
Updating firestore index
DennisAlund Aug 23, 2024
20d1251
Updating page
DennisAlund Aug 23, 2024
490c5af
Fixing null value on published at
DennisAlund Aug 23, 2024
560af17
Fixing processing state
DennisAlund Aug 23, 2024
0117644
Fixing imports
DennisAlund Aug 23, 2024
cc2e8b3
Updating configs
DennisAlund Aug 23, 2024
af77765
Removing console log
DennisAlund Aug 23, 2024
193e843
Adding return path for creation
DennisAlund Aug 23, 2024
631776b
Moving genkit into plugins
DennisAlund Aug 26, 2024
c22b1de
Updating the system prompt
DennisAlund Aug 26, 2024
11b7d67
move tanam publish status enum to definitions
muzanella11 Aug 26, 2024
166f8d1
add voice recorder component
muzanella11 Aug 26, 2024
794d583
make dynamic title
muzanella11 Aug 26, 2024
db87c8c
change button start and stop recording
muzanella11 Aug 26, 2024
2a04828
add speech recognition
muzanella11 Aug 26, 2024
d904d63
fix cant stop transcript
muzanella11 Aug 26, 2024
2e6cb3c
change .tsx to .ts in plugins
muzanella11 Aug 26, 2024
1c91d84
fix lint error
muzanella11 Aug 26, 2024
704587e
add amplitude
muzanella11 Aug 27, 2024
498de97
add sound wave animation
muzanella11 Aug 27, 2024
38afbc8
fix behavior loading
muzanella11 Aug 27, 2024
e751cea
change wording
muzanella11 Aug 27, 2024
6722a1e
fix wording
muzanella11 Aug 27, 2024
df3fffa
integrate voice recorder with ai
muzanella11 Aug 27, 2024
bd729c5
fix lint error
muzanella11 Aug 27, 2024
4b81002
still getting the error build
muzanella11 Aug 27, 2024
c959f91
[TEST] can build without dialog
muzanella11 Aug 27, 2024
f731f6d
fix unsupported engine
muzanella11 Aug 27, 2024
9254ae6
[TEST] Can build without voice recorder
muzanella11 Aug 27, 2024
43deb0b
can build without voice recorder
muzanella11 Aug 27, 2024
469f88e
navigator is not undefined error
muzanella11 Aug 28, 2024
1e14a6b
fix voice recorder build error
muzanella11 Aug 28, 2024
9cdf17f
remove eslint disabled
muzanella11 Aug 28, 2024
801e17a
add comment
muzanella11 Aug 28, 2024
d4aed52
fix next ssr problem
muzanella11 Aug 28, 2024
a9b6e3b
fix tiptapeditor error console
muzanella11 Aug 28, 2024
8e5e24a
test deploy error
muzanella11 Aug 28, 2024
1d8259e
remove unused
muzanella11 Aug 28, 2024
9ae5707
fix sound wave not showing
muzanella11 Aug 28, 2024
8119568
remove unused
muzanella11 Aug 28, 2024
b224f5b
adjust screen article and adjust button component style
muzanella11 Aug 28, 2024
74b44f5
Merge branch 'milestone/8-ghostwriter' into issue/427-implement-gener…
muzanella11 Aug 28, 2024
027363e
missing shared process in pipeline
muzanella11 Aug 28, 2024
467a38e
missing eslint and prettier in shared folder
muzanella11 Aug 28, 2024
8ab9a4f
fix error
muzanella11 Aug 28, 2024
0a4dd0e
Merge branch 'milestone/8-ghostwriter' into issue/427-implement-gener…
muzanella11 Sep 3, 2024
0c6df41
add tanamSpeechRecognition model
muzanella11 Sep 3, 2024
7a4426d
remove unused
muzanella11 Sep 3, 2024
21c2dd2
remove global.d.ts
muzanella11 Sep 3, 2024
1c82ec4
extend window context interface
muzanella11 Sep 3, 2024
c704678
Merge pull request #435 from oddbit/issue/427-implement-generate-with…
DennisAlund Sep 3, 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
14 changes: 12 additions & 2 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "npm"
cache-dependency-path: |
shared/package-lock.json
hosting/package-lock.json
functions/package-lock.json

- name: Run code checking and formatting (shared)
run: npm ci && npm run codecheck
working-directory: ./shared

- name: Run code checking and formatting (functions)
run: npm ci && npm run codecheck
working-directory: ./functions
Expand All @@ -46,9 +51,10 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "npm"
cache-dependency-path: |
shared/package-lock.json
hosting/package-lock.json
functions/package-lock.json

Expand All @@ -66,6 +72,10 @@ jobs:
- name: Set hosting environment
run: echo $HOSTING_ENV > hosting/.env

- name: Build shared code
run: npm ci && npm run build
working-directory: ./shared

- name: Build functions code
run: npm ci && npm run build
working-directory: ./functions
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/firebase-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "npm"
cache-dependency-path: |
shared/package-lock.json
hosting/package-lock.json
functions/package-lock.json

- name: Run code checking and formatting (shared)
run: npm ci && npm run codecheck
working-directory: ./shared

- name: Run code checking and formatting (functions)
run: npm ci && npm run codecheck
working-directory: ./functions
Expand All @@ -44,9 +49,10 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "npm"
cache-dependency-path: |
shared/package-lock.json
hosting/package-lock.json
functions/package-lock.json

Expand All @@ -64,6 +70,10 @@ jobs:
- name: Set hosting environment
run: echo $HOSTING_ENV > hosting/.env

- name: Build shared code
run: npm ci && npm run build
working-directory: ./shared

- name: Build functions code
run: npm ci && npm run build
working-directory: ./functions
Expand Down
2 changes: 2 additions & 0 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"words": [
"firebaseui",
"firestore",
"Genkit",
"googleai",
"tanam",
"tiptap"
]
Expand Down
249 changes: 3 additions & 246 deletions firestore.indexes.json
Original file line number Diff line number Diff line change
@@ -1,266 +1,23 @@
{
"indexes": [
{
"collectionGroup": "documents",
"collectionGroup": "tanam-documents",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "dependencies",
"arrayConfig": "CONTAINS"
},
{
"fieldPath": "rendered",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "documents",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "documentType",
"order": "ASCENDING"
},
{
"fieldPath": "status",
"order": "ASCENDING"
},
{
"fieldPath": "published",
"order": "DESCENDING"
}
]
},
{
"collectionGroup": "documents",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "documentType",
"order": "ASCENDING"
},
{
"fieldPath": "title",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "documents",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "documentType",
"order": "ASCENDING"
},
{
"fieldPath": "title",
"order": "DESCENDING"
}
]
},
{
"collectionGroup": "documents",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "documentType",
"order": "ASCENDING"
},
{
"fieldPath": "updated",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "documents",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "documentType",
"order": "ASCENDING"
},
{
"fieldPath": "updated",
"order": "DESCENDING"
}
]
},
{
"collectionGroup": "documents",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "status",
"order": "ASCENDING"
},
{
"fieldPath": "published",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "documents",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "status",
"order": "ASCENDING"
},
{
"fieldPath": "title",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "documents",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "status",
"order": "ASCENDING"
},
{
"fieldPath": "title",
"order": "DESCENDING"
}
]
},
{
"collectionGroup": "documents",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "status",
"order": "ASCENDING"
},
{
"fieldPath": "updated",
"order": "ASCENDING"
}
]
},
{
"collectionGroup": "documents",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "status",
"order": "ASCENDING"
},
{
"fieldPath": "updated",
"order": "DESCENDING"
}
]
},
{
"collectionGroup": "files",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "fileType",
"order": "ASCENDING"
},
{
"fieldPath": "updated",
"order": "DESCENDING"
}
]
},
{
"collectionGroup": "notifications",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "isRead",
"order": "ASCENDING"
},
{
"fieldPath": "created",
"order": "DESCENDING"
}
]
},
{
"collectionGroup": "notifications",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "isRead",
"order": "ASCENDING"
},
{
"fieldPath": "updated",
"order": "DESCENDING"
}
]
},
{
"collectionGroup": "themes",
"queryScope": "COLLECTION",
"fields": [
{
"fieldPath": "fileType",
"order": "ASCENDING"
},
{
"fieldPath": "updated",
"fieldPath": "createdAt",
"order": "DESCENDING"
}
]
}
],
"fieldOverrides": [
{
"collectionGroup": "user",
"fieldPath": "uid",
"ttl": false,
"indexes": [
{
"order": "ASCENDING",
"queryScope": "COLLECTION"
},
{
"order": "DESCENDING",
"queryScope": "COLLECTION"
},
{
"arrayConfig": "CONTAINS",
"queryScope": "COLLECTION"
},
{
"order": "ASCENDING",
"queryScope": "COLLECTION_GROUP"
}
]
},
{
"collectionGroup": "user-invites",
"fieldPath": "email",
"ttl": false,
"indexes": [
{
"order": "ASCENDING",
"queryScope": "COLLECTION"
},
{
"order": "DESCENDING",
"queryScope": "COLLECTION"
},
{
"arrayConfig": "CONTAINS",
"queryScope": "COLLECTION"
},
{
"order": "ASCENDING",
"queryScope": "COLLECTION_GROUP"
}
]
}
]
"fieldOverrides": []
}
13 changes: 6 additions & 7 deletions functions/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions functions/src/models/TanamDocumentAdmin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class TanamDocumentAdmin extends TanamDocument<Timestamp, FieldValue> {
data: data.data,
documentType: data.documentType,
publishedAt: data.publishedAt,
status: data.status,
revision: data.revision,
createdAt: data.createdAt || Timestamp.now(),
updatedAt: data.updatedAt || Timestamp.now(),
Expand Down
Loading