Skip to content

Commit

Permalink
feat(frontend): temporary logs page to clear up confusion about it 40…
Browse files Browse the repository at this point in the history
…4ing

This commit also disables the "Run Now" buttons under Jobs until they actually work

re #272
  • Loading branch information
sct committed Dec 16, 2020
1 parent db0a5c4 commit d9788c4
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Settings/SettingsJobs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const SettingsJobs: React.FC = () => {
</div>
</Table.TD>
<Table.TD alignText="right">
<Button buttonType="primary">
<Button buttonType="primary" disabled>
{intl.formatMessage(messages.runnow)}
</Button>
</Table.TD>
Expand Down
17 changes: 17 additions & 0 deletions src/components/Settings/SettingsLogs/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';

// We will localize this file when the complete version is released.

const SettingsLogs: React.FC = () => {
return (
<>
<div className="leading-loose text-gray-300 text-sm">
Logs page is still being built. For now, you can access your logs
directly in <code>stdout</code> (container logs) or looking in{' '}
<code>/app/config/logs/overseerr.logs</code>
</div>
</>
);
};

export default SettingsLogs;
14 changes: 14 additions & 0 deletions src/pages/settings/logs.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { NextPage } from 'next';
import React from 'react';
import SettingsLayout from '../../components/Settings/SettingsLayout';
import SettingsLogs from '../../components/Settings/SettingsLogs';

const SettingsLogsPage: NextPage = () => {
return (
<SettingsLayout>
<SettingsLogs />
</SettingsLayout>
);
};

export default SettingsLogsPage;
4 changes: 4 additions & 0 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,7 @@ body {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}

code {
@apply bg-gray-800 py-1 px-2 rounded-md;
}

0 comments on commit d9788c4

Please sign in to comment.