Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIME-Types and dynamic loading of all content items with default config #452

Open
paulpestov opened this issue Jul 15, 2024 · 0 comments
Open

Comments

@paulpestov
Copy link
Collaborator

paulpestov commented Jul 15, 2024

Currently we are not able to display all content items with an arbitrary entrypoint URL (collection or manifest) without having a custom config. Although, we have got a default config which let's us display some content at all. We still cannot dynamically display relevant parts of the data like "all provided texts", though.

Also we don't allow to omit the type= declaration and using only the MIME-Type although it is stated in the TextAPI specs. The type= value is an additional specifier to distinguish between different types of content items. In Ahiqar and GFL projects we relied only on that. But other projects may completely omit it and just use the MIME-Type instead. So we need to implement the possibility to display content items by MIME-Type. In the first step, we may just display them without checking which MIME-Type is provided but rather display the ContentView for everything. Later we could display different View components depending on the MIME-Type.

This would provide a big step forward for generic TIDO instances.

AC:

  • improve the logic of loading by type= and allow to load without type=:

    • the user config is crucial for that, if nothing declared in view options, we assume that no type= is used for this view
    • if type= is not present, just load the first content item
  • for default config scenario:

    • discover all content array items at a TextAPI during app load time
    • display each content array item in a separate panel with a ContentView component
    • update the config in app state during load time so it is not the old default config anymore but a new dynamic version depending on the content provided from the API
@paulpestov paulpestov changed the title Dynamic loading of all content items with defautl config Dynamic loading of all content items with default config Jul 15, 2024
@paulpestov paulpestov changed the title Dynamic loading of all content items with default config MIME-Types and dynamic loading of all content items with default config Jul 15, 2024
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

No branches or pull requests

1 participant