Skip to content

Implement personalization custom app example - #1

Closed
JiriLojda wants to merge 36 commits into
repo_startfrom
main
Closed

Implement personalization custom app example#1
JiriLojda wants to merge 36 commits into
repo_startfrom
main

Conversation

@JiriLojda

Copy link
Copy Markdown
Member

Motivation

Which issue does this fix? Fixes #issue number

If no issue exists, what is the fix or new feature? Were there any reasons to fix/implement things that are not obvious?

Checklist

  • Code follows coding conventions held in this repo
  • Automated tests have been added
  • Tests are passing
  • Docs have been updated (if applicable)
  • Temporary settings (e.g. variables used during development and testing) have been reverted to defaults

How to test

If manual testing is required, what are the steps?

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread eslint.config.js Outdated
Comment thread src/hooks/useCurrentItem.ts Outdated
Comment thread src/hooks/useExistingVariants.ts Outdated
Comment thread scripts/sync-content-model.ts
Comment thread scripts/sync-content-model.ts
Comment thread netlify/functions/fetch-taxonomy.ts Outdated
- Change package name to @kontent-ai/personalization-custom-app
- Remove useDefineForClassFields (unnecessary for functional code, default in ES2022)
- Simplify environment variables section (details in .env.example)
- Remove redundant "Available Scripts" section
- Remove "Project structure" section (unnecessary)
- Simplify env vars section (details in .env.template)
- Use GitHub's [!WARNING] callout notation
- Remove redundant "Scripts" section
- Use non-react config for netlify/functions directory
- Add example-client to linting configuration
- Fix react/jsx-no-constructed-context-values error with useMemo
- Use const arrays instead of Sets for codename lists
- Add missing await to sync-content.ts main() call
- Create src/utils/taxonomy-utils.ts with shared utilities
- Export TaxonomyTerm type and findVariantTermId function
- Export flattenTaxonomyTerms function
- Update hooks to import from shared utilities
- Standardize on checkIsVariant naming (was checkIfVariant in useCurrentItem)
- Rename getManagementClient to createManagementClient
- Move jsonResponse and errorResponse to response-utils.ts
- Update all Netlify functions to use new imports
- Add comment explaining tryCreateNewVersion before deletion in delete-item.ts
- Use type guard instead of cast in fetch-content-type.ts
- Use .then() for cleaner snippet fetching in fetch-content-type.ts
- Move request parsing outside try block in update-content-variants.ts
- Add @kontent-ai/model-generator dependency with generate:types script
- Remove redundant !! boolean coercions in App.tsx
- Use ReadonlyArray pattern with functional approach in kontentClient.ts
- Remove redundant comments from variantResolver.ts
- Move VALID_AUDIENCES to content.ts (derived from AUDIENCES)
- Rename otherVariants to linkedVariants for clarity
- Rename fetchOtherVariantsData to fetchLinkedVariantsData
- Update all references in types, utils, and components
Rename biome.json to biome.jsonc and disable the noExtraBooleanCast
rule with a TODO comment linking to biomejs/biome#8664
@IvanKiral
IvanKiral self-requested a review January 26, 2026 08:03
@JiriLojda

Copy link
Copy Markdown
Member Author

Closing since this PR only served for discussion.

@JiriLojda JiriLojda closed this Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants