{"id":26994124,"url":"https://github.com/hadv/yitam","last_synced_at":"2025-10-06T00:56:44.406Z","repository":{"id":285558953,"uuid":"957907864","full_name":"hadv/yitam","owner":"hadv","description":"Kết nối tri thức y học cổ truyền với công nghệ hiện đại https://yitam.org","archived":false,"fork":false,"pushed_at":"2025-10-04T13:04:23.000Z","size":4372,"stargazers_count":3,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-04T13:28:21.124Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://yitam.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hadv.png","metadata":{"files":{"readme":"README-FEATURE-FLAGS.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"docs/SECURITY-CSP.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["hadv"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2025-03-31T10:43:42.000Z","updated_at":"2025-10-04T13:04:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"2eca3b23-68fe-4437-b778-39a7f02bdf4d","html_url":"https://github.com/hadv/yitam","commit_stats":null,"previous_names":["hadv/yitam"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/hadv/yitam","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadv%2Fyitam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadv%2Fyitam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadv%2Fyitam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadv%2Fyitam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hadv","download_url":"https://codeload.github.com/hadv/yitam/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadv%2Fyitam/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278542675,"owners_count":26004061,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-04T00:29:01.960Z","updated_at":"2025-10-06T00:56:44.399Z","avatar_url":"https://github.com/hadv.png","language":"TypeScript","funding_links":["https://github.com/sponsors/hadv"],"categories":[],"sub_categories":[],"readme":"# Feature Flags with Unleash for Yitam\n\nThis document explains how to use Unleash feature flags for A/B testing the UI in Yitam.\n\n## Overview\n\nWe've implemented feature flagging using Unleash to toggle between:\n1. Original UI\n2. New Tailwind CSS UI\n\nThe Tailwind CSS version is designed to look identical to the original UI but uses Tailwind for styling.\n\n## Setup Instructions\n\n### 1. Start Unleash Server\n\nRun the Unleash server using Docker Compose:\n\n```bash\ndocker-compose -f docker-compose-unleash.yml up -d\n```\n\nThis will start:\n- Unleash server on http://localhost:4242\n- Postgres database for Unleash\n\n### 2. Configure Feature Flags\n\n1. Open the Unleash dashboard at http://localhost:4242\n2. Log in with:\n   - Username: `admin`\n   - Password: `unleash4all`\n3. Create a new feature flag:\n   - Name: `tailwind-ui-version`\n   - Description: \"Toggle between original UI and Tailwind UI\"\n   - Enable the flag for testing\n   \n### 3. Testing Different UI Versions\n\nTo test the different UI versions:\n- Enable the `tailwind-ui-version` flag to see the Tailwind CSS version\n- Disable the flag to see the original UI version\n\nYou can also use Unleash's gradual rollout features to show the new UI to a percentage of users:\n1. Edit the `tailwind-ui-version` flag\n2. Add a gradual rollout strategy\n3. Set the rollout percentage (e.g., 50% to show the new UI to half of users)\n\n## Implementation Details\n\n- `client/src/unleashConfig.ts` - Unleash client configuration\n- `client/src/components/TailwindApp.tsx` - Tailwind CSS version of the UI\n- `client/src/App.tsx` - Main component with feature flag implementation\n\n## Using in Development\n\nWhen working locally, the app will connect to your local Unleash server and respect the feature flag settings.\n\n## Using in Production\n\nFor production, you should:\n1. Set up a proper Unleash server (self-hosted or cloud)\n2. Update the Unleash configuration in `unleashConfig.ts` with your production URL and API keys\n3. Configure proper security for your Unleash server\n\n## Troubleshooting\n\nIf the feature flag isn't working:\n1. Check that Unleash server is running\n2. Verify that the feature flag is created and enabled in Unleash dashboard\n3. Check the browser console for any errors related to Unleash client initialization ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadv%2Fyitam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhadv%2Fyitam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadv%2Fyitam/lists"}