mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
M: Cleanup todos
This commit is contained in:
parent
3edee8450e
commit
c35262dbfd
8
TODO.txt
8
TODO.txt
|
@ -9,7 +9,9 @@ For more specific TODOs see comments in code
|
||||||
- Design first user experience
|
- Design first user experience
|
||||||
- Demo sandbox for anonymous users
|
- Demo sandbox for anonymous users
|
||||||
|
|
||||||
- User profile: Settings + settings persistency
|
- User profile: Settings + settings server persistency
|
||||||
|
- Profile pictures
|
||||||
|
- Integrate socials and feedback
|
||||||
- Custom LibraryItem lists
|
- Custom LibraryItem lists
|
||||||
- Custom user filters and sharing filters
|
- Custom user filters and sharing filters
|
||||||
|
|
||||||
|
@ -19,6 +21,8 @@ For more specific TODOs see comments in code
|
||||||
- Focus on codemirror editor when label is clicked (need React 19 ref for clean code solution)
|
- Focus on codemirror editor when label is clicked (need React 19 ref for clean code solution)
|
||||||
- Draggable rows in constituents table
|
- Draggable rows in constituents table
|
||||||
|
|
||||||
|
- M-graph visualization for typification and RSForm in general
|
||||||
|
|
||||||
- replace reagraph with react-flow in TermGraph and FormulaGraph
|
- replace reagraph with react-flow in TermGraph and FormulaGraph
|
||||||
- Search functionality for Help Manuals
|
- Search functionality for Help Manuals
|
||||||
- Export PDF (Items list, Graph)
|
- Export PDF (Items list, Graph)
|
||||||
|
@ -31,6 +35,8 @@ For more specific TODOs see comments in code
|
||||||
- Content based search in Library
|
- Content based search in Library
|
||||||
- Home page (user specific)
|
- Home page (user specific)
|
||||||
- Private projects. Consider cooperative editing
|
- Private projects. Consider cooperative editing
|
||||||
|
- OSS: synthesis table: auto substitution for diamond synthesis
|
||||||
|
|
||||||
|
|
||||||
[Tech]
|
[Tech]
|
||||||
- duplicate syntax parsing and type info calculations to client. Consider moving backend to Nodejs or embedding c++ lib
|
- duplicate syntax parsing and type info calculations to client. Consider moving backend to Nodejs or embedding c++ lib
|
||||||
|
|
|
@ -28,8 +28,6 @@ from .. import serializers as s
|
||||||
class LibraryViewSet(viewsets.ModelViewSet):
|
class LibraryViewSet(viewsets.ModelViewSet):
|
||||||
''' Endpoint: Library operations. '''
|
''' Endpoint: Library operations. '''
|
||||||
queryset = m.LibraryItem.objects.all()
|
queryset = m.LibraryItem.objects.all()
|
||||||
# TODO: consider using .only() for performance
|
|
||||||
|
|
||||||
ordering = '-time_update'
|
ordering = '-time_update'
|
||||||
|
|
||||||
def get_serializer_class(self):
|
def get_serializer_class(self):
|
||||||
|
|
|
@ -244,7 +244,6 @@ class OperationSchema:
|
||||||
original = children[sub.original.pk]
|
original = children[sub.original.pk]
|
||||||
replacement = children[sub.substitution.pk]
|
replacement = children[sub.substitution.pk]
|
||||||
translated_substitutions.append((original, replacement))
|
translated_substitutions.append((original, replacement))
|
||||||
# TODO: add auto substitutes for diamond
|
|
||||||
receiver.substitute(translated_substitutions)
|
receiver.substitute(translated_substitutions)
|
||||||
|
|
||||||
for cst in receiver.constituents().order_by('order'):
|
for cst in receiver.constituents().order_by('order'):
|
||||||
|
@ -258,6 +257,7 @@ class OperationSchema:
|
||||||
|
|
||||||
receiver.restore_order()
|
receiver.restore_order()
|
||||||
receiver.reset_aliases()
|
receiver.reset_aliases()
|
||||||
|
receiver.resolve_all_text()
|
||||||
|
|
||||||
if len(self.cache.graph.outputs[operation.pk]) > 0:
|
if len(self.cache.graph.outputs[operation.pk]) > 0:
|
||||||
self.after_create_cst(receiver, list(receiver.constituents().order_by('order')))
|
self.after_create_cst(receiver, list(receiver.constituents().order_by('order')))
|
||||||
|
@ -366,8 +366,6 @@ class OperationSchema:
|
||||||
if destination is None:
|
if destination is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
# TODO: update substitutions for diamond synthesis (if needed)
|
|
||||||
|
|
||||||
self.cache.ensure_loaded()
|
self.cache.ensure_loaded()
|
||||||
new_mapping = self._transform_mapping(mapping, operation, destination)
|
new_mapping = self._transform_mapping(mapping, operation, destination)
|
||||||
alias_mapping = OperationSchema._produce_alias_mapping(new_mapping)
|
alias_mapping = OperationSchema._produce_alias_mapping(new_mapping)
|
||||||
|
|
|
@ -367,7 +367,6 @@ class OssViewSet(viewsets.GenericViewSet, generics.ListAPIView, generics.Retriev
|
||||||
@action(detail=False, methods=['post'], url_path='get-predecessor')
|
@action(detail=False, methods=['post'], url_path='get-predecessor')
|
||||||
def get_predecessor(self, request: Request) -> HttpResponse:
|
def get_predecessor(self, request: Request) -> HttpResponse:
|
||||||
''' Get predecessor. '''
|
''' Get predecessor. '''
|
||||||
# TODO: add tests for this method
|
|
||||||
serializer = CstTargetSerializer(data=request.data)
|
serializer = CstTargetSerializer(data=request.data)
|
||||||
serializer.is_valid(raise_exception=True)
|
serializer.is_valid(raise_exception=True)
|
||||||
cst = cast(Constituenta, serializer.validated_data['target'])
|
cst = cast(Constituenta, serializer.validated_data['target'])
|
||||||
|
|
|
@ -127,7 +127,6 @@ function DataTable<TData extends RowData>({
|
||||||
|
|
||||||
const isEmpty = tableImpl.getRowModel().rows.length === 0;
|
const isEmpty = tableImpl.getRowModel().rows.length === 0;
|
||||||
|
|
||||||
// TODO: refactor formula for different font sizes and pagination tools
|
|
||||||
const fixedSize = useMemo(() => {
|
const fixedSize = useMemo(() => {
|
||||||
if (!rows) {
|
if (!rows) {
|
||||||
return undefined;
|
return undefined;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user