Skip to content

Unification of categories and functors#193

Merged
ScriptRaccoon merged 26 commits into
mainfrom
refactor-svelte-components-for-unification
May 25, 2026
Merged

Unification of categories and functors#193
ScriptRaccoon merged 26 commits into
mainfrom
refactor-svelte-components-for-unification

Conversation

@ScriptRaccoon
Copy link
Copy Markdown
Owner

@ScriptRaccoon ScriptRaccoon commented May 18, 2026

This PR is the frontend counterpart of #191. It is a major refactor of the whole frontend.

All functions, types, Svelte components, and Svelte pages that were previously defined separately for categories and functors (often with slight differences) have been unified. This eliminates a significant amount of code duplication, ensures that both categorical structures are handled consistently, and provides a foundation for supporting further categorical structures (#4) in the future.

In the process of aligning the pages, some features have been added to functors that were previously only available for categories:

  • related functors, functor notation, functor tags, functor comments, related functor properties (this required schema changes)
  • the consistency check on the functor search page, including display of contradictions (cf. Display contradiction proofs on the search results page #170)
  • filtering on the functor list pages (functors, properties, implications)
  • comparison page for functors

The unification is not finished yet: most database queries have not been unified. And those that have been unified (for example, for the search feature and the deduction scripts) are somewhat brittle, as they use string injection to construct a query that depends on the structure type (typical example: SELECT id FROM ${type}_properties). This will be improved in another PR.

@ScriptRaccoon ScriptRaccoon changed the title Refactor svelte components – Unification of categories and functors Refactor Svelte components – Unification of categories and functors May 18, 2026
@ScriptRaccoon ScriptRaccoon force-pushed the refactor-svelte-components-for-unification branch 3 times, most recently from 3d39878 to dd16d4f Compare May 23, 2026 15:04
@ScriptRaccoon ScriptRaccoon marked this pull request as ready for review May 23, 2026 17:36
@ScriptRaccoon ScriptRaccoon force-pushed the refactor-svelte-components-for-unification branch 2 times, most recently from 2cc7397 to 36fc74a Compare May 23, 2026 21:41
@ScriptRaccoon ScriptRaccoon changed the title Refactor Svelte components – Unification of categories and functors Unification of categories and functors May 24, 2026
@ScriptRaccoon ScriptRaccoon force-pushed the refactor-svelte-components-for-unification branch from 60b6102 to a35c3e8 Compare May 24, 2026 14:02
@ScriptRaccoon ScriptRaccoon force-pushed the refactor-svelte-components-for-unification branch from 01451f2 to 411068c Compare May 24, 2026 23:09
@ScriptRaccoon ScriptRaccoon merged commit 61345c0 into main May 25, 2026
1 check passed
@ScriptRaccoon ScriptRaccoon deleted the refactor-svelte-components-for-unification branch May 25, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant