Skip to content
This repository was archived by the owner on Mar 8, 2024. It is now read-only.

Release v1.1.1 #43

Merged
merged 88 commits into from
Aug 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
17aa2c4
Update LICENSE
JWittmeyer Jul 16, 2022
c77fd13
Merge pull request #3 from code-kern-ai/JWittmeyer-patch-1
JWittmeyer Jul 16, 2022
c3a086b
Documentation link on tokenizer fixed
lumburovskalina Jul 18, 2022
a4017b1
Links to public repos
lumburovskalina Jul 18, 2022
407a3a2
Removes retry from http failure
Jul 25, 2022
66bfa53
Adds check for demo application
Jul 25, 2022
90550b2
Changes logic slightly admins
Jul 25, 2022
d633632
Adds demo banner
Jul 25, 2022
72d1d3a
Discord link and icon on sidebar menu
lumburovskalina Jul 26, 2022
8610382
Saving forever fix and opacity tooltip fixed
lumburovskalina Jul 26, 2022
32f9410
Long embedding names that break modal for zero-shot fixed
lumburovskalina Jul 26, 2022
600b992
Heuristic statuses shared component
lumburovskalina Jul 26, 2022
24fc4fe
Removed function on name click on heuristics
lumburovskalina Jul 26, 2022
f7c8dc1
Zero shot module renamed and tooltips fixed on zero-shot page
lumburovskalina Jul 26, 2022
e102276
Renamed items to records on heuristics page
lumburovskalina Jul 26, 2022
a1a6fb3
Condition for continue project based on a new state for sample projects
lumburovskalina Jul 27, 2022
95995b0
Merge pull request #16 from code-kern-ai/init_sample_project_state
lumburovskalina Jul 28, 2022
8461583
Merge remote-tracking branch 'origin/dev' into is-demo
Jul 29, 2022
2003280
Removes user check on information source websocket update
Aug 1, 2022
f79add5
Adds badge & call to action
Aug 1, 2022
d2bef45
Merge pull request #9 from code-kern-ai/is-demo
JWittmeyer Aug 1, 2022
6a2844a
Removed unused code
lumburovskalina Aug 3, 2022
834bb98
3/5 changed to 4/5, wrong percentage
lumburovskalina Aug 3, 2022
cdeb9e6
Merge remote-tracking branch 'origin/dev' into long-embedding-names-b…
lumburovskalina Aug 3, 2022
c005914
Merge remote-tracking branch 'origin/dev' into lf-al-saving-forever
lumburovskalina Aug 3, 2022
495e068
Merge pull request #13 from code-kern-ai/long-embedding-names-break-m…
lumburovskalina Aug 3, 2022
a00161c
Merge remote-tracking branch 'origin/dev' into lf-al-saving-forever
lumburovskalina Aug 3, 2022
c09edbe
Merge pull request #12 from code-kern-ai/lf-al-saving-forever
lumburovskalina Aug 3, 2022
6cba9f1
Refactor heuristic statuses component
lumburovskalina Aug 3, 2022
b2b09a3
Merge remote-tracking branch 'origin/dev' into heuristic-statuses
lumburovskalina Aug 3, 2022
fbd05f4
Navigation link on record IDE fixed
lumburovskalina Aug 3, 2022
c88de30
Merge remote-tracking branch 'origin/dev' into documentation-link
lumburovskalina Aug 3, 2022
c9a3c0e
Modal configuration fixes
lumburovskalina Aug 3, 2022
3680d11
Merge pull request #18 from code-kern-ai/modal-configuration
JWittmeyer Aug 4, 2022
d08c239
Reduced margin-top between icons on sidebar menu for smaller devices
lumburovskalina Aug 4, 2022
667c3d1
Changed onInit to onChanges
lumburovskalina Aug 4, 2022
e895bab
Merge remote-tracking branch 'origin/dev' into heuristic-statuses
lumburovskalina Aug 4, 2022
fa32321
Merge pull request #15 from code-kern-ai/heuristic-statuses
lumburovskalina Aug 4, 2022
2de0939
Changed public links
lumburovskalina Aug 4, 2022
516619f
Merge remote-tracking branch 'origin/dev' into documentation-link
lumburovskalina Aug 4, 2022
9c22493
Merge pull request #4 from code-kern-ai/documentation-link
lumburovskalina Aug 4, 2022
8ebc682
Transfers import options to backend
Aug 5, 2022
c56ae4d
Merge pull request #19 from code-kern-ai/import-options
JWittmeyer Aug 5, 2022
32181c0
Bump eventsource from 1.1.0 to 1.1.2
dependabot[bot] Aug 8, 2022
d18ed91
Adds .github - dependabot yml
Aug 8, 2022
a28b3c3
Merge pull request #21 from code-kern-ai/eventsource-update
JWittmeyer Aug 8, 2022
9c7a3f8
Bump minimist from 1.2.5 to 1.2.6
dependabot[bot] Aug 8, 2022
25bd076
Bump nanoid from 3.1.30 to 3.3.4
dependabot[bot] Aug 8, 2022
5e4ddf2
Bump async from 2.6.3 to 2.6.4
dependabot[bot] Aug 8, 2022
126e83b
Small yml change
Aug 8, 2022
bbd4626
Merge pull request #27 from code-kern-ai/yml-change
JWittmeyer Aug 8, 2022
3bdaeec
Merge remote-tracking branch 'origin/dev' into dependabot-npm_and_yar…
lumburovskalina Aug 9, 2022
eb6b564
Merge remote-tracking branch 'origin/dev' into dependabot-npm_and_yar…
lumburovskalina Aug 9, 2022
c3f9922
Merge pull request #22 from code-kern-ai/dependabot-npm_and_yarn-mini…
lumburovskalina Aug 9, 2022
841c671
Merge remote-tracking branch 'origin/dev' into dependabot-npm_and_yar…
lumburovskalina Aug 9, 2022
ecdba7d
Merge pull request #23 from code-kern-ai/dependabot-npm_and_yarn-nano…
lumburovskalina Aug 9, 2022
3d68cce
Bump async from 2.6.3 to 2.6.4
dependabot[bot] Aug 9, 2022
f922ec9
Merge branch 'dependabot-npm_and_yarn-async-2.6.4' of github.com:code…
lumburovskalina Aug 9, 2022
94e792f
Merge pull request #24 from code-kern-ai/dependabot-npm_and_yarn-asyn…
lumburovskalina Aug 9, 2022
c940075
Bump url-parse from 1.5.3 to 1.5.10
dependabot[bot] Aug 9, 2022
64b47d7
Bump karma from 6.3.6 to 6.4.0
dependabot[bot] Aug 9, 2022
55da3c5
Merge pull request #28 from code-kern-ai/dependabot-npm_and_yarn-url-…
lumburovskalina Aug 9, 2022
5080fbc
Bump karma from 6.3.6 to 6.4.0
dependabot[bot] Aug 9, 2022
03a183d
Merge remote-tracking branch 'origin/dev' into dependabot-npm_and_yar…
lumburovskalina Aug 9, 2022
3919926
Merge branch 'dependabot-npm_and_yarn-karma-6.4.0' of github.com:code…
lumburovskalina Aug 9, 2022
b437cb4
Merge pull request #30 from code-kern-ai/dependabot-npm_and_yarn-karm…
lumburovskalina Aug 9, 2022
8d30264
Bump follow-redirects from 1.14.5 to 1.15.1
dependabot[bot] Aug 9, 2022
d0ccd5f
Merge pull request #31 from code-kern-ai/dependabot-npm_and_yarn-foll…
lumburovskalina Aug 9, 2022
7977956
Merge branch 'dev' into discord-icon-link
JWittmeyer Aug 9, 2022
7ee1e9e
Merge pull request #11 from code-kern-ai/discord-icon-link
lumburovskalina Aug 9, 2022
a76cdaa
Shared component dropdown (#10)
lumburovskalina Aug 11, 2022
3cbc9fa
Upgrade Angular 13 (#32)
lumburovskalina Aug 15, 2022
1e92dc8
Added home icon on header
lumburovskalina Aug 15, 2022
2da5459
Adds notification center data tip
Aug 15, 2022
c9b1c9c
Merge pull request #34 from code-kern-ai/add_home_icon_header
JWittmeyer Aug 15, 2022
ddcd4c1
Demo user restrictions on front end (#33)
lumburovskalina Aug 15, 2022
9e2a433
Removes trigger for testing
Aug 15, 2022
dcdfa48
Bump node version to 16.10.5
Aug 15, 2022
9bbdcb3
Updates lock file
Aug 15, 2022
7a1d5e6
Removes unused drone trigger
Aug 15, 2022
8307625
Merge pull request #35 from code-kern-ai/change-node
JWittmeyer Aug 15, 2022
9df1c20
Fixes Bugs in the record ide (#36)
FelixKirsch Aug 16, 2022
813901b
changes notification center icon (#37)
FelixKirsch Aug 17, 2022
0113853
sets version number to v1.1 (#38)
FelixKirsch Aug 18, 2022
0f20583
Readd mixed results (#39)
JWittmeyer Aug 18, 2022
6a0aed4
Adds hotfix (#40)
JWittmeyer Aug 18, 2022
db2d947
Demo changes (#42)
JWittmeyer Aug 24, 2022
a08b133
merge conflicts
FelixKirschKern Aug 24, 2022
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
15 changes: 15 additions & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export class AppComponent implements OnDestroy, OnInit {
});
this.initializeNotificationService();
this.initWithConfigManager();
this.checkBrowser();
}

initalRequests() {
Expand Down Expand Up @@ -175,4 +176,18 @@ export class AppComponent implements OnDestroy, OnInit {
ConfigManager.refreshConfig();
}
}

checkBrowser() {
const wasChecked = localStorage.getItem("browser_info_checked");
if (!wasChecked) {
const agent = window.navigator.userAgent;
if (!(agent.indexOf("Chrome/") != -1 && agent.indexOf("Chromium/") == -1) || agent.indexOf("Edg/") != -1) {
const t = "This application was built with chrome. Some things might look different than expected.\n\nFor the best experience we recommend using chrome."
alert(t);
}
localStorage.setItem("browser_info_checked", "1");
}
}


}
25 changes: 11 additions & 14 deletions src/app/base/components/header/header.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,27 +83,24 @@
<a [routerLink]="['/notification-center']" class="flex mr-6 tooltip tooltip-left"
data-tip="Notification center">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-bell" width="24"
height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M10 5a2 2 0 0 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6"></path>
<path d="M9 17v1a3 3 0 0 0 6 0v-1"></path>
</svg>
</a>
</div>
<div class="flex items-center justify-center">
<a href="https://github.com/code-kern-ai/refinery" target="_blank" data-tip="Star us on GitHub"
rel="noopener noreferrer" class="flex mr-6 tooltip tooltip-left">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-star" width="24"
height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path
d="M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z">
d="M10 5a2 2 0 0 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6">
</path>
<path d="M9 17v1a3 3 0 0 0 6 0v-1"></path>
</svg>
</a>

</div>
<div class="flex items-center justify-center">
<div class="widget widget-lg"><a class="btnx" href="https://github.com/code-kern-ai/refinery"
rel="noopener" target="_blank" aria-label="Star code-kern-ai/refinery on GitHub"><svg
viewBox="0 0 16 16" width="16" height="16" class="octicon octicon-star" aria-hidden="true">
<path fill-rule="evenodd"
d="M8 .25a.75.75 0 01.673.418l1.882 3.815 4.21.612a.75.75 0 01.416 1.279l-3.046 2.97.719 4.192a.75.75 0 01-1.088.791L8 12.347l-3.766 1.98a.75.75 0 01-1.088-.79l.72-4.194L.818 6.374a.75.75 0 01.416-1.28l4.21-.611L7.327.668A.75.75 0 018 .25zm0 2.445L6.615 5.5a.75.75 0 01-.564.41l-3.097.45 2.24 2.184a.75.75 0 01.216.664l-.528 3.084 2.769-1.456a.75.75 0 01.698 0l2.77 1.456-.53-3.084a.75.75 0 01.216-.664l2.24-2.183-3.096-.45a.75.75 0 01-.564-.41L8 2.694v.001z">
</path>
</svg>&nbsp;<span>Star on GitHub</span></a></div>
</div>
<div class="flex justify-center overflow-visible" *ngIf="!hideLogout">
<div *ngIf="user" class=" mr-4">
Expand Down
45 changes: 45 additions & 0 deletions src/app/base/components/header/header.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
.widget-lg .btnx,
.widget-lg .social-count {
padding: 5px 10px;
font-size: 12px;
line-height: 16px;
}

.btnx:not(:last-child) {
border-radius: 0.25em 0 0 0.25em;
}

.btnx {
color: #24292f;
background-color: #ebf0f4;
border-color: #ccd1d5;
border-color: rgba(27, 31, 36, .15);
background-image: -moz-linear-gradient(top, #f6f8fa, #ebf0f4 90%);
background-image: linear-gradient(180deg, #f6f8fa, #ebf0f4 90%);
filter: progid:DXImageTransform.Microsoft.Gradient(startColorstr='#FFF6F8FA', endColorstr='#FFEAEFF3');
}

.btnx {
border-radius: 0.25em;
}

.btnx,
.social-count {
position: relative;
display: inline-flex;
padding: 2px 5px;
font-size: 11px;
font-weight: 600;
line-height: 14px;
vertical-align: bottom;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-repeat: repeat-x;
background-position: -1px -1px;
background-size: 110% 110%;
border: 1px solid;
margin-right: 1rem;
}
19 changes: 13 additions & 6 deletions src/app/base/components/sidebar-pm/sidebar-pm.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,16 +148,23 @@
</div>
<div class="flex items-center justify-center overflow-visible mt-10 2xl:mt-12">
<div data-tip="Join our community" class="tooltip tooltip-right relative z-50">
<a href="https://discord.com/invite/qf4rGCEphW" target="_blank"
rel="noopener noreferrer" class="circle text-white">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-discord" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<a href="https://discord.com/invite/qf4rGCEphW" target="_blank" rel="noopener noreferrer"
class="circle text-white">
<svg xmlns="http://www.w3.org/2000/svg"
class="icon icon-tabler icon-tabler-brand-discord" width="24" height="24"
viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<circle cx="9" cy="12" r="1"></circle>
<circle cx="15" cy="12" r="1"></circle>
<path d="M7.5 7.5c3.5 -1 5.5 -1 9 0"></path>
<path d="M7 16.5c3.5 1 6.5 1 10 0"></path>
<path d="M15.5 17c0 1 1.5 3 2 3c1.5 0 2.833 -1.667 3.5 -3c.667 -1.667 .5 -5.833 -1.5 -11.5c-1.457 -1.015 -3 -1.34 -4.5 -1.5l-1 2.5"></path>
<path d="M8.5 17c0 1 -1.356 3 -1.832 3c-1.429 0 -2.698 -1.667 -3.333 -3c-.635 -1.667 -.476 -5.833 1.428 -11.5c1.388 -1.015 2.782 -1.34 4.237 -1.5l1 2.5"></path>
<path
d="M15.5 17c0 1 1.5 3 2 3c1.5 0 2.833 -1.667 3.5 -3c.667 -1.667 .5 -5.833 -1.5 -11.5c-1.457 -1.015 -3 -1.34 -4.5 -1.5l-1 2.5">
</path>
<path
d="M8.5 17c0 1 -1.356 3 -1.832 3c-1.429 0 -2.698 -1.667 -3.333 -3c-.635 -1.667 -.476 -5.833 1.428 -11.5c1.388 -1.015 2.782 -1.34 4.237 -1.5l1 2.5">
</path>
</svg>
</a>
</div>
Expand Down Expand Up @@ -194,7 +201,7 @@
<div class="flex-shrink-0 flex py-6 justify-center">
<a data-tip="Changelog" target="_blank" rel="noopener noreferrer"
class="z-50 tooltip tooltip-right cursor-pointer select-none text-white"
href="https://docs.kern.ai/changelog">v1.1</a>
href="https://docs.kern.ai/changelog">v1.1.1</a>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ export class DataBrowserComponent implements OnInit, OnDestroy {

currentSearchRequest: CurrentSearchRequest;

alertLastVisible: number;

getSearchFormArray(groupKey: string): FormArray {
return this.fullSearch.get(groupKey).get('groupElements') as FormArray;
}
Expand Down Expand Up @@ -1440,7 +1442,7 @@ export class DataBrowserComponent implements OnInit, OnDestroy {
}
else return;
if (this.filteredSliceIds.has(idToDelete)) this.filteredSliceIds.delete(idToDelete);
this.projectApolloService.deleteDataSlice(this.projectId, idToDelete).pipe(first()).subscribe(() => this.clearFilters());
this.projectApolloService.deleteDataSlice(this.projectId, idToDelete).pipe(first()).subscribe(() => this.clearFilters());
}

filterAvailableSlices() {
Expand Down Expand Up @@ -1909,7 +1911,9 @@ export class DataBrowserComponent implements OnInit, OnDestroy {
}

alterUser(msgId) {
if (this.alertLastVisible && Date.now() - this.alertLastVisible < 1000) return;
alert("Settings were changed (msgId: " + msgId + ")\nFilter will be reloaded.");
this.alertLastVisible = Date.now();
}

websocketFilterRefresh(currentFilterData: string) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ export class DataBrowserFilterParser {
array: any[],
drillDown: boolean = false
): any {

if (drillDown) {
for (const l of array) {
this.appendBlackAndWhiteListUserForArray(appendTo, [l], false);
Expand Down Expand Up @@ -208,12 +207,16 @@ export class DataBrowserFilterParser {
appendTo: string[],
array: any[],
labelSource: LabelSource,
drillDown: boolean = false
drillDown: boolean = false,
onlyNoLabel: boolean = false //for recursion of NO_LABEL only
): any {

if (drillDown) {
for (const l of array) {
this.appendBlackAndWhiteListLabelingTaskForArray(appendTo, [l], labelSource, false);
if (l.id == 'NO_LABEL') {
this.appendBlackAndWhiteListLabelingTaskForArray(appendTo, array, labelSource, false, true);
} else {
this.appendBlackAndWhiteListLabelingTaskForArray(appendTo, [l], labelSource, false);
}
}
return;
}
Expand All @@ -233,7 +236,7 @@ export class DataBrowserFilterParser {
for (let c of array) {
if (c.active) {
if (c.id == 'NO_LABEL') addNoLabel = true;
else {
else if (!onlyNoLabel) {
if (c.negate) notInValues.push(c.id);
else inValues.push(c.id);
}
Expand Down
8 changes: 4 additions & 4 deletions src/app/projects/components/projects/projects.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class ProjectsComponent implements OnInit, OnDestroy {
this.isManaged = ConfigManager.getIsManaged();
}
});
this.checkIfDemoUser();
this.checkIfDemoUser();
}

checkIfDemoUser() {
Expand All @@ -145,7 +145,7 @@ export class ProjectsComponent implements OnInit, OnDestroy {
return;
}
this.isManaged = ConfigManager.getIsManaged();
if (!this.isManaged) {
if (!this.isManaged && !ConfigManager.getIsDemo()) {
this.subscriptions$.push(this.organizationApolloService.canCreateLocalOrg().pipe(first()).subscribe((canCreateOrg) => {
this.canCreateOrg = canCreateOrg;

Expand Down Expand Up @@ -342,10 +342,10 @@ export class ProjectsComponent implements OnInit, OnDestroy {
}

executeOption(value: string) {
if(value=='Further sample projects') {
if (value == 'Further sample projects') {
window.open("https://github.com/code-kern-ai/refinery-sample-projects", "_blank");
} else {
this.importSampleProject(this.isProjectInitial ? this.previousValue+' - initial' : value)
this.importSampleProject(this.isProjectInitial ? this.previousValue + ' - initial' : value)
}
}

Expand Down