Skip to content

Show warning banner when database isn't configured - #56

Merged
duncanmcclean merged 1 commit into
mainfrom
show-warning-banner-when-db-isnt-configured
Dec 10, 2024
Merged

duncanmcclean merged 1 commit into
mainfrom
show-warning-banner-when-db-isnt-configured

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request prevents an error from occuring when the Importer can't connect to the app's database (for example: when the SQLite database file hasn't been created).

Instead of seeing an error as soon as you go to the edit page, you'll now see a banner asking you to migrate your database, which will let you configure your application's database:

CleanShot 2024-12-10 at 10 11 57

You'll only be able to run the import after migrating the database tables.

Combined with recent updates to the docs, these changes should make the next steps a little more obvious when you're running into database-related errors.

Related: #55

@duncanmcclean duncanmcclean mentioned this pull request Dec 10, 2024
@duncanmcclean
duncanmcclean merged commit 959aa11 into main Dec 10, 2024
@duncanmcclean
duncanmcclean deleted the show-warning-banner-when-db-isnt-configured branch December 10, 2024 10:20
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.

1 participant