-
Notifications
You must be signed in to change notification settings - Fork 0
Implement personalization custom app example #1
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
Closed
Closed
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
0bc6f8c
Implement basic display of personalization type for item
JiriLojda 0197607
Show list of variants under the current variant display
JiriLojda fcc93e9
Use react-query for fetching
JiriLojda 84873fd
Add support for creating new variants
JiriLojda fca4b93
Add support for deleting variants
JiriLojda a5edf33
Add sync script and update readme
JiriLojda 7b6dfde
Enable deleting/creating variants when non-base variant is in the editor
JiriLojda 03e3297
Assign the current item to newly created variant as well
JiriLojda 1206775
Filter out current item's audience from available audiences to create
JiriLojda b59d186
Use zod to check function bodies and share types between FE and BE
JiriLojda 6a48f31
Add example client to showcase FE implementation
JiriLojda 14df295
Update dependencies
JiriLojda 021384e
Autofix biome errors
JiriLojda 623785c
Fix biome errors
JiriLojda 7d1aecf
Update package name and remove unnecessary tsconfig option
JiriLojda 7494b53
Clean up main README.md
JiriLojda d62cc6f
Clean up example-client README.md
JiriLojda 4a626aa
Update ESLint configuration
JiriLojda b53a9dc
Refactor scripts to use arrays instead of Sets
JiriLojda f423662
Consolidate duplicate types and functions in hooks
JiriLojda 9df0fc8
Refactor Netlify functions shared utilities
JiriLojda c5ebb28
Clean up Netlify function implementations
JiriLojda 9cc732b
Clean up example-client source files and add model generator
JiriLojda 3c00d06
Improve naming in useExistingVariants
JiriLojda 65a3af7
Update Netlify deploy button with repository URL
JiriLojda ac935d7
Move deploy button to the top in readme
JiriLojda 2adfa79
Fix biome errors
JiriLojda 3793315
Disable noLeakedRender rule until biome bug is fixed
JiriLojda 996db02
Use kontent.ai model generator in example client
JiriLojda 696ece0
Simplify snippet guard in fetch-content-type
JiriLojda d7f714a
Remove unnecessary let in fetch-taxonomy
JiriLojda 20345db
Fix biome errors
JiriLojda a6ac147
Install example client dependencies on CI as well
JiriLojda f045040
Await main in all scripts
JiriLojda 2febe3a
Fix sync-content-model script
JiriLojda 5309898
Refactor common element utils
JiriLojda File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Kontent.ai Management API Key | ||
| # Required for Netlify functions to access the Management API | ||
| # Get this from Kontent.ai Project Settings > API Keys > Management API | ||
| KONTENT_MANAGEMENT_API_KEY=your-management-api-key-here | ||
|
|
||
| # Kontent.ai Environment ID (only needed for sync scripts) | ||
| # Get this from Kontent.ai Project Settings > General | ||
| KONTENT_ENVIRONMENT_ID=your-environment-id-here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", | ||
| "extends": ["@kontent-ai/biome-config/base", "@kontent-ai/biome-config/react"], | ||
| "files": { | ||
| "includes": [ | ||
| "src/**/*.{ts,tsx}", | ||
| "!example-client/src/types/generated/**/*.ts" // Ignore generated types until the model generator is updated to use biome | ||
| ] | ||
| }, | ||
| "linter": { | ||
| "rules": { | ||
| "nursery": { | ||
| // TODO: Remove once https://github.com/biomejs/biome/issues/8664 is fixed | ||
| "noLeakedRender": "off" | ||
| } | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # Kontent.ai Configuration | ||
|
|
||
| # Environment ID (required for both frontend and sync scripts) | ||
| VITE_KONTENT_ENVIRONMENT_ID=your_environment_id_here | ||
|
|
||
| # Preview API Key (required for frontend to fetch draft content) | ||
| VITE_KONTENT_PREVIEW_API_KEY=your_preview_api_key_here | ||
|
|
||
| # Management API Key (required for sync scripts only, not exposed to browser) | ||
| KONTENT_MANAGEMENT_API_KEY=your_management_api_key_here |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.