Skip to content

Commit

Permalink
Removed home, added documentation option, view flare data now presear…
Browse files Browse the repository at this point in the history
…ch the data, source name is now lowercase 'flare', added experimental text
  • Loading branch information
Marc-Antoine Hinse committed Nov 11, 2024
1 parent 78213ae commit 4cc5883
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 22 deletions.
9 changes: 8 additions & 1 deletion packages/configuration-screen/src/ConfigurationScreen.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
background-color: var(--bg-color);
color: var(--text-color);
text-align: center;
gap: 2rem;
}

.content {
Expand All @@ -14,7 +15,6 @@
flex: content;
height: auto;
width: 800px;
margin: 2rem;
gap: 1.5rem;
align-self: center;
}
Expand All @@ -37,3 +37,10 @@
right: 0;
height: fit-content;
}

#experimental {
align-self: center;
text-align: left;
width: 800px;
font-style: italic;
}
1 change: 1 addition & 0 deletions packages/configuration-screen/src/ConfigurationScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ const ConfigurationScreen: FC<{ theme: string }> = ({ theme }) => {
max={Object.keys(ConfigurationSteps).length / 2}
value={currentConfigurationStep}
/>
<div id="experimental">This is an experimental release</div>
<div className="content">
<ToolIcon
remSize={6}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { FC } from 'react';
import Button from './Button';
import { getRedirectUrl } from '../utils/setupConfiguration';
import { getFlareDataUrl, getRedirectUrl } from '../utils/setupConfiguration';
import ArrowRightIcon from './icons/ArrowRightIcon';

import './ConfigurationGlobalStep.css';
Expand All @@ -23,7 +23,7 @@ const ConfigurationCompletedStep: FC<{
Edit Configuration
</Button>
<div className="link">
<a href={getRedirectUrl()}>View Flare Data</a>
<a href={getFlareDataUrl("main")}>View Flare Data</a>
<ArrowRightIcon remSize={1} />
</div>
</div>
Expand Down
5 changes: 5 additions & 0 deletions packages/configuration-screen/src/utils/setupConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ function getRedirectUrl(): string {
return `/app/${appName}`;
}

function getFlareDataUrl(indexName: string): string {
return `/app/${appName}/search?q=search%20index%3D"${indexName}"%20source%3D"flare"`;
}

function redirectToHomepage(): void {
window.location.href = getRedirectUrl();
}
Expand Down Expand Up @@ -166,4 +170,5 @@ export {
retrieveIngestMetadataOnly,
redirectToHomepage,
getRedirectUrl,
getFlareDataUrl,
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<nav search_view="search" color="#272735">
<view name="home" default='true' />
<view name="search" />
<view name="search" default='true' />
<view name="configuration" />
<a href="https://docs.flare.io/splunk-cloud-integration" target="_blank">Documentation</a>
<a href="https://app.flare.io/" target="_blank">Flare Platform</a>
</nav>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[script://$SPLUNK_HOME/etc/apps/flare/bin/cron_job_ingest_events.py]
interval = * * * * *
python.version = python3
source = Flare
source = flare
sourcetype = flare_json
passAuth = admin

0 comments on commit 4cc5883

Please sign in to comment.