Skip to content

Conversation

@marcbachan
Copy link

Addresses #14

This PR builds on the utility functions (still in review as #17) outlined on issue #16, and adds some boilerplate tabs and views for the dashboard.

Please refer to other issues and the loose roadmap in the README from this PR for more information on what remains to be built.

@RNR1 RNR1 changed the base branch from main to vontell/issue-16-supabase-integration December 3, 2025 00:19
@@ -0,0 +1,63 @@

import React from 'react';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since React 17 - we don't have to import React, we should be good to remove it

</li>
))}
<li>
<a
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For in-app navigation - we should use the <Link> component.

export default [index("routes/home.tsx")] satisfies RouteConfig;
export default [
index("routes/home.tsx"),
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refer to writing Framework Routes

// TODO: Define ResourceChangeLog type/schema based on your DB
// TODO: Implement fetchResourceChangelog() using Supabase

const ResourceChangelog: React.FC = () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using the React.FC type is no longer a preferred approach.

  1. It's a bit verbose, and Typescript already infers it just by being a function that returns JSX.
  2. We should only type the component props

@@ -0,0 +1,56 @@


import React, { useEffect, useState } from 'react';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove React import

} catch (err: any) {
setError(err.message || 'Failed to fetch resources');
}
setLoading(false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move this to a finally clause

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants