@featurevisor/site 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintcache +1 -1
- package/CHANGELOG.md +8 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/mock/search-index.json +33 -8
- package/package.json +2 -2
- package/src/components/ShowFeature.tsx +7 -0
package/mock/search-index.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"links": {
|
|
3
|
-
"attribute": "https://github.com/
|
|
4
|
-
"segment": "https://github.com/
|
|
5
|
-
"feature": "https://github.com/
|
|
6
|
-
"commit": "https://github.com/
|
|
3
|
+
"attribute": "https://github.com/featurevisor/featurevisor/blob/main/examples/example-1/attributes/{{key}}.yml",
|
|
4
|
+
"segment": "https://github.com/featurevisor/featurevisor/blob/main/examples/example-1/segments/{{key}}.yml",
|
|
5
|
+
"feature": "https://github.com/featurevisor/featurevisor/blob/main/examples/example-1/features/{{key}}.yml",
|
|
6
|
+
"commit": "https://github.com/featurevisor/featurevisor/commit/{{hash}}"
|
|
7
7
|
},
|
|
8
8
|
"entities": {
|
|
9
9
|
"attributes": [
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"timestamp": "2023-03-05T18:38:34+01:00",
|
|
71
71
|
"author": "Fahad Heylaal"
|
|
72
72
|
},
|
|
73
|
-
"usedInFeatures": ["foo", "showPopup"],
|
|
73
|
+
"usedInFeatures": ["foo", "showBanner", "showPopup"],
|
|
74
74
|
"usedInSegments": ["qa"]
|
|
75
75
|
},
|
|
76
76
|
{
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"timestamp": "2023-11-21T17:50:37+01:00",
|
|
152
152
|
"author": "Fahad Heylaal"
|
|
153
153
|
},
|
|
154
|
-
"usedInFeatures": ["showPopup"]
|
|
154
|
+
"usedInFeatures": ["showBanner", "showPopup"]
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
"archived": false,
|
|
@@ -407,8 +407,8 @@
|
|
|
407
407
|
},
|
|
408
408
|
"key": "foo",
|
|
409
409
|
"lastModified": {
|
|
410
|
-
"commit": "
|
|
411
|
-
"timestamp": "2024-01-
|
|
410
|
+
"commit": "9daf95b",
|
|
411
|
+
"timestamp": "2024-01-11T20:17:34+01:00",
|
|
412
412
|
"author": "Fahad Heylaal"
|
|
413
413
|
}
|
|
414
414
|
},
|
|
@@ -494,6 +494,31 @@
|
|
|
494
494
|
"author": "Fahad Heylaal"
|
|
495
495
|
}
|
|
496
496
|
},
|
|
497
|
+
{
|
|
498
|
+
"description": "for testing expose property with tags",
|
|
499
|
+
"tags": ["all", "checkout"],
|
|
500
|
+
"bucketBy": "userId",
|
|
501
|
+
"environments": {
|
|
502
|
+
"staging": {
|
|
503
|
+
"expose": ["checkout"],
|
|
504
|
+
"force": [
|
|
505
|
+
{ "segments": "qa", "enabled": true },
|
|
506
|
+
{
|
|
507
|
+
"conditions": [{ "attribute": "userId", "operator": "equals", "value": "user-3" }],
|
|
508
|
+
"enabled": true
|
|
509
|
+
}
|
|
510
|
+
],
|
|
511
|
+
"rules": [{ "key": "1", "segments": "*", "percentage": 0 }]
|
|
512
|
+
},
|
|
513
|
+
"production": { "rules": [{ "key": "1", "segments": "*", "percentage": 0 }] }
|
|
514
|
+
},
|
|
515
|
+
"key": "showBanner",
|
|
516
|
+
"lastModified": {
|
|
517
|
+
"commit": "1ae08e7",
|
|
518
|
+
"timestamp": "2024-01-23T22:36:30+01:00",
|
|
519
|
+
"author": "Fahad Heylaal"
|
|
520
|
+
}
|
|
521
|
+
},
|
|
497
522
|
{
|
|
498
523
|
"description": "for testing force API in features",
|
|
499
524
|
"tags": ["all"],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/site",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Static site for Featurevisor",
|
|
5
5
|
"main": "dist",
|
|
6
6
|
"scripts": {
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@featurevisor/types": "^1.3.0"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "1202fddb786e61079771c78f5a4a33dddd11bdfe"
|
|
69
69
|
}
|
|
@@ -216,6 +216,13 @@ export function DisplayFeatureRulesTable() {
|
|
|
216
216
|
</p>
|
|
217
217
|
)}
|
|
218
218
|
|
|
219
|
+
{Array.isArray(feature.environments[environmentKey].expose) && (
|
|
220
|
+
<p className="mt-2 block rounded border-2 border-orange-300 bg-orange-200 p-3 text-sm text-gray-600">
|
|
221
|
+
Rules are <a href="https://featurevisor.com/docs/features/#expose">exposed</a> for these
|
|
222
|
+
tags only: {feature.environments[environmentKey].expose.join(", ")}.
|
|
223
|
+
</p>
|
|
224
|
+
)}
|
|
225
|
+
|
|
219
226
|
<table className="mt-3 min-w-full divide-y divide-gray-300 border border-gray-200">
|
|
220
227
|
<thead className="bg-gray-50">
|
|
221
228
|
<tr>
|